-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
47 lines (44 loc) · 1.53 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
42
43
44
45
46
47
name: "sigstore-conformance"
author: "Alex Cameron <[email protected]>"
description: "Conformance testing for Sigstore clients"
inputs:
entrypoint:
description: "the command to invoke the Sigstore client"
required: true
default: ""
internal-be-careful-debug:
description: "run with debug logs (default false)"
required: false
default: "false"
skip-signing:
description: "skip tests that involve signing (default false)"
required: false
default: "false"
environment:
description: "'production' (default) or 'staging'"
required: false
default: "production"
xfail:
description: "one or more tests that are expected to fail, whitespace-separated"
required: false
default: ""
runs:
using: "composite"
steps:
- name: Set up sigstore-conformance
run: |
# NOTE: Sourced, not executed as a script.
source "${{ github.action_path }}/setup/setup.bash"
shell: bash
- name: Run sigstore-conformance
id: sigstore-conformance
run: |
${{ github.action_path }}/action.py
env:
GHA_SIGSTORE_CONFORMANCE_ENVIRONMENT: "${{ inputs.environment }}"
GHA_SIGSTORE_CONFORMANCE_ENTRYPOINT: "${{ inputs.entrypoint }}"
GHA_SIGSTORE_CONFORMANCE_INTERNAL_BE_CAREFUL_DEBUG: "${{ inputs.internal-be-careful-debug }}"
GHA_SIGSTORE_CONFORMANCE_SKIP_SIGNING: "${{ inputs.skip-signing }}"
GHA_SIGSTORE_CONFORMANCE_XFAIL: "${{ inputs.xfail }}"
GHA_SIGSTORE_GITHUB_TOKEN: "${{ github.token }}"
shell: bash