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
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func findTokenSource(ctx context.Context, rawToken, audience string) (oauth2.Tok
tokenSource, err := idtoken.NewTokenSource(ctx, audience)
if err != nil {
// Return any unexpected error.
if !strings.Contains(err.Error(), "credential must be service_account") {
if !strings.Contains(err.Error(), "unsupported credentials type") {
return nil, fmt.Errorf("failed to get idtoken source: %w", err)
}

Expand Down