Skip to content

Commit

Permalink
adding issuer to error log
Browse files Browse the repository at this point in the history
Signed-off-by: Javan lacerda <javanlacerda@google.com>
  • Loading branch information
javanlacerda committed Aug 15, 2024
1 parent 8403201 commit f06f32f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/identity/ciprovider/principal.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ func WorkflowPrincipalFromIDToken(ctx context.Context, token *oidc.IDToken) (ide
}
metadata, ok := cfg.CIIssuerMetadata[issuerCfg.CIProvider]
if !ok {
return nil, fmt.Errorf("metadata not found for ci provider %s", issuerCfg.CIProvider)
return nil, fmt.Errorf(
"metadata not found for ci provider %s, issuer: %s", issuerCfg.CIProvider, token.Issuer)
}
return ciPrincipal{
token,
Expand Down

0 comments on commit f06f32f

Please sign in to comment.