mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 09:42:13 +00:00
fix: update the image reference format for audit log when pulling image (#20278)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
This commit is contained in:
parent
938c804513
commit
91efec1e2a
@ -188,7 +188,7 @@ func (p *PullArtifactEvent) ResolveToAuditLog() (*model.AuditLog, error) {
|
|||||||
ResourceType: "artifact"}
|
ResourceType: "artifact"}
|
||||||
|
|
||||||
if len(p.Tags) == 0 {
|
if len(p.Tags) == 0 {
|
||||||
auditLog.Resource = fmt.Sprintf("%s:%s",
|
auditLog.Resource = fmt.Sprintf("%s@%s",
|
||||||
p.Artifact.RepositoryName, p.Artifact.Digest)
|
p.Artifact.RepositoryName, p.Artifact.Digest)
|
||||||
} else {
|
} else {
|
||||||
auditLog.Resource = fmt.Sprintf("%s:%s",
|
auditLog.Resource = fmt.Sprintf("%s:%s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user