-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add: PR Preview #1496
base: master
Are you sure you want to change the base?
Add: PR Preview #1496
Conversation
Looks like we cant't run safely from forks. |
So it wouldn't work with PR made from forks? Or it just wouldn't work in the fork repositories? The first is a problem, the second is not. |
Seems we can grant "write" permissions to the action, so any PR made will have preview, The egui aproach created another organization just to handle previews, so they dont have the issue on their main repo/org permissions. |
The approach we took in our docs previews may be viable here. Basically:
I'm not sure whether Cockpit's size would be a problem, or whether we'd want restrictions on the size of what can be uploaded (perhaps as a rejection option on the hosting side). There would still be concerns that someone could use our process to store and host bad images / malicious files embedded within the previews (and the artifacts1), but that's impossible to avoid without requiring an initial PR review prior to allowing building (including for every edit during the review period), which can be quite inconvenient for the iteration process - tradeoffs, as usual. Footnotes
|
Sets up a cockpit preview available directly on PR,
works with main deployment branch and automatically clean previews once they are merged/closed.
Details: https://github.com/rossjrw/pr-preview-action