Skip to content

ci: enhance CI workflow to support commenting on forked PRs#152

Open
rzzf wants to merge 2 commits into
preactjs:masterfrom
rzzf:fix/2
Open

ci: enhance CI workflow to support commenting on forked PRs#152
rzzf wants to merge 2 commits into
preactjs:masterfrom
rzzf:fix/2

Conversation

@rzzf

@rzzf rzzf commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

close #2

This adds an officially documented workflow for publishing compressed-size comments on pull requests opened from forks.

The downstream workflow uses workflow_run to comment with base repository permissions, while the untrusted fork code is built only in the original pull_request workflow.

This follows GitHub's recommended pattern for securely handling pull requests from forks.

Note: workflow_run only runs after the merge into the default branch, so this PR will not trigger comments.

See test: rzzf#3

Follow-up #148, #150

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.

Fails to report stats for PRs from a fork

1 participant