Skip to content

Implement Version Parameter when exporting BOM's#5073

Merged
nscuro merged 2 commits intoDependencyTrack:masterfrom
noevembr:master
Jul 1, 2025
Merged

Implement Version Parameter when exporting BOM's#5073
nscuro merged 2 commits intoDependencyTrack:masterfrom
noevembr:master

Conversation

@noevembr
Copy link
Copy Markdown

Version Parameter for exporting BOM/VEX Resources see #5062

Description

Added optional Version parameter for exporting BOM's in specific Versions.

Addressed Issue

Closes #5062

Additional Details

  • Added a simple, additional paramater for version. Instead of expanding the if-elseif-else branches, opted for earlier argument checks with corresponding exits.
  • Expanded Tests which were already testing the changed endpoints.
  • Added additional positive and negativ tests

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

@owasp-dt-bot
Copy link
Copy Markdown

owasp-dt-bot commented Jun 25, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

e-seq added 2 commits June 25, 2025 10:34
Version Parameter for exporting BOM/VEX Resources see DependencyTrack#5062

Re-add accidentally removed Unittest

Signed-off-by: Emily Sequeira <[email protected]>
@nscuro nscuro added this to the 4.14.0 milestone Jul 1, 2025
@nscuro nscuro added the enhancement New feature or request label Jul 1, 2025
@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.04% (target: -1.00%) 80.39% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b4fa5ce) 24017 19406 80.80%
Head commit (fca153c) 24035 (+18) 19430 (+24) 80.84% (+0.04%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5073) 51 41 80.39%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Copy link
Copy Markdown
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

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

Thanks!

@nscuro nscuro merged commit a95d390 into DependencyTrack:master Jul 1, 2025
11 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Version Specification when exporting SBOM's

4 participants