From 3314eb505503747f562938f906fd2faed02f05d5 Mon Sep 17 00:00:00 2001 From: John Kjell Date: Wed, 22 May 2024 23:46:26 -0500 Subject: [PATCH] Remove passed step results if artifacts don't match Signed-off-by: John Kjell --- policy/policy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/policy.go b/policy/policy.go index b6bb9576..81a4f34b 100644 --- a/policy/policy.go +++ b/policy/policy.go @@ -331,6 +331,7 @@ func (p Policy) verifyArtifacts(resultsByStep map[string]StepResult) (map[string } result.Rejected = append(result.Rejected, reject) + result.Passed = []source.CollectionVerificationResult{} resultsByStep[step.Name] = result } }