File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 4141 steps :
4242 - uses : actions/checkout@v4
4343 - name : Debug OIDC Claims
44- if : ${{ env.RUN_INTEGRATION_TESTS == 'true' && runner.os == 'Linux' }}
45- uses : github/actions-oidc-debugger@v1
46- with :
44+ if : ${{ env.RUN_INTEGRATION_TESTS == 'true' }}
45+ # TODO: Switch to `steve-todorov/oidc-debugger-action@v1` once it's working
46+ run : |
47+ TOKEN_JSON="$(curl -fsSL -H "Authorization: bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN:?}" "${ACTIONS_ID_TOKEN_REQUEST_URL:?}&audience=${audience:?}")"
48+ ID_TOKEN="$(echo "${TOKEN_JSON:?}" | jq -r .value)"
49+ echo "${ID_TOKEN:?}" | awk -F. '{print $2}' | base64 -d 2>/dev/null | jq -r
50+ env :
4751 audience : sts.amazonaws.com
4852 - name : Assume AWS role
4953 if : ${{ env.RUN_INTEGRATION_TESTS == 'true' }}
You can’t perform that action at this time.
0 commit comments