Skip to content

Commit

Permalink
fix: update the image reference format for audit log when pulling image
Browse files Browse the repository at this point in the history
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
  • Loading branch information
Shengwen Yu committed Apr 15, 2024
1 parent 8bf26c0 commit f433324
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",

Check warning on line 191 in src/controller/event/topic.go

View check run for this annotation

Codecov / codecov/patch

src/controller/event/topic.go#L191

Added line #L191 was not covered by tests
p.Artifact.RepositoryName, p.Artifact.Digest)
} else {
auditLog.Resource = fmt.Sprintf("%s:%s",
Expand Down

0 comments on commit f433324

Please sign in to comment.