mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-14 12:36:40 +00:00
Fixing the existing PR
https://github.com/slsa-framework/slsa-verifier/pull/498 to also change
the github actions to use the go 1.21 sourced directly from `go.mod`.
-
07e64b653f/.github/workflows/builder_go_slsa3.yml (L56)
-
https://github.com/actions/setup-go?tab=readme-ov-file#getting-go-version-from-the-gomod-file
-
https://github.com/slsa-framework/slsa-verifier/actions/runs/7559933600/job/20584856777?pr=498
> ...
Error: We were unable to automatically build your code. Please replace
the call to the autobuild action with your custom build steps.
Encountered a fatal error while running
"/opt/hostedtoolcache/CodeQL/2.15.5/x64/codeql/go/tools/autobuild.sh".
Exit code was 1 and error was: 2024/01/17 18:06:58 Autobuilder was built
with go1.21.5, environment has go1.20.12
...
Also fixing some more lint checks about repeated strings
---------
Signed-off-by: Mend Renovate <bot@renovateapp.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Co-authored-by: Mend Renovate <bot@renovateapp.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
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@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
|
|
with:
|
|
path: __THIS_REPO__
|
|
|
|
- name: setup-go
|
|
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
|
|
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@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
|