Skip to content

workflows/pr-severity: use pull_request_target for fork PRs#10527

Merged
Roasbeef merged 1 commit intolightningnetwork:masterfrom
Roasbeef:fix-pr-severity-fork-prs
Jan 28, 2026
Merged

workflows/pr-severity: use pull_request_target for fork PRs#10527
Roasbeef merged 1 commit intolightningnetwork:masterfrom
Roasbeef:fix-pr-severity-fork-prs

Conversation

@Roasbeef
Copy link
Member

Switch from pull_request to pull_request_target to allow the workflow to run on PRs from forks. The pull_request trigger runs in the fork's context which cannot access repository secrets.

This is safe because the workflow only reads PR metadata via the GitHub API (changed files, labels) and doesn't checkout or execute any code from the PR itself.

We'll now this works if after the merge, we can add the reclassify label and it'll run the bot.

Switch from pull_request to pull_request_target to allow the workflow
to run on PRs from forks. The pull_request trigger runs in the fork's
context which cannot access repository secrets.

This is safe because the workflow only reads PR metadata via the GitHub
API (changed files, labels) and doesn't checkout or execute any code
from the PR itself.
@Roasbeef Roasbeef added the golang/build system Related to the go language and compiler label Jan 28, 2026
@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@Roasbeef Roasbeef merged commit 19b2ad7 into lightningnetwork:master Jan 28, 2026
36 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

golang/build system Related to the go language and compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant