This action uploads a software bill of materials file to a Dependency-Track server.
Required Dependency-Track hostname
Defaults to 443
Can be https
or http
Defaults to https
Required Dependency-Track API key
Required, unless projectname and projectversion are provided Project uuid in Dependency-Track
Required, unless project is provided Project name in Dependency-Track
Required, unless project is provided Project version in Dependency-Track
Automatically create project and version in Dependency-Track, default false
Path and filename of the BOM, default bom.xml
Parent project uuid in Dependency-Track
Parent version is also required Parent project name in Dependency-Track
Parent name is also required Parent project version in Dependency-Track
With project name and version:
uses: DependencyTrack/[email protected]
with:
serverHostname: 'example.com'
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
projectName: 'Example Project'
projectVersion: 'master'
bomFilename: "/path/to/bom.xml"
autoCreate: true
With protocol, port and project name:
- name: SBOM zu DependencyTrack senden
uses: DependencyTrack/[email protected]
with:
protocol: ${{ secrets.DEPENDENCYTRACK_PROTOCOL }}
serverHostname: ${{ secrets.DEPENDENCYTRACK_HOSTNAME }}
port: ${{ secrets.DEPENDENCYTRACK_PORT }}
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
projectName: 'Example Project'
projectVersion: 'master'
bomFilename: "/path/to/bom.xml"
autoCreate: true
With project uuid:
uses: DependencyTrack/[email protected]
with:
serverHostname: 'example.com'
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
project: 'dadec8ad-7053-4e8c-8044-7b6ef698e08d'
With protocol, port, project name and parent name:
- name: SBOM zu DependencyTrack senden
uses: DependencyTrack/[email protected]
with:
protocol: ${{ secrets.DEPENDENCYTRACK_PROTOCOL }}
serverHostname: ${{ secrets.DEPENDENCYTRACK_HOSTNAME }}
port: ${{ secrets.DEPENDENCYTRACK_PORT }}
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
projectName: 'Example Project'
projectVersion: 'master'
bomFilename: "/path/to/bom.xml"
autoCreate: true
parentName: 'Example Parent'
parentVersion: 'master'
With parent uuid:
uses: DependencyTrack/[email protected]
with:
serverHostname: 'example.com'
apiKey: ${{ secrets.DEPENDENCYTRACK_APIKEY }}
project: 'dadec8ad-7053-4e8c-8044-7b6ef698e08d'
parent: '6a5a3c33-3f8b-42ee-8d50-594bfd95dd32'