Skip to content

Commit

Permalink
Merge pull request #31350 from oliver-goetz/fix/prevent-gitclientfact…
Browse files Browse the repository at this point in the history
…ory-leaking-secrets

Prevent clients created with `GitHubOptions.GitClientFactory` from leaking secrets
  • Loading branch information
k8s-ci-robot authored Dec 6, 2023
2 parents 46b97e4 + d7514b3 commit 39862d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prow/flagutil/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ func (o *GitHubOptions) GitHubClientWithAccessToken(token string) (github.Client
// github.go.
func (o *GitHubOptions) GitClientFactory(cookieFilePath string, cacheDir *string, dryRun, persistCache bool) (gitv2.ClientFactory, error) {
opts := gitv2.ClientFactoryOpts{
Censor: secret.Censor,
CookieFilePath: cookieFilePath,
Host: o.Host,
Persist: &persistCache,
Expand Down

0 comments on commit 39862d7

Please sign in to comment.