Skip to content

fix: only generate SBOM on protected branches, only commit on main - #4

Merged
rubenvdlinde merged 1 commit into
mainfrom
fix/sbom-only-protected-branches
Mar 17, 2026
Merged

fix: only generate SBOM on protected branches, only commit on main#4
rubenvdlinde merged 1 commit into
mainfrom
fix/sbom-only-protected-branches

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • SBOM generation now only runs on main, beta, and development branches (was running on every push to any branch)
  • The SBOM commit/push step now only runs on main — on beta and development the SBOM is generated and validated but not committed back
  • This prevents the bot from creating "chore: update SBOM" commits on every feature branch push

Context

The standalone sbom.yml workflows in individual app repos (opencatalogi, openconnector, softwarecatalog, mydash, docudesk) are being replaced with enable-sbom: true in the reusable quality workflow to avoid duplication.

Test plan

  • Verify SBOM job runs on push to main
  • Verify SBOM job runs on push to beta and development (generate + validate only, no commit)
  • Verify SBOM job does NOT run on push to feature/** branches

SBOM generation now only runs on main, beta, and development branches.
The SBOM commit/push step only runs on main to prevent bot commits
on feature branches and PRs.
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