Skip to content

fix(publish): optional registry login for image SBOMs - #5

Merged
singlerider merged 1 commit into
mainfrom
fix/sbom-registry-login
Oct 7, 2026
Merged

singlerider merged 1 commit into
mainfrom
fix/sbom-registry-login

Conversation

@singlerider

Copy link
Copy Markdown
Contributor

What

The shared publish.yml image-sbom job can log in to a registry before running anchore/sbom-action.

  • New optional secret registry-token, plus inputs registry (default docker.io) and registry-username.
  • Login runs only when registry-token is passed, so public-image callers are unchanged.

Why

image-sbom never logged in, so it could not pull private images. Every tag release of bbot-enterprise (private bbot-enterprise-backend and bbot-enterprise-frontend on Docker Hub) would create the release and then fail both SBOM legs, leaving the run red and the image SBOMs unattached. Found in en0f's review of bbot-enterprise#268.

Validation

  • publish.yml parses (yaml.safe_load). actionlint is not installed locally.
  • No caller exercises it yet. bbot-enterprise#268 already passes registry-username and registry-token and is pinned to CLA main de82726. After this merges, #268 repins to the merge commit and the first tag release is the end-to-end check.

Refs blacklanternsecurity/bbot-enterprise#150
Refs blacklanternsecurity/bbot-enterprise#268

anchore/sbom-action cannot pull private images without credentials, so
every tag release with private images failed in image-sbom. Add a
registry-token secret plus registry and registry-username inputs, and
log in only when the token is provided so public callers are unchanged.
@singlerider singlerider self-assigned this Oct 6, 2026
@singlerider
singlerider requested a review from en0f October 6, 2026 16:35
@singlerider
singlerider merged commit 40c6e18 into main Oct 7, 2026
8 checks passed
@singlerider
singlerider deleted the fix/sbom-registry-login branch October 7, 2026 04:04
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