Implemented VERS approach for PURL version matching with VERSATILE.#5591
Implemented VERS approach for PURL version matching with VERSATILE.#5591nscuro merged 2 commits intoDependencyTrack:masterfrom
Conversation
Signed-off-by: ElenaStroebele <[email protected]>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
nscuro
left a comment
There was a problem hiding this comment.
Have you done any testing WRT the internal analysis using data from GitHub Advisories or OSV? It would be good to get an idea how this performs with real-world data.
src/main/java/org/dependencytrack/policy/VersionPolicyEvaluator.java
Outdated
Show resolved
Hide resolved
src/main/java/org/dependencytrack/tasks/scanners/AbstractVulnerableSoftwareAnalysisTask.java
Outdated
Show resolved
Hide resolved
Yes, I simply added the components that Github Advisories had assigned vulnerabilities to to a test project on a random basis. Vulnerabilities were correctly identified. I did it for most of the already supported schemes of versatile and one or two non-supported ones (which should have resulted in generic then). Would you like further info about that? |
Signed-off-by: ElenaStroebele <[email protected]>
|
Doing some testing as well now. I noticed there is a concurrency issue in versatile which I'll need to fix: |
|
Released versatile 0.14.0 which fixes the above and also adds support for Alpine and Python versions: https://github.com/nscuro/versatile/releases/tag/v0.14.0 This should then also resolve #3808 |
Thank you for adding this! I already deleted my PR fixing #3808 with the minimal change. |
|
I think i found some issues with that change. I have create a bug ticket 5712 |
Description
Implemented the VERS approach for comparing versioning schemes more reliably using the versatile/versatile-core/src/main/java/io/github/nscuro/versatile at main · nscuro/versatile package.
Key implementations:
Open for discussions!
Addressed Issue
Addressed issue #2826.
Additional Details
Used ChatGPT and Copilot to understand existing codebase.
Checklist