Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debug step for JWT tokens #1938

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions fast/stages/0-bootstrap/templates/workflow-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading