-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (36 loc) · 1.17 KB
/
test-sigstore-integration.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
name: Test Sigstore integration
on:
# Want to trigger these tests whenever the Sigstore command
# is modified and PR is closed and merged.
# Reason: OIDC token access constraints in PRs
pull_request:
paths:
- "scai-gen/cmd/sigstore.go"
types:
- closed
jobs:
sigstore:
if: github.event.pull_request.merged == true
runs-on: ubuntu-22.04
permissions:
id-token: write # Needed for signing
steps:
- name: Install Go
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a
with:
go-version: 1.20.x
- name: Checkout updated scai-gen CLI tools
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Env
run: |
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Install scai-gen CLI tools
shell: bash
run: |
go install ./scai-gen
- name: Sign and upload SCAI report (Sigstore)
id: sign-report
uses: ./.github/actions/scai-gen-sigstore
with:
statement-name: examples/sbom+slsa/metadata/evidence-collection.scai.json
attestation-name: evidence-collection.scai.sig.json