Skip to content

Commit

Permalink
Always clean up OIDC token file
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Mar 9, 2023
1 parent df2a48c commit 5dd0f29
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/provider-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ jobs:
needs: [secrets-check]
if: needs.secrets-check.outputs.available == 'true'
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: ./.go-version

- name: Azure CLI login
run: az login --output none --username="${{ secrets.AZCLI_USERNAME }}" --password="${{ secrets.AZCLI_PASSWORD }}"

Expand All @@ -45,14 +53,6 @@ jobs:
- name: Set OIDC Token File Path
run: echo "${ARM_OIDC_TOKEN}" >"${TMPDIR}/oidc-token.jwt"

- name: Checkout
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v3
with:
go-version-file: ./.go-version

- name: Run provider tests
run: make testacc TEST=./internal/provider TESTARGS="-run '^TestAcc'"
env:
Expand All @@ -65,5 +65,6 @@ jobs:

- name: Clean Up OIDC Token File Path
run: rm -f "${TMPDIR}/oidc-token.jwt"
if: always()

# vim: set ts=2 sts=2 sw=2 et:

0 comments on commit 5dd0f29

Please sign in to comment.