dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Wrong Latest version reported by using github package URL

Open g-sahil22 opened this issue 1 year ago • 5 comments

Current Behavior

For the below component wrong latest version is reported image image

Error: image

Steps to Reproduce

  1. create a component as per the below screenshot image
  2. review the latest version reported

Expected Behavior

DT will report this component as latest version

Dependency-Track Version

4.10.1

Dependency-Track Distribution

Container Image

Database Server

PostgreSQL

Database Server Version

No response

Browser

Google Chrome

Checklist

g-sahil22 avatar Feb 21 '24 09:02 g-sahil22

The tagging format on the particular repo given as example is adding a 'v' before the version number in the tags: v1.7.17 rather than 1.7.17. Since the pURL is referencing tags and not labels it should be pkg:github/davegamble/[email protected] otherwise the Github api returns a 404 Not Found when requested.

List of tags available @ https://github.com/DaveGamble/cJSON/tags for the list of tags

sebD avatar Feb 29 '24 00:02 sebD

If I create a DependencyTrack component with the following pURL pkg:github/dependencytrack/[email protected] I get a correct result: image

sebD avatar Feb 29 '24 00:02 sebD

Hi @sebD , I update the PURL, but still same issue image image

g-sahil22 avatar Feb 29 '24 05:02 g-sahil22

I have noticed that updating the purl doesn't correct the problem immediately indeed. The outdated character of a dependency is defined during analysis. You may have to trigger one (I haven't personally checked)

sebD avatar Feb 29 '24 08:02 sebD

@g-sahil22 any progress on that issue ? Did you try to trigger a new analysis and did it update the version accordingly ?

sebD avatar Mar 13 '24 23:03 sebD