Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions stale_repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ func (t *tokenSource) Token() (*oauth2.Token, error) {
}, nil
}

// String redacts the OAuth token to prevent accidental exposure in logs or error output.
func (t *tokenSource) String() string {
return "tokenSource{AccessToken: [REDACTED]}"
}

// GoString redacts the OAuth token to prevent accidental exposure via %#v formatting.
func (t *tokenSource) GoString() string {
return "tokenSource{AccessToken: [REDACTED]}"
}

func getRepositoriesFromBody(body string) []string {
links := strings.Split(body, "- ")
for i, link := range links {
Expand Down
Loading