https://github.com/elomagic/dt-tool
Dependency Track Tool
https://github.com/elomagic/dt-tool
dependency-track dependencytrack sbom
Last synced: about 1 year ago
JSON representation
Dependency Track Tool
- Host: GitHub
- URL: https://github.com/elomagic/dt-tool
- Owner: elomagic
- License: apache-2.0
- Created: 2024-06-13T12:53:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T14:45:17.000Z (about 1 year ago)
- Last Synced: 2025-04-09T15:45:02.505Z (about 1 year ago)
- Topics: dependency-track, dependencytrack, sbom
- Language: Java
- Homepage:
- Size: 525 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Tool for Dependency Track
---
[][license]
[](https://github.com/elomagic/dt-tool/actions)
[](https://github.com/elomagic/dt-tool/issues)
[](https://github.com/elomagic/dt-tool/releases)
[](https://github.com/elomagic/dt-tool/graphs/commit-activity)
[](https://www.buymeacoffee.com/elomagic)
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.
```json5
{
// Base URL of Dependency Track
"baseUrl": "https://dependencytrackapi.local",
// API key to access REST API of the Dependency Track
"apiKey": "",
}
```
### Execute
Execute following line to see all supported options:
```shell
dt-tool.sh --help
```
#### Example - Delete outdated SNAPSHOTS (30 days and older)
```shell
dt-tool.sh delete-projects -v
```
#### Example - Collect SBOMs
```shell
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
```shell
dt-tool.cmd report -v --file dt-report.csv --decimalSymbol=, --fillGaps=true
```
#### Example - Print invalid license IDs
```shell
dt-tool.sh check-licenses -v --projectFilter="dt-tool"
```
## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
### Versioning
Versioning follows the semantic of [Semantic Versioning 2.0.0](https://semver.org/)
## License
The dt-tool is distributed under [Apache License, Version 2.0][license]
[license]: https://www.apache.org/licenses/LICENSE-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