You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have badges for code coverage and build status in the readme for our repositories. Recently we have started using Dependency-Track as well and I would like to have badges for vulnerabilities and policy violations.
The problem is that the readme is a simple markdown document, and as far as I can tell I need to supply either the UUID for a project/version combination or the project name and a version.
All other badges from other services simply get the latest information, or the information for the main branch.
Is there any way to get the badge for a project and the version marked as "latest"?
EDIT:
One workaround that I have found is to upload the BOM twice when a release is built. The first upload use the actual version number as the version, and the second one use the string "latest". The version with the actual version number is marked as "isLatest" and the one called "latest" is not. I can then fetch the badge for the "latest" version and it should always be the latest. It's messy though and there is nothing connecting "latest" with "1.2.3" in the GUI so I would prefer to not do it in this way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
We have badges for code coverage and build status in the readme for our repositories. Recently we have started using Dependency-Track as well and I would like to have badges for vulnerabilities and policy violations.
The problem is that the readme is a simple markdown document, and as far as I can tell I need to supply either the UUID for a project/version combination or the project name and a version.
All other badges from other services simply get the latest information, or the information for the main branch.
Is there any way to get the badge for a project and the version marked as "latest"?
EDIT:
One workaround that I have found is to upload the BOM twice when a release is built. The first upload use the actual version number as the version, and the second one use the string "latest". The version with the actual version number is marked as "isLatest" and the one called "latest" is not. I can then fetch the badge for the "latest" version and it should always be the latest. It's messy though and there is nothing connecting "latest" with "1.2.3" in the GUI so I would prefer to not do it in this way.
Beta Was this translation helpful? Give feedback.
All reactions