Skip to content

Commit

Permalink
re-adds basedOnUBI check to root policy exception
Browse files Browse the repository at this point in the history
Signed-off-by: Jose R. Gonzalez <jose@flutes.dev>
  • Loading branch information
komish committed Jul 27, 2022
1 parent 12911ed commit 3140737
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions certification/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ func initializeChecks(ctx context.Context, p policy.Policy, cfg certification.Co
&containerpol.HasNoProhibitedPackagesCheck{},
&containerpol.HasRequiredLabelsCheck{},
&containerpol.HasModifiedFilesCheck{},
containerpol.NewBasedOnUbiCheck(pyxis.NewPyxisClient(
certification.DefaultPyxisHost,
cfg.PyxisAPIToken(),
cfg.CertificationProjectID(),
&http.Client{Timeout: 60 * time.Second})),
}, nil
case policy.PolicyScratch:
return []certification.Check{
Expand Down

0 comments on commit 3140737

Please sign in to comment.