Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tool with a couple of features which Dependency Track not supported by self

License

Notifications You must be signed in to change notification settings

elomagic/dt-tool

Repository files navigation

Tool for Dependency Track


Apache License, Version 2.0, January 2004 build workflow GitHub issues Latest Maintenance Buymeacoffee

A tool that helps you to manage Dependency Track content better.

  • Delete outdated projects
  • Collect SBOMs of projects to one ZIP file
  • tbc

Using the library

Download the latest version of DT-Tool https://github.com/elomagic/dt-tool/releases

Configuration

File ${sys:user.home}/.dt-tool/configuration.json5

The configuration `file, named configuration.json5, must be placed in a sub folder named ```.dt-tool``` of the users home folder.

{
    // Base URL of Dependency Track
    "baseUrl": "https://dependencytrackapi.local",
    // API key to access REST API of the Dependency Track
    "apiKey": "<API-KEY>",
}

Execute

Execute following line to see all supported options:

dt-tool.sh --help

Example - Delete outdated SNAPSHOTS (30 days and older)

dt-tool.sh delete-projects -v

Example - Collect SBOMs

dt-tool.sh collect-boms -v --notBeforeDays=10 --projectFilter="b83457bd-5c89-4dc6-b6e1-eda408507dcd","117a619b-da93-4a85-8f8f-0e3ab9efce4c" -f="solution-stack-sboms.zip"

Example - Export simple report

dt-tool.cmd report -v --file dt-report.csv --decimalSymbol=, --fillGaps=true

Example - Print invalid license IDs

dt-tool.sh check-licenses -v --projectFilter="dt-tool"

Example - Tag projects

dt-tool.sh tag-projects --tag "sampleTag"

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Versioning

Versioning follows the semantic of Semantic Versioning 2.0.0

License

The dt-tool is distributed under Apache License, Version 2.0

Donations

Donations will ensure the following:

  • 🔨 Long term maintenance of the project
  • 🛣 Progress on the roadmap
  • 🐛 Quick responses to bug reports and help requests

About

Tool with a couple of features which Dependency Track not supported by self

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages