Skip to content

fix(ISSUE-24): JWT exp too far in future#25

Merged
cuzfrog merged 1 commit into
mainfrom
ISSUE-24_fix-gh-bot-jwt
May 24, 2026
Merged

fix(ISSUE-24): JWT exp too far in future#25
cuzfrog merged 1 commit into
mainfrom
ISSUE-24_fix-gh-bot-jwt

Conversation

@abao-bot
Copy link
Copy Markdown
Contributor

@abao-bot abao-bot Bot commented May 24, 2026

The iat was set 60s in the past for clock skew tolerance, but exp was calculated from current time, making the JWT lifetime 660s (11 minutes). GitHub requires JWTs to be valid for no more than 10 minutes.

Fix: set iat to now (removing the -60s clock skew offset), keeping the lifetime at exactly 600s (10 minutes).

Closes #24

The iat was set 60s in the past for clock skew tolerance, but exp was
calculated from current time, making the JWT lifetime 660s (11 minutes).
GitHub requires JWTs to be valid for no more than 10 minutes.

Fix: set iat to now (removing the -60s clock skew offset), keeping the
lifetime at exactly 600s (10 minutes).
@cuzfrog cuzfrog merged commit ace17cc into main May 24, 2026
1 check passed
@cuzfrog cuzfrog deleted the ISSUE-24_fix-gh-bot-jwt branch May 24, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix gh wrapper script

1 participant