-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
44 lines (44 loc) · 1.82 KB
/
action.yaml
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
42
43
44
# action.yml
name: 'yewnorosen-test'
description: 'something-something'
inputs:
command: # id of input
description: 'Event Type'
required: true
default: 'release'
asset_id:
description: 'RKVST Asset Identity (assets/{{UUID}})'
required: true
attrs:
description: 'Core Event Attributes'
required: true
default: '{"name": "${{ github.repository }}", "description": "${{ github.event.release.tag_name }} - ${{ github.repository }}", "hash": "${{ github.sha }}", "version": "${{ github.event.release.tag_name }}", "author": "${{ github.actor }}", "supplier": "${{ github.repository_owner }}", "uuid": "${{ github.repository }}"}'
attachments:
description: 'Array of build artifacts to attach to event'
required: true
default: '[]'
custom_attrs:
description: 'Additional Event Attributes'
required: false
default: '{}'
latest_sbom:
description: 'Only for use with Release Event - used if uploaded sbom is not for latest version'
required: false
default: '{"name": "${{ github.repository }}", "description": "${{ github.event.release.tag_name }} - ${{ github.repository }}", "hash": "${{ github.sha }}", "version": "${{ github.event.release.tag_name }}", "author": "${{ github.actor }}", "supplier": "${{ github.repository_owner }}", "uuid": "${{ github.repository }}"}'
custom_asset_attrs:
description: 'Only for use with Release Event - Additional Asset Attributes'
required: false
default: '{}'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- -e
- -i
- --assetID ${{ inputs.asset_id }}
- --command ${{ inputs.command }}
- --requiredAttributes ${{ inputs.attrs }}
- --customEvent ${{ inputs.custom_attrs }}
- --latestSBOM ${{ inputs.latest_sbom }}
- --customAsset ${{ inputs.custom_asset_attrs }}
- ${{ inputs.attachments }}