Files
slsa-verifier/.github/workflows/release.yml
2022-08-23 09:03:56 -05:00

44 lines
1.2 KiB
YAML

name: Verifier releaser
on:
# For manual tests.
workflow_dispatch:
push:
tags:
- "*" # triggers only if push new tag version, like `0.8.4`.
# Run daily as a dry-run/test.
schedule:
- cron: '0 1 * * *'
permissions: read-all
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_REPOSITORY: slsa-framework/slsa-verifier
jobs:
builder:
permissions:
actions: read # For the detection of GitHub Actions environment.
id-token: write # For signing.
contents: write # For asset uploads.
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v1.2.0
with:
go-version: 1.18
config-file: .github/config-release.yml
compile-builder: true
# In case this fails, e.g. build configuration changes, file an issue in slsa-verifier
if-failed:
runs-on: ubuntu-latest
needs: [builder]
if: always() && needs.builder.result == 'failure'
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
with:
repository: slsa-framework/example-package
- run: |
set -euo pipefail
./.github/workflows/scripts/e2e-report-failure.sh