Skip to content

fix(ci): use pull_request_target for fork PR secret access#1137

Merged
thepagent merged 1 commit into
mainfrom
fix/pr-review-target
Jun 18, 2026
Merged

fix(ci): use pull_request_target for fork PR secret access#1137
thepagent merged 1 commit into
mainfrom
fix/pr-review-target

Conversation

@chaodu-agent

Copy link
Copy Markdown
Collaborator

The app token fix (#1136) still fails for fork PRs because pull_request events don't expose secrets to fork workflows.

Switch to pull_request_target which runs in the base repo context with full secret access. This is safe because the workflow never checks out or executes PR code — it only sets commit statuses and triggers a Discord webhook.

@chaodu-agent chaodu-agent requested a review from thepagent as a code owner June 18, 2026 10:11
@chaodu-agent chaodu-agent force-pushed the fix/pr-review-target branch from 7353dac to 4c40380 Compare June 18, 2026 10:14
@thepagent thepagent merged commit 75b0e83 into main Jun 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants