Skip to content

Commit

Permalink
Runner temp dir isn't mounted in our images
Browse files Browse the repository at this point in the history
  • Loading branch information
manicminer committed Mar 9, 2023
1 parent 1b0ac6a commit 90b8b08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/provider-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
echo "ARM_OIDC_TOKEN=$(curl -H "Accept: application/json; api-version=2.0" -H "Authorization: Bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" -H "Content-Type: application/json" -G --data-urlencode "audience=api://AzureADTokenExchange" "${ACTIONS_ID_TOKEN_REQUEST_URL}" | jq -r '.value')" >>${GITHUB_ENV}
- name: Set OIDC Token File Path
run: echo "${ARM_OIDC_TOKEN}" >"${RUNNER_TEMP}/oidc-token.jwt" && echo "ARM_OIDC_TOKEN_FILE_PATH=${RUNNER_TEMP}/oidc-token.jwt" >>{$GITHUB_ENV}
run: echo "${ARM_OIDC_TOKEN}" >oidc-token.jwt && echo "ARM_OIDC_TOKEN_FILE_PATH=$(pwd)/oidc-token.jwt" >>{$GITHUB_ENV}

- name: Run provider tests
run: make testacc TEST=./internal/provider TESTARGS="-run '^TestAcc'"
Expand All @@ -64,7 +64,7 @@ jobs:
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}

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

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

0 comments on commit 90b8b08

Please sign in to comment.