keep comment

Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
Meredith Lancaster 2024-10-31 16:16:09 -06:00
parent a81cb730fc
commit 9f3d00960c

View file

@ -45,6 +45,11 @@ func newEnforcementCriteria(opts *Options) (verification.EnforcementCriteria, er
if opts.DenySelfHostedRunner {
c.Extensions.RunnerEnvironment = GitHubRunner
} else {
// if Extensions.RunnerEnvironment value is set to the empty string
// through the second function argument,
// no certificate matching will happen on the RunnerEnvironment field
c.Extensions.RunnerEnvironment = ""
}
if opts.Repo != "" {