Skip to content

Conversation

@nihalgonsalves
Copy link
Member

@nihalgonsalves nihalgonsalves commented Jan 15, 2026

Motivation / Description / Changes introduced

Both forks and dependabot don't create preview URLs.

CleanShot 2026-01-15 at 15 13 01@2x

Add explicit permissions plus use pull_request_target to allow writing from forks.

pull_request_target runs in the context of the base branch, so can be unsafe if you check out code from the fork, therefore running untrusted code with secrets/other access available to GitHub Actions.

Since we're only adding an annotation, this is safe.

Links to discussion, or Linear ticket (if applicable)

Additional comments

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nihalgonsalves nihalgonsalves force-pushed the ng/01-15-ci_fix_preview_urls_on_dependabot_forks branch from 1135775 to 98ffd34 Compare January 15, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants