From 03014ea18b64bb34fc701d621088d61c7915e933 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Mon, 9 Nov 2026 17:24:47 +0500 Subject: [PATCH] fix: read GitHub event payload from runner environment --- .github/workflows/guard-trusted-pr-attestation.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/guard-trusted-pr-attestation.yml b/.github/workflows/guard-trusted-pr-attestation.yml index 7bc32fa57..4c1ad4f24 100644 --- a/.github/workflows/guard-trusted-pr-attestation.yml +++ b/.github/workflows/guard-trusted-pr-attestation.yml @@ -19,12 +19,10 @@ jobs: steps: - name: Read the associated pull request context id: pr - env: - EVENT_PATH: ${{ github.event_path }} run: | node --input-type=module <<'NODE' import { appendFileSync, readFileSync } from 'node:fs'; - const event = JSON.parse(readFileSync(process.env.EVENT_PATH, 'utf8')); + const event = JSON.parse(readFileSync(process.env.GITHUB_EVENT_PATH, 'utf8')); const pullRequest = event.pull_request; const isRepository = (value) => typeof value === 'string' && /^[^/\s]+\/[^/\s]+$/.test(value); const number = pullRequest?.number;