chore: redact github token

This commit is contained in:
andig 2022-12-09 13:54:55 +01:00
parent 32aba08ec8
commit 86e5fadabd

View file

@ -35,6 +35,7 @@ func NewRepo(log *util.Logger, owner, repository string) *Repo {
client := request.NewClient(log)
if token := os.Getenv("GITHUB_TOKEN"); token != "" {
log.Redact(token)
ctx := context.WithValue(context.Background(), oauth2.HTTPClient, client)
client = oauth2.NewClient(ctx, oauth2.StaticTokenSource(&oauth2.Token{
AccessToken: token,