From beb08e0c8ce020ac1dee12a62fa82a4430548d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Niesiob=C4=99dzki?= Date: Wed, 20 Dec 2023 08:13:23 +0000 Subject: [PATCH] Add debug step for JWT tokens --- .../0-bootstrap/templates/workflow-github.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fast/stages/0-bootstrap/templates/workflow-github.yaml b/fast/stages/0-bootstrap/templates/workflow-github.yaml index 74a2e1f8b0..5969f5a950 100644 --- a/fast/stages/0-bootstrap/templates/workflow-github.yaml +++ b/fast/stages/0-bootstrap/templates/workflow-github.yaml @@ -47,6 +47,19 @@ jobs: name: Checkout repository uses: actions/checkout@v3 +# # Print JWT token payload, useful for debugging +# - id: jwt-debug +# name: Print GITHUB_TOKEN payload +# shell: python -u {0} +# run: | +# import base64 +# import json +# +# token = '${{ secrets.GITHUB_TOKEN }}' +# payload_text = token.split('.')[1] +# payload = json.loads(base64.urlsafe_b64decode(payload_text + '=' * (4-len(payload_text) %4))) +# print(json.dumps(payload, indent=2)) + # set up SSH key authentication to the modules repository - id: ssh-config name: Configure SSH authentication