mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-14 20:46:48 +00:00
* chore(deps): update github-actions Signed-off-by: Renovate Bot <bot@renovateapp.com> * Use tag for actions/upload-artifact Signed-off-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: asraa <asraa@google.com>
37 lines
1016 B
YAML
37 lines
1016 B
YAML
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@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
|
with:
|
|
path: __THIS_REPO__
|
|
|
|
- name: setup-go
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
|
with:
|
|
go-version: "1.18"
|
|
|
|
- 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@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
|
with:
|
|
path: __EXAMPLE_PACKAGE__
|
|
repository: slsa-framework/example-package
|
|
|
|
- name: Run verification script with testdata and slsa-verifier HEAD
|
|
run: ./__THIS_REPO__/.github/workflows/scripts/e2e-cli.sh
|