Commit ff2058e
authored
chore: Use pull_request_target for changelog preview (#5323)
## Summary
Updates the changelog-preview workflow to use `pull_request_target`
instead of `pull_request`.
## Why?
This change is required for the changelog preview to work correctly with
PRs from forks. With `pull_request`, the workflow runs with a read-only
`GITHUB_TOKEN` which cannot post comments or create statuses on fork
PRs.
This aligns with the recommended usage in the [craft changelog-preview
workflow](https://github.com/getsentry/craft/blob/master/.github/workflows/changelog-preview.yml).
## Security Note
This change is safe because the changelog-preview workflow:
- Downloads the Craft binary from releases (not from the PR)
- Only reads git metadata and configuration
- Does not execute any code from the PR1 parent 5277c60 commit ff2058e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments