-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
41 lines (40 loc) · 1.28 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: 'blackduck-report-action'
description: 'Create Black Duck Report and download it'
author: "Jeroen Knoops <jeroen.knoops@philips.com>"
branding:
icon: "anchor"
color: "gray-dark"
inputs:
blackduck-url:
description: 'url to Black Duck instance'
required: true
blackduck-token:
description: 'Black Duck API token'
required: true
project:
description: 'Project name in Black Duck'
required: true
version:
description: 'Version in Black Duck'
required: true
report-format:
description: 'sbomType "SPDX_22" allows reportFormat values of "JSON", "RDF", "TAGVALUE" or "YAML". sbomType "CYCLONEDX_13" or "CYCLONEDX_14" allows reportFormat values of "JSON". sbomType "VERSION_LICENSE" allows reportFormat value "TEXT".'
default: "JSON"
sbom-type:
description: 'Type of SBOM report. Allowed values - SPDX_22, CYCLONEDX_13, CYCLONEDX_14, or VERSION_LICENSE'
default: "SPDX_22"
outputs:
sbom-file:
description: 'SBOM filename if created'
sbom-contents:
description: 'SBOM content if created'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.blackduck-url }}
- ${{ inputs.blackduck-token }}
- ${{ inputs.project }}
- ${{ inputs.version }}
- ${{ inputs.sbom-type }}
- ${{ inputs.report-format }}