Skip to content

Commit b9c5b2c

Browse files
gantoclaude
andcommitted
github-workflow: Use pull_request_target for e2e pending status
Switch from pull_request to pull_request_target so the GITHUB_TOKEN has write access to commit statuses even for fork PRs. The job only posts a status and never checks out PR code, so this is safe. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9102eef commit b9c5b2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: E2E Tests
33

44
on:
55
workflow_dispatch:
6-
pull_request:
6+
pull_request_target:
77

88
permissions:
99
contents: read
@@ -12,7 +12,7 @@ permissions:
1212
jobs:
1313

1414
set-pending:
15-
if: github.event_name == 'pull_request'
15+
if: github.event_name == 'pull_request_target'
1616
runs-on: ubuntu-latest
1717
name: Set pending e2e status
1818
steps:

0 commit comments

Comments
 (0)