Skip to content

Commit 7d1e19e

Browse files
Update internal/oci/notation/notation.go
Co-authored-by: souleb <[email protected]> Signed-off-by: Jagpreet Singh Tamber <[email protected]>
1 parent 267440e commit 7d1e19e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/oci/notation/notation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ func (v *NotationVerifier) Verify(ctx context.Context, ref name.Reference) (oci.
244244
// It takes a slice of verification outcomes and a URL as input parameters.
245245
// If there are no verification outcomes, it returns a failed verification result with an error message.
246246
// If the first verification outcome has a verification level of "trustpolicy.LevelSkip", it returns an ignored verification result.
247+
// This function assumes that "trustpolicy.TypeIntegrity" is always enforced. It will return a successful validation result if "trustpolicy.TypeAuthenticity" is successful too.
247248
// If any of the verification results have an error, it logs the error message and sets the "ignore" flag to true if the error type is "trustpolicy.TypeAuthenticity".
248249
// If the "ignore" flag is true, it returns an ignored verification result.
249250
// Otherwise, it returns a successful verification result.

0 commit comments

Comments
 (0)