Skip to content

feat(sbom-scan): enhance SBOM scanning with production dependency groups - #1211

Merged
nfelt14 merged 2 commits into
mainfrom
nfelt14/separate-dependency-scanning
Sep 24, 2026
Merged

nfelt14 merged 2 commits into
mainfrom
nfelt14/separate-dependency-scanning

Conversation

@nfelt14

@nfelt14 nfelt14 commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Proposed changes

  • Added production-dependency-groups input to the reusable SBOM scan workflow, allowing users to specify which Poetry dependency groups are treated as production. Vulnerabilities in these groups will fail the build, while those in other groups will be reported as warnings.
  • Updated the SBOM scan workflow to handle production dependencies, including exporting and scanning production-specific SBOMs.
  • Improved security by avoiding script injection in the sbom-scan workflow.

Removed deprecated .grype.yaml configuration file.

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Functionality update (non-breaking change which updates or changes existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • CI/CD update (an update to the CI/CD workflows, scripts, and/or configurations)
  • Documentation update (an update to enhance the user experience when reading through the docs)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have followed the guidelines in the CONTRIBUTING document
  • I have signed the CLA
  • I have checked to ensure there aren't other open Pull Requests for the same update/change
  • I have created (or updated) an Issue to track the status of this update/change and updated the link in this PR description (see above in the Proposed changes section) using the wording Addresses #<issue_number>
  • I have performed a self-review of my code
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • Basic linting passes locally with my changes
  • I have added necessary documentation (if appropriate)
  • I have updated the Changelog with a brief description of my changes

- Added `production-dependency-groups` input to the reusable SBOM scan workflow, allowing users to specify which Poetry dependency groups are treated as production. Vulnerabilities in these groups will fail the build, while those in other groups will be reported as warnings.
- Updated the SBOM scan workflow to handle production dependencies, including exporting and scanning production-specific SBOMs.
- Improved security by avoiding script injection in the `sbom-scan` workflow.

Removed deprecated `.grype.yaml` configuration file.
@nfelt14
nfelt14 requested a review from a team as a code owner September 24, 2026 18:03
@codecov

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (56a3169) to head (3d8a43f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1211   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          233       233           
  Branches        32        32           
=========================================
  Hits           233       233           

☔ View full report in Codecov by Harness.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…workflow

- Adjusted the formatting in the CHANGELOG for better readability regarding security improvements in the `sbom-scan` workflow.
- Removed an unnecessary entry from the `production-dependency-groups` input in the `sbom-scan` workflow to streamline the configuration.
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Test Results (macos)

path passed subtotal
tests/test_bump_version_in_files.py 5 5
tests/test_create_unique_testpypi_version.py 7 7
tests/test_find_unreleased_changelog_items.py 6 6
tests/test_update_development_dependencies.py 13 13
TOTAL 31 31

Link to workflow run

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Test Results (windows)

path passed subtotal
tests\test_bump_version_in_files.py 5 5
tests\test_create_unique_testpypi_version.py 7 7
tests\test_find_unreleased_changelog_items.py 6 6
tests\test_update_development_dependencies.py 13 13
TOTAL 31 31

Link to workflow run

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Test Results (ubuntu)

path passed subtotal
tests/test_bump_version_in_files.py 5 5
tests/test_create_unique_testpypi_version.py 7 7
tests/test_find_unreleased_changelog_items.py 6 6
tests/test_update_development_dependencies.py 13 13
TOTAL 31 31

Link to workflow run

@nfelt14
nfelt14 merged commit bc2f10d into main Sep 24, 2026
39 checks passed
@nfelt14
nfelt14 deleted the nfelt14/separate-dependency-scanning branch September 24, 2026 18:16
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