Skip to content
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

Closed
jramcast opened this issue Dec 5, 2023 · 8 comments
Closed

Adjust CI to work with forks #25

jramcast opened this issue Dec 5, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jramcast
Copy link
Collaborator

jramcast commented Dec 5, 2023

The GitHub actions pipeline fails when a PR is created from a fork. We should fix that.

@rsriniva
Copy link
Contributor

@jramcast - is this even possible? or can we close this?

@jramcast
Copy link
Collaborator Author

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.

@stencell
Copy link
Collaborator

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 rsriniva added enhancement New feature or request help wanted Extra attention is needed labels Jan 31, 2024
@rsriniva
Copy link
Contributor

rsriniva commented Jan 31, 2024

@jramcast - any ideas on how to fix this? is it even possible to implement this in GitHub actions?

tagging @psolarvi for ideas

@rsriniva rsriniva self-assigned this Jan 31, 2024
@jramcast
Copy link
Collaborator Author

@rsriniva In the pipeline definition we use the rossjrw/pr-preview-action@v1 GitHub action. As the author explains in their repo:

This Action does not currently support deploying previews for PRs from forks, but will do so in rossjrw/pr-preview-action#6.

So we might want to take a deeper look of a workaround or maybe just switch to a different GH action that supports forks.

@rsriniva
Copy link
Contributor

@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?

@jramcast
Copy link
Collaborator Author

@rsriniva Definitely. That sounds like an easy fix https://github.com/orgs/community/discussions/25217

@rsriniva
Copy link
Contributor

fixed in main. thanks for the tip @jramcast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants