Skip to content

fix: exclude UV dev dependencies from SBOMs#480

Merged
Strum355 merged 1 commit into
guacsec:mainfrom
Strum355:TC-4096-uv
Apr 21, 2026
Merged

fix: exclude UV dev dependencies from SBOMs#480
Strum355 merged 1 commit into
guacsec:mainfrom
Strum355:TC-4096-uv

Conversation

@Strum355

@Strum355 Strum355 commented Apr 17, 2026

Copy link
Copy Markdown
Member

Summary

  • uv export was including dev dependencies in the output, causing false positive vulnerability reports (same root cause as fix: exclude Poetry dev dependencies from SBOMs #479 but for the UV provider)
  • Fix adds --no-dev flag to the uv export command
  • Adds test fixture with a [dependency-groups] dev section and tests verifying dev deps are excluded from both stack and component analysis

Relates to TC-4096

Test plan

  • Reproduced: black (dev dep) appeared in UV SBOM before fix
  • Verified --no-dev excludes dev deps from both stack and component analysis
  • Verified --no-dev is safe on projects without a dev group (no error)
  • All 35 pyproject tests pass, no regressions

🤖 Generated with Claude Code

@Strum355
Strum355 requested a review from ruromero April 17, 2026 15:33

@ruromero ruromero left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Strum355
Strum355 merged commit ccdac93 into guacsec:main Apr 21, 2026
6 checks passed
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.

2 participants