From 876c7d2b5486d6b365f96805424d283948693547 Mon Sep 17 00:00:00 2001 From: Mikhail Swift Date: Thu, 2 Nov 2023 01:35:41 -0400 Subject: [PATCH] wip: swallow policy denied error --- attestation/policyverify/policyverify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/attestation/policyverify/policyverify.go b/attestation/policyverify/policyverify.go index d63429d9..60b4d769 100644 --- a/attestation/policyverify/policyverify.go +++ b/attestation/policyverify/policyverify.go @@ -199,7 +199,7 @@ func (a *Attestor) Attest(ctx *attestation.AttestationContext) error { return fmt.Errorf("failed to generate verification summary: %w", err) } - return policyErr + return nil } func verificationSummaryFromResults(ctx *attestation.AttestationContext, policyEnvelope dsse.Envelope, policyResult policy.PolicyResult, accepted bool) (slsa.VerificationSummary, error) {