Refactor SCAI generator APIs into pkg/ #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 | |
with: | |
go-version: 1.20.x | |
- name: Checkout updated scai-gen CLI tools | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- 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 |