forked from slsa-framework/github-actions-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
33 lines (33 loc) · 987 Bytes
/
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
name: 'SLSA Build Provenance Action (Demo)'
description: 'A POC Demo Action to generate SLSA build provenance for an artifact'
branding:
icon: lock
color: purple
inputs:
artifact_path:
description: 'path to artifact or directory of artifacts'
required: true
output_path:
description: 'path to write build provenance file'
required: true
default: 'build.provenance'
github_context:
description: 'internal (do not set): the "github" context object in json'
required: true
default: ${{ toJSON(github) }}
runner_context:
description: 'internal (do not set): the "runner" context object in json'
required: true
default: ${{ toJSON(runner) }}
runs:
using: 'docker'
image: 'Dockerfile'
args:
- "--artifact_path"
- '${{ inputs.artifact_path }}'
- "--output_path"
- '${{ inputs.output_path }}'
- "--github_context"
- '${{ inputs.github_context }}'
- "--runner_context"
- '${{ inputs.runner_context }}'