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

Set minimal permissions for GitHub workflows #938

Merged
merged 2 commits into from
Dec 23, 2023

Conversation

pnacht
Copy link
Contributor

@pnacht pnacht commented Nov 17, 2023

Fixes #937.

This PR sets read-only top-level permissions on all SentencePiece workflows. The jobs that add artifacts to releases (in cmake.yml and wheel.yml) are granted additional permissions at the job level for future-proofing in case new jobs are ever added to the workflow.

Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
@pnacht
Copy link
Contributor Author

pnacht commented Nov 28, 2023

It's not quite on-topic for this PR, but I've bumped cibuildwheel to the latest version (2.16.2) to fix the failing wheels.yml for MacOS.

I noticed the dependabot PR #936 is also failing that test for the same reason. If this PR is merged, I suggest commenting "@dependabot rebase" on that PR to fix the failing test there as well.

@taku910 taku910 merged commit b937146 into google:master Dec 23, 2023
24 checks passed
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.

Ensure workflows run with minimal permissions
2 participants