-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjust CI to work with forks #25
Comments
@jramcast - is this even possible? or can we close this? |
I assume it's possible and would allow us to accept PRs from forks. Right now all the PRs open from forks make the pipeline fail. |
We need to make sure this is possible, there should be no reason why it isn't. Developing in a fork and creating PRs is way more normal than being able to do this in the original repo. Plus, it removes the need for us to manage any access to these repositories now or in the future. |
@rsriniva In the pipeline definition we use the rossjrw/pr-preview-action@v1 GitHub action. As the author explains in their repo:
So we might want to take a deeper look of a workaround or maybe just switch to a different GH action that supports forks. |
@stencell - this does not prevent folks from submitting PRs in our repo. It;s just the HTML preview that fails. Looking at the linked PR from upstream for a patch - the GH actions author is concerned about severe security risks (I agree with his assessment) and he will not merge this into the main plugin. @jramcast - can we do this instead - is there a way for GH action to check if PR is created in our repo and only then run the HTML preview? If we get a PR from a fork, then we simply disable HTML preview builds and just send notifications. Once we merge, then the HTML re-gen runs anyway correct? |
@rsriniva Definitely. That sounds like an easy fix https://github.com/orgs/community/discussions/25217 |
fixed in main. thanks for the tip @jramcast |
The GitHub actions pipeline fails when a PR is created from a fork. We should fix that.
The text was updated successfully, but these errors were encountered: