refactor! don't use ctx for policy evaluator (#140)

* refactor! don't use ctx for policy evaluator
This commit is contained in:
James Carnegie
2024-08-29 17:43:45 +01:00
committed by GitHub
parent 9250552c5b
commit a4ac09e7da
7 changed files with 31 additions and 68 deletions

View File

@@ -32,7 +32,6 @@ var (
func TestAttestationReferenceTypes(t *testing.T) {
ctx, signer := test.Setup(t)
ctx = policy.WithPolicyEvaluator(ctx, policy.NewRegoEvaluator(true))
platforms := []string{"linux/amd64", "linux/arm64"}
for _, tc := range []struct {
name string