Skip to content

Commit 3a998c8

Browse files
authored
Merge pull request #4 from DurianPy-Davao-Python-User-Group/3-upgrade-techtix-service-to-python-311
chore(deploy_backend.yml): added script for debugging purposes
2 parents a9cc1db + ac15ead commit 3a998c8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/deploy_backend.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ jobs:
2727
role-to-assume: arn:aws:iam::285637954943:role/techtix-github-action-oidc-role
2828
role-session-name: GithubActionSession
2929

30+
- name: Get OIDC Token (for debugging)
31+
id: get-token
32+
uses: actions/github-script@v6
33+
with:
34+
script: |
35+
const idToken = await core.getIDToken();
36+
core.info(`OIDC Token: ${idToken}`);
37+
const decoded = JSON.parse(Buffer.from(idToken.split('.')[1], 'base64').toString());
38+
core.info(`Decoded OIDC Token Claims: ${JSON.stringify(decoded, null, 2)}`);
39+
3040
- name: Set up Python
3141
uses: actions/setup-python@v5
3242
with:

0 commit comments

Comments
 (0)