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

Fix for zizmor permission warnings #2338

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

githubnemo
Copy link
Collaborator

Zizmor now supports auditing token permissions for each workflow run and reports that we almost never remove the default permissions (which seem relatively permissive). As a precaution it does not hurt to revoke all token permissions by default and see what breaks on the way.

Because it is not clear what the final solution will look like this is a draft PR until more is known.

Zizmor now supports auditing token permissions for each workflow run and
reports that we almost never remove the default permissions (which seem
relatively permissive). As a precaution it does not hurt to revoke all
token permissions by default and see what breaks on the way.
Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Regarding the zizmor ignore instructions, is it possible to add them in-line to prevent having to adjust the line number each time?

@githubnemo githubnemo marked this pull request as ready for review January 22, 2025 15:20
@githubnemo githubnemo merged commit 93d8046 into huggingface:main Jan 22, 2025
15 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.

2 participants