-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from alec-malcolm/master
Adds ability to specify a parent project
- Loading branch information
Showing
3 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,18 @@ Automatically create project and version in Dependency-Track, default `false` | |
|
||
Path and filename of the BOM, default `bom.xml` | ||
|
||
### `parent` | ||
|
||
Parent project uuid in Dependency-Track | ||
|
||
### `parentName` | ||
|
||
**Parent version is also required** Parent project name in Dependency-Track | ||
|
||
### `parentVersion` | ||
|
||
**Parent name is also required** Parent project version in Dependency-Track | ||
|
||
## Example usage | ||
|
||
With project name and version: | ||
|
@@ -79,3 +91,31 @@ with: | |
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' | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters