Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for version policy conditions #930

Merged

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Feb 10, 2021

This PR adds a new Version policy condition that allows for matching of specific component versions or version ranges:

Version Condition

Additionally, as suggested by @stevespringett in Slack, the Coordinates condition was extended to support version operators as well:

Coordinates Condition with Version Operator

Policy Violation with Version Operator

All numeric comparison operators are supported (<, <=, >, >=, ==, !=). If a coordinate's version does not start with any of those operators, DT will fall back to the default contains logic.

@stevespringett
Copy link
Member

Fantastic. This is going to be very useful.

@stevespringett stevespringett merged commit dd99309 into DependencyTrack:master Feb 10, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants