Skip to content

Commit fd9f696

Browse files
committed
updating worklow for debugging purposes
1 parent 25c319b commit fd9f696

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ jobs:
4141

4242
- name: Install dependencies
4343
run: npm ci
44+
- name: 'Debug OIDC Token'
45+
run: |
46+
ID_TOKEN=$(curl -sLS "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=google-cloud" -H "User-Agent: actions/oidc-client" -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN")
47+
echo "Token Claims:"
48+
echo $ID_TOKEN | cut -d'.' -f2 | base64 --decode | jq .
4449
4550
# Exchange GitHub's OIDC token for a short-lived GCP access token
4651
# via Workload Identity Federation. Sets GOOGLE_APPLICATION_CREDENTIALS.

0 commit comments

Comments
 (0)