Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster 2024-11-01 09:02:56 -06:00
parent a6d15b4f60
commit bb1584b52a

View file

@ -74,8 +74,8 @@ func newEnforcementCriteria(opts *Options) (verification.EnforcementCriteria, er
c.Certificate.SourceRepositoryOwnerURI = fmt.Sprintf("https://github.com/%s", opts.Owner)
}
// If the OIDCIssuer option has been set, use that custom value
// Otherwise check if tenant is provided, select the appropriate default based on that
// if issuer is anything other than the default, use the user-provided value;
// otherwise, select the appropriate default based on the tenant
if opts.OIDCIssuer != verification.GitHubOIDCIssuer {
c.Certificate.Issuer = opts.OIDCIssuer
} else {