Skip to content

fix: also push image-tag-based metadata tag when syncing container images#142

Merged
tompizmor merged 1 commit intomainfrom
feature/push-metadata-tag
Mar 20, 2026
Merged

fix: also push image-tag-based metadata tag when syncing container images#142
tompizmor merged 1 commit intomainfrom
feature/push-metadata-tag

Conversation

@tompizmor
Copy link
Copy Markdown
Contributor

Description

When pushing metadata artifacts to a target registry, only the sha256-based tag (sha256-<hex>.metadata) was being published. The source registry also provides a shorter, human-readable metadata tag (<image-tag>-metadata, e.g. 39.0.1-redhatubi-9-r2-metadata) that makes it easy to match security artifacts with their associated image.

Changes

Modified pkg/artifacts/artifacts.go to introduce a new internal function pushMetadataTags that pushes the same local OCI-layout artifact to the target registry under both tag formats:

  • sha256-<hex>.metadata — digest-based tag (existing behaviour, unchanged)
  • <image-tag>-metadata — human-readable tag (new)

The pull side is left unchanged: artifacts are still fetched from the source using the sha256-based tag, which has always been present.

…ages

Signed-off-by: Tomas Pizarro Moreno <tomas.pizarro@broadcom.com>
@tompizmor tompizmor merged commit e2cda69 into main Mar 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants