-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathe2e.go.schedule.main.adversarial-invalidpath.yml
More file actions
54 lines (47 loc) · 1.73 KB
/
e2e.go.schedule.main.adversarial-invalidpath.yml
File metadata and controls
54 lines (47 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
on:
schedule:
- cron: "0 10 * * *"
workflow_dispatch:
permissions: read-all
concurrency: "e2e.go.schedule.main.adversarial-invalidpath"
env:
GH_TOKEN: ${{ secrets.E2E_GO_TOKEN }}
ISSUE_REPOSITORY: slsa-framework/slsa-github-generator
# ISSUE_REPOSITORY: laurentsimon/slsa-on-github-test
# WARNING: update build job if CONFIG_FILE changes.
CONFIG_FILE: ../invalid/path.yml
jobs:
build:
permissions:
id-token: write # For signing.
contents: write # For asset uploads.
actions: read # For the entrypoint.
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@main
with:
go-version: "1.24"
# We cannot use ${{ env.CONFIG_FILE }} because env variables are not available.
config-file: ../invalid/path.yml
compile-builder: true
# build:
# runs-on: ubuntu-latest
# steps:
# - run: |
# exit 1
if-succeeded:
runs-on: ubuntu-latest
needs: [build]
# NOTE: The workflow is allowed to run for other event types but don't post
# to issues unless it's a schedule event.
if: github.event_name == 'schedule' && needs.build.result == 'success'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: ./.github/workflows/scripts/e2e-report-failure.sh
if-failed:
runs-on: ubuntu-latest
needs: [build]
# NOTE: The workflow is allowed to run for other event types but don't post
# to issues unless it's a schedule event.
if: always() && github.event_name == 'schedule' && needs.build.result == 'failure'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: ./.github/workflows/scripts/e2e-report-success.sh