AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 12 Bitcoin

workflows/pr-severity: use pull_request_target for fork PRs

Public commit record

What the developer wrote

Authored by Olaoluwa Osuntokun

85/100 · Strong
workflows/pr-severity: use pull_request_target for fork PRs

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.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
The short version

What changed, and why it matters

This commit changes a GitHub Actions workflow so it can run on pull requests submitted from outside forks. The change is intentional and the commit message explains why it is considered safe: the workflow only reads information about the pull request (like labels and changed files) and never downloads or runs code from the contributor's fork. There is no vulnerability in the diff itself.

Recommended action

No action required for this commit. As a general hardening measure, maintainers should periodically audit the pr-severity workflow to confirm it does not later add steps that check out or execute code from the PR, and ensure the `permissions:` block remains minimal.

Security signals we found

01

Workflow trigger changed to pull_request_target, which is a known high-risk event when combined with checkout/run of PR code

02

Commit message explicitly addresses the safety rationale and limits operations to PR metadata reads

Risk score

Why this scored 12/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 8/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.