-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
32 lines (32 loc) · 1.27 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
name: 'SecureStack SBOM'
description: 'Create a Software Bill of Materials (SBOM) with SecureStack'
branding:
icon: 'code'
color: 'green'
inputs:
securestack_api_key:
description: 'SecureStack API key - generate one at https://app.securestack.com'
required: true
securestack_app_id:
description: 'SecureStack Application ID - available when viewing applications at https://app.securestack.com'
required: true
severity:
description: 'Severities lower than this input value will not be reported; value should be one of: critical | high | medium | low'
required: true
flags:
description: 'Optional flags for the bloodhound-cli SBOM command - run bloodhound-cli SBOM --help for more details.'
required: false
default: ''
runs:
using: 'composite'
steps:
- name: Pull bloodhound-cli image
shell: bash
run: docker pull securestackau/bloodhound-cli
- name: Run bloodhound-cli
shell: bash
env:
BH_API_KEY: ${{ inputs.securestack_api_key }}
BH_APP_ID: ${{ inputs.securestack_app_id }}
BH_SEVERITY: ${{ inputs.severity }}
run: docker run -e BH_API_KEY -e BH_APP_ID -e BH_SEVERITY -v $GITHUB_WORKSPACE:/github/workspace securestackau/bloodhound-cli SBOM -r -a $BH_APP_ID ${{ inputs.flags }}; echo $?