Skip to content

Comments

ci(build): update image tag to use branch name in workflow#213

Merged
dmitrii-parshenkov merged 1 commit intomainfrom
fix-sbom-task
Dec 12, 2025
Merged

ci(build): update image tag to use branch name in workflow#213
dmitrii-parshenkov merged 1 commit intomainfrom
fix-sbom-task

Conversation

@dmitrii-parshenkov
Copy link
Contributor

@dmitrii-parshenkov dmitrii-parshenkov commented Dec 12, 2025

Note

Update workflow to generate SBOM from the branch-tagged image (ghcr.io/mostly-ai/docs:${{ github.ref_name }}) instead of metadata-derived tags.

Written by Cursor Bugbot for commit 61f73d3. This will update automatically on new commits. Configure here.

@vercel
Copy link
Contributor

vercel bot commented Dec 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mostlyai-docs Ready Ready Preview Comment Dec 12, 2025 2:10pm

@dmitrii-parshenkov dmitrii-parshenkov merged commit eef1a9b into main Dec 12, 2025
5 checks passed
@dmitrii-parshenkov dmitrii-parshenkov deleted the fix-sbom-task branch December 12, 2025 14:10
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 17

Details

Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

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

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.

1 participant