Skip to content

Commit

Permalink
Update to test cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Wenger committed Feb 22, 2024
1 parent df517a7 commit 1bbf1e7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set env
run: |
echo "SANDBOX_USERNAME=${{ secrets.SANDBOX_USERNAME }}" >> $GITHUB_ENV
echo "SANDBOX_PASSWORD=${{ secrets.SANDBOX_PASSWORD }}" >> $GITHUB_ENV
- name: Retrieve bearer token
id: get_bearer_token
run: |
response=$(curl -X POST ${{secrets.OKTA_ACCESS_TOKEN_URL}}/connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials&client_id=${{secrets.OKTA_CLIENT_ID}}&client_secret=${{secrets.OKTA_CLIENT_SECRET}}")
token=$(echo $response | jq -r '.access_token')
echo "BEARER_TOKEN=${token}" >> $GITHUB_ENV
- name: Setup .NET 2.x
uses: actions/setup-dotnet@v1
with:
Expand Down
14 changes: 14 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"scanSettings": {
"configMode": "AUTO",
"configExternalURL": "",
"projectToken": ""
},
"commitStatusSettings": {
"vulnerableCommitStatus": "FAILED"
},
"issueSettings": {
"minSeverityLevel": "LOW",
"openConfidentialIssues": true
}
}
2 changes: 1 addition & 1 deletion src/Avalara.SDK.Test/Api/EInvoicingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public EInvoicingTests()
Configuration configuration = new Configuration
{
Environment = AvalaraEnvironment.Sandbox,
BearerToken = Environment.GetEnvironmentVariable("token"),
BearerToken = Environment.GetEnvironmentVariable("BEARER_TOKEN"),
AppName = "Test",
AppVersion = "1.0",
MachineName = "LocalBox"
Expand Down

0 comments on commit 1bbf1e7

Please sign in to comment.