diff --git a/src/server/middleware/contenttrust/contenttrust.go b/src/server/middleware/contenttrust/contenttrust.go index 70792e844..152a89728 100644 --- a/src/server/middleware/contenttrust/contenttrust.go +++ b/src/server/middleware/contenttrust/contenttrust.go @@ -21,6 +21,9 @@ var ( if err != nil { return false, err } + if len(art.Tag) > 0 { + return checker.IsTagSigned(art.Tag, art.Digest), nil + } return checker.IsArtifactSigned(art.Digest), nil } )