Skip to content

Commit

Permalink
fix: update the image reference format for audit log when pulling ima…
Browse files Browse the repository at this point in the history
…ge (#20278)

Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
  • Loading branch information
Shengwen YU authored Apr 16, 2024
1 parent 938c804 commit 91efec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/event/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (p *PullArtifactEvent) ResolveToAuditLog() (*model.AuditLog, error) {
ResourceType: "artifact"}

if len(p.Tags) == 0 {
auditLog.Resource = fmt.Sprintf("%s:%s",
auditLog.Resource = fmt.Sprintf("%s@%s",
p.Artifact.RepositoryName, p.Artifact.Digest)
} else {
auditLog.Resource = fmt.Sprintf("%s:%s",
Expand Down

0 comments on commit 91efec1

Please sign in to comment.