keep comment
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
a81cb730fc
commit
9f3d00960c
1 changed files with 5 additions and 0 deletions
|
|
@ -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 != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue