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

ci: Update comments for the settings workflow #1476

Merged

Conversation

joeyparrish
Copy link
Member

Since the introduction of vars to GitHub Actions, I started using that instead of the "environments" trick I used in Packager. However, it has become clear now that the vars strategy has major drawbacks, such as requiring the use of pull_request_target, which should only be used for actions that do not execute PR-author-controlled code.

This updates the comments to clarify why this is used. This reusable settings workflow will also be deployed now in other repos to standardize on this "environments" mechanism, which is safer than vars.

Since the introduction of `vars` to GitHub Actions, I started using that instead of the "environments" trick I used in Packager.  However, it has become clear now that the `vars` strategy has major drawbacks, such as requiring the use of `pull_request_target`, which should only be used for actions that do not execute PR-author-controlled code.

This updates the comments to clarify why this is used.  This reusable settings workflow will also be deployed now in other repos to standardize on this "environments" mechanism, which is safer than `vars`.
@joeyparrish joeyparrish requested review from theodab and a team January 17, 2025 20:55
@joeyparrish joeyparrish merged commit 89d59a3 into shaka-project:main Jan 17, 2025
37 checks passed
@joeyparrish joeyparrish deleted the update-settings-comments branch January 17, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants