Skip to content

Commit

Permalink
Removing hardcoded values
Browse files Browse the repository at this point in the history
  • Loading branch information
gnongsie committed Aug 28, 2024
1 parent b8c6fbf commit 37501e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dotnet-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
shell: pwsh
run: |
cd $Env:sdk_dotnet
(Get-Content ./AuthorizeNETtest/App.config) | ForEach-Object { $_ -replace "<add key=\"api.login.id\" value=\"API_LOGIN\" />", "<add key=\"api.login.id\" value=\"5KP3u95bQpv\" />" } | ForEach-Object { $_ -replace "<add key=\"transaction.key\" value=\"API_KEY\" />", "<add key=\"transaction.key\" value=\"346HZ32z3fP4hTG2\" />" } | ForEach-Object { $_ -replace "<add key=\"md5.hash.key\" value=\"\" />", "<add key=\"md5.hash.key\" value=\"MD5_TEST\" />" } | Set-Content ./AuthorizeNETtest/App.config
nuget install ./AuthorizeNETtest/packages.config -OutputDirectory packages
msbuild -version
msbuild "./AuthorizeNET.sln" -property:Configuration=Release -t:rebuild
Expand Down
6 changes: 3 additions & 3 deletions AuthorizeNETtest/App.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="api.login.id" value="5KP3u95bQpv" />
<add key="transaction.key" value="346HZ32z3fP4hTG2" />
<add key="md5.hash.key" value="MD5_TEST" />
<add key="api.login.id" value="API_LOGIN" />
<add key="transaction.key" value="API_KEY" />
<add key="md5.hash.key" value="" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
Expand Down

0 comments on commit 37501e6

Please sign in to comment.