Skip to content

Make it clear that this is not suitable for forked PRs#140

Merged
rschristian merged 2 commits intopreactjs:masterfrom
eoghanmurray:patch-1
Mar 24, 2026
Merged

Make it clear that this is not suitable for forked PRs#140
rschristian merged 2 commits intopreactjs:masterfrom
eoghanmurray:patch-1

Conversation

@eoghanmurray
Copy link
Copy Markdown
Contributor

The README does not mention that the action doesn't work for fork PRs. Another developer added this to our repo and I later 'fixed' the fact that the comments weren't showing up by elevating the permissions, not knowing that there were security implications. The 2-step workaround in #54 should really be the primary installation method with a 'by the way if you know what you are doing, you can do it in one step' note at the bottom of the readme ... I can attempt that write up but I'd need to delve into this action more, and I think maybe there are others who know how to do this better

The README does not mention that the action doesn't work for fork PRs.  Another developer added this to our repo and I later 'fixed' the fact that the comments weren't showing up by elevating the permissions, not knowing that there were security implications.  The 2-step workaround in preactjs#54 should really be the primary installation method with a 'by the way if you know what you are doing, you can do it in one step' note at the bottom of the readme ... I can attempt that write up but I'd need to delve into this action more, and I think maybe there are others who know how to do this better
@rschristian
Copy link
Copy Markdown
Member

The 2-step workaround in #54 should really be the primary installation method

The 2-step method is extremely fragile and has a massive surface area for issues. I've built methods of doing that and let me just say that it's been a constant source of headaches even when we own the config; having two separate actions you drop into two separate workflows that you can't easily debug sounds like a nightmare, personally. I don't think that's a good idea, even if the current setup has limitations.

Comment thread README.md Outdated
Comment thread README.md Outdated
eoghanmurray added a commit to eoghanmurray/compressed-size-action that referenced this pull request Mar 17, 2026
@eoghanmurray
Copy link
Copy Markdown
Contributor Author

The 2-step method is extremely fragile and has a massive surface area for issues. I've built methods of doing that and let me just say that it's been a constant source of headaches even when we own the config; having two separate actions you drop into two separate workflows that you can't easily debug sounds like a nightmare, personally. I don't think that's a good idea, even if the current setup has limitations.

We're currently attempting to do that here:
rrweb-io/rrweb#1804

@rschristian
Copy link
Copy Markdown
Member

rschristian commented Mar 17, 2026

We're currently attempting to do that here:

Good luck, it hasn't been fun (IME -- hopefully your experience differs).

If it can be of any use, Preact has an example of doing this here:

pr-reporter.yaml, runs on workflow_run events

This bit took a long time to figure out:

https://github.com/preactjs/preact/blob/21dd6d04c1a9a43e5b60976bb5eb7d856253195b/.github/workflows/pr-reporter.yml#L23-L44

Copy link
Copy Markdown
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully this will suffice, apologies for the delay. Super busy these days unfortunately

@rschristian rschristian merged commit 998e2ac into preactjs:master Mar 24, 2026
1 check passed
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