mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-06 02:31:06 +01:00
Merge pull request #12973 from reasonerjt/content-trust-check-tag-2.1
Check the tag in isArtifactSigned func -- cherrypick to 2.1
This commit is contained in:
commit
7bcfb502d2
@ -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
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user