Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ jobs:
- name: Build | Generate SBOM
uses: anchore/sbom-action@fbfd9c6c189226748411491745178e0c2017392d # v0.20.10
with:
image: ${{ steps.meta.outputs.tags }}
image: ghcr.io/mostly-ai/docs:${{ github.ref_name }}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: SBOM references wrong tag for slash-containing branches

The SBOM generation step uses github.ref_name directly as the Docker image tag, but the build step uses steps.meta.outputs.tags from docker/metadata-action. The metadata action sanitizes branch names by converting slashes to hyphens (e.g., feature/foo becomes feature-foo), while github.ref_name returns the raw branch name with slashes. For branches containing slashes, the SBOM step will attempt to scan an image tag that doesn't exist, causing the workflow to fail.

Fix in Cursor Fix in Web

format: cyclonedx-json