Skip to content

feat: add SBOMs to release workflow - #1940

Merged
TerryHowe merged 3 commits into
oras-project:mainfrom
bupd:add-sbom
Dec 12, 2025
Merged

TerryHowe merged 3 commits into
oras-project:mainfrom
bupd:add-sbom

Conversation

@bupd

@bupd bupd commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

  • Add SBOM generation for release archives via goreleaser
  • Install Syft v1.32.0 in the GitHub release workflow

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1939

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test?
  • Does this change require a documentation update?
  • Does this introduce breaking changes that would require an announcement or bumping the major version?
  • Do all new files have an appropriate license header?

@codecov

codecov Bot commented Dec 10, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.29%. Comparing base (d466a06) to head (e007566).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1940      +/-   ##
==========================================
- Coverage   87.33%   87.29%   -0.04%     
==========================================
  Files         143      143              
  Lines        5535     5535              
==========================================
- Hits         4834     4832       -2     
- Misses        415      417       +2     
  Partials      286      286              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Software Bill of Materials (SBOM) generation to the GitHub release workflow to improve supply chain security and transparency. The implementation uses goreleaser's built-in SBOM support with Syft v1.32.0 to automatically generate SBOMs for all release archives.

Key changes:

  • Configure goreleaser to generate SBOMs for archive artifacts
  • Install Syft v1.32.0 in the GitHub release workflow to support SBOM generation

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.goreleaser.yml Adds SBOM configuration to generate SBOMs for release archives
.github/workflows/release-github.yml Installs Syft v1.32.0 to enable SBOM generation during the release process

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@FeynmanZhou FeynmanZhou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks @bupd ! Where can users download the SBOM? From the release page?

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@bupd

bupd commented Dec 12, 2025 •

Copy link
Copy Markdown
Contributor Author

LGTM. Thanks @bupd ! Where can users download the SBOM? From the release page?

yes, exactly

here is an example on how this would look like - https://github.com/kitops-ml/kitops/releases/tag/v1.10.0

@TerryHowe
TerryHowe merged commit 959c20c into oras-project:main Dec 12, 2025
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.

Add SBOMs to Release Workflow

5 participants