Skip to content

chore(deps): update github-actions #1525

chore(deps): update github-actions

chore(deps): update github-actions #1525

Workflow file for this run

name: Pre submits e2e
on:
pull_request:
branches: ["main"]
workflow_dispatch:
permissions: read-all
jobs:
pre-submit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
path: __THIS_REPO__
- name: setup-go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: "__THIS_REPO__/go.mod"
# not needed but gets rid of warnings
cache: false
- name: Build verifier at HEAD
working-directory: __THIS_REPO__
run: |
set -euo pipefail
go build -o slsa-verifier ./cli/slsa-verifier
- name: Checkout e2e verification script
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
path: __EXAMPLE_PACKAGE__
repository: slsa-framework/example-package
- name: Run verification script with testdata and slsa-verifier HEAD
env:
SLSA_VERIFIER_TESTING: "true"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Necessary to use the gh CLI.
run: ./__THIS_REPO__/.github/workflows/scripts/e2e-cli.sh