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

Theme preview workflow: use external github action #232

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

vcanales
Copy link
Member

This proposes using an external copy of the preview themes workflow, which will allow us to run it on pull_request_target safely, since the code for the workflow itself lives outside of the repo — this means that the workflow will be able to comment on PRs created by non-members of the WordPress GitHub org.

The code is currently under my GitHub account, but I'll be moving to change ownership to the WordPress org eventually.

@vcanales vcanales added the enhancement New feature or request label Aug 16, 2024
@vcanales vcanales requested a review from MaggieCabrera August 16, 2024 05:24
@MaggieCabrera
Copy link
Collaborator

@mikachan did we implement this on the a8c themes? I can't remember if it had security issues

@mikachan
Copy link
Member

Yes, I think using the external copy worked around the security issues and we were able to use pull_request_target: Automattic/themes#8011.

@MaggieCabrera
Copy link
Collaborator

Awesome, I'll review this asap then. And it would be great to bring the theme check action too to this repo

@vcanales
Copy link
Member Author

Keep in mind that the action has been moved to https://github.com/WordPress/action-wp-playground-pr-preview

@mikachan
Copy link
Member

Thanks @vcanales! I went ahead and updated the action ref: 892208b.

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

Successfully merging this pull request may close these issues.

3 participants