Skip to content

CI: try running the precommit hooks on GHA #30045

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

Merged
merged 1 commit into from
May 16, 2025

Conversation

tacaswell
Copy link
Member

I think it is a security risk that we have given precommit.ci a token with write access to the main repo.

If this works as expected we will get all the upsides of the current setup (see a report of precommit in CI) with none of the downsides (un-trusted entity has write permissions).

@tacaswell tacaswell added this to the v3.11.0 milestone May 12, 2025
@tacaswell tacaswell marked this pull request as ready for review May 16, 2025 01:03
@tacaswell
Copy link
Member Author

After we merge this I'll revoke the permission of the precommit app.

Copy link
Member

@oscargus oscargus left a comment

Choose a reason for hiding this comment

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

Seems to work well!

(A bit slower since everything has to be installed, but clearly not an issue in practice.)

@timhoffm timhoffm merged commit 759765c into matplotlib:main May 16, 2025
37 checks passed
@tacaswell tacaswell deleted the ci/drop_precommit.ci branch May 16, 2025 16:52
@tacaswell
Copy link
Member Author

I have suspended the app, lets see what breaks.

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.

3 participants