diff --git a/pkg/providers/google/google.go b/pkg/providers/google/google.go index 171df89db0de..f7638d1977c9 100644 --- a/pkg/providers/google/google.go +++ b/pkg/providers/google/google.go @@ -83,7 +83,7 @@ func (gi *googleImpersonate) Enabled(ctx context.Context) bool { func (gi *googleImpersonate) Provide(ctx context.Context, audience string) (string, error) { target := os.Getenv("GOOGLE_SERVICE_ACCOUNT_NAME") ts, err := impersonate.IDTokenSource(ctx, impersonate.IDTokenConfig{ - Audience: "sigstore", + Audience: audience, TargetPrincipal: target, IncludeEmail: true, })