Skip to content

Commit e25f7ed

Browse files
dobby-dobstertobaker
authored andcommitted
fix: dont log GitHub app token in logs (runatlantis#4667)
Co-authored-by: Tom Baker <[email protected]>
1 parent 71484c2 commit e25f7ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/events/vcs/gh_app_creds_rotator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (r *githubAppTokenRotator) rotate() error {
6161
if err != nil {
6262
return errors.Wrap(err, "Getting github token")
6363
}
64-
r.log.Debug("token %s", token)
64+
r.log.Debug("Token successfully refreshed")
6565

6666
// https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation
6767
if err := WriteGitCreds("x-access-token", token, r.githubHostname, r.homeDirPath, r.log, true); err != nil {

0 commit comments

Comments
 (0)