Skip to content

Commit 77804f5

Browse files
authored
Change OIDC debugger actions (#737)
1 parent cd7fcc7 commit 77804f5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/CI.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ jobs:
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' }}

0 commit comments

Comments
 (0)