-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathaction.yml
61 lines (57 loc) · 2.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: "sigstore-conformance"
author: "Alex Cameron <alex.cameron@trailofbits.com>"
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"
skip-cpython-release-tests:
description: "skip all CPython Sigstore bundle tests"
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: Check out latest CPython release metadata
uses: actions/checkout@v4
with:
repository: woodruffw/cpython-release-tracker
persist-credentials: false
path: cpython-release-tracker
ref: 124a4005d3822cc21f16396e81bf08af3e858561
- name: Set up sigstore-conformance
run: |
echo "::group::Install sigstore-conformance requirements"
# NOTE: Sourced, not executed as a script.
source "${{ github.action_path }}/setup/setup.bash"
echo "::endgroup::"
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_SKIP_CPYTHON_RELEASE_TESTS: "${{ inputs.skip-cpython-release-tests }}"
GHA_SIGSTORE_CONFORMANCE_XFAIL: "${{ inputs.xfail }}"
shell: bash