From d0e7c186cc4c946ac6559df1cabf2fff9eeaa31c Mon Sep 17 00:00:00 2001 From: Jessika Duquette Date: Tue, 16 Dec 2025 15:39:02 -0500 Subject: [PATCH] Increase padding for token generation as we are randomly encountering issues with cloud run githup app credentials --- githubauth/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/githubauth/app.go b/githubauth/app.go index 74ce7266..8ae1971d 100644 --- a/githubauth/app.go +++ b/githubauth/app.go @@ -130,10 +130,10 @@ type TokenRequestAllRepos struct { // AppToken creates a signed JWT to authenticate a GitHub app so that it can // make API calls to GitHub. func (g *App) AppToken() (string, error) { - // Make the current time 30 seconds in the past to combat clock skew issues + // Make the current time 60 seconds in the past to combat clock skew issues // where the JWT we issue looks like it is coming from the future when it gets // to GitHub - iat := time.Now().UTC().Add(-30 * time.Second) + iat := time.Now().UTC().Add(-60 * time.Second) exp := iat.Add(5 * time.Minute) b64Encode := base64.RawURLEncoding.EncodeToString