fix: enable supply-chain-pr workflow for direct push and pr events
Updated the job-level if condition in the Supply Chain Verification (PR) workflow to explicitly allow execution on push and pull_request events. Previously, the condition only permitted workflow_dispatch or workflow_run events, causing the workflow to skip despite being triggered by pushes or PRs. This change ensures the verification runs immediately when code is pushed or a PR is opened, as intended by the workflow's trigger configuration.
This commit is contained in:
@@ -35,10 +35,13 @@ jobs:
|
||||
name: Verify Supply Chain
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
# Run for: manual dispatch, PR builds, or any push builds from docker-build
|
||||
# Run for: manual dispatch, direct push/PR, or successful workflow_run triggered by push/PR
|
||||
if: >
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
((github.event.workflow_run.event == 'pull_request' || github.event.workflow_run.event == 'push') &&
|
||||
github.event_name == 'push' ||
|
||||
github.event_name == 'pull_request' ||
|
||||
(github.event_name == 'workflow_run' &&
|
||||
(github.event.workflow_run.event == 'pull_request' || github.event.workflow_run.event == 'push') &&
|
||||
github.event.workflow_run.conclusion == 'success')
|
||||
|
||||
steps:
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Script to install go 1.25.7 to /usr/local/go
|
||||
# Usage: sudo ./scripts/install-go-1.25.6.sh
|
||||
# Usage: sudo ./scripts/install-go-1.25.7.sh
|
||||
|
||||
GO_VERSION="1.25.6"
|
||||
GO_VERSION="1.25.7"
|
||||
ARCH="linux-amd64"
|
||||
TARFILE="go${GO_VERSION}.${ARCH}.tar.gz"
|
||||
TMPFILE="/tmp/${TARFILE}"
|
||||
Reference in New Issue
Block a user