Skip to content

Commit

Permalink
Remove passed step results if artifacts don't match
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <[email protected]>
  • Loading branch information
jkjell committed Jun 11, 2024
1 parent 14180de commit 3314eb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 3314eb5

Please sign in to comment.