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