Skip to content

fix: exclude UV dev dependencies from SBOMs#480

Open
Strum355 wants to merge 1 commit intoguacsec:mainfrom
Strum355:TC-4096-uv
Open

fix: exclude UV dev dependencies from SBOMs#480
Strum355 wants to merge 1 commit intoguacsec:mainfrom
Strum355:TC-4096-uv

Conversation

@Strum355
Copy link
Copy Markdown
Member

@Strum355 Strum355 commented Apr 17, 2026

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
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