A CLI to Tame OWASP Dependency-Track Version Sprawl in CI/CD

2 pointsposted 12 hours ago
by medunes

1 Comments

medunes

12 hours ago

Like many of you, I struggled with automating Dependency-Track. Using curl was messy, and my dashboard was flooded with hundreds of "Active" versions from old CI builds, destroying my metrics.

I built a small CLI tool (Go) to solve this. It handles the full lifecycle in one command:

Uploads the SBOM.

Tags the new version as Latest.

Auto-archives old versions (sets active: false) so only the deployed version counts toward risk scores.

It’s open source and works as a single binary (or Docker image). Hope it saves you some bash-scripting headaches!

Repo: https://github.com/MedUnes/dtrack-cli