mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 01:27:49 +01:00
Merge pull request #12972 from reasonerjt/content-trust-check-tag
Check the tag in isArtifactSigned func
This commit is contained in:
commit
062600ef6f
@ -21,6 +21,9 @@ var (
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
|
if len(art.Tag) > 0 {
|
||||||
|
return checker.IsTagSigned(art.Tag, art.Digest), nil
|
||||||
|
}
|
||||||
return checker.IsArtifactSigned(art.Digest), nil
|
return checker.IsArtifactSigned(art.Digest), nil
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user