fix runner setting
Signed-off-by: Meredith Lancaster <malancas@github.com>
This commit is contained in:
parent
bb0dcd9db4
commit
61b60e9430
2 changed files with 1 additions and 3 deletions
|
|
@ -66,8 +66,6 @@ func newEnforcementCriteria(opts *Options, a artifact.DigestedArtifact) (verific
|
|||
|
||||
if opts.DenySelfHostedRunner {
|
||||
c.Extensions.RunnerEnvironment = GitHubRunner
|
||||
} else {
|
||||
c.Extensions.RunnerEnvironment = "*"
|
||||
}
|
||||
|
||||
if opts.Repo != "" {
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ func TestNewEnforcementCriteria(t *testing.T) {
|
|||
|
||||
c, err := newEnforcementCriteria(opts, *artifact)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, "*", c.Extensions.RunnerEnvironment)
|
||||
require.Zero(t, c.Extensions.RunnerEnvironment)
|
||||
})
|
||||
|
||||
t.Run("sets Extensions.SourceRepositoryURI using opts.Repo and opts.Tenant", func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue