From e25f7ed8258bc55b4f29873255929f9b6f6aa3cc Mon Sep 17 00:00:00 2001 From: dobby-dobster Date: Fri, 6 Sep 2024 16:17:32 +0100 Subject: [PATCH] fix: dont log GitHub app token in logs (#4667) Co-authored-by: Tom Baker --- server/events/vcs/gh_app_creds_rotator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/events/vcs/gh_app_creds_rotator.go b/server/events/vcs/gh_app_creds_rotator.go index 6522f33118..d5b059f972 100644 --- a/server/events/vcs/gh_app_creds_rotator.go +++ b/server/events/vcs/gh_app_creds_rotator.go @@ -61,7 +61,7 @@ func (r *githubAppTokenRotator) rotate() error { if err != nil { return errors.Wrap(err, "Getting github token") } - r.log.Debug("token %s", token) + r.log.Debug("Token successfully refreshed") // https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation if err := WriteGitCreds("x-access-token", token, r.githubHostname, r.homeDirPath, r.log, true); err != nil {