Skip to content

fix: #642: don't use go-cmp for outputting diff #1165

fix: #642: don't use go-cmp for outputting diff

fix: #642: don't use go-cmp for outputting diff #1165

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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
path: __THIS_REPO__
- name: setup-go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: "__THIS_REPO__/go.mod"
- 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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
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