Skip to content

Add SCAI reusable actions (KubeCon NA '23 Demo) #1

Add SCAI reusable actions (KubeCon NA '23 Demo)

Add SCAI reusable actions (KubeCon NA '23 Demo) #1

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@93397bea11091df50f3d7e59dc26a7711a8bcfbe
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
shell: bash
uses: ./.github/actions/scai-gen-sigstore

Check failure on line 39 in .github/workflows/test-sigstore-integration.yml

View workflow run for this annotation

GitHub Actions / Test Sigstore integration

Invalid workflow file

The workflow is not valid. .github/workflows/test-sigstore-integration.yml (Line: 39, Col: 9): Unexpected value 'uses' .github/workflows/test-sigstore-integration.yml (Line: 40, Col: 9): Unexpected value 'with'
with:
statement-file: examples/sbom+slsa/metadata/evidence-collection.scai.json
attestation-name: evidence-collection.scai.sig.json