Skip to content

CI: Harden GHA configuration #8

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 3 commits into from
Jul 18, 2025

Conversation

tacaswell
Copy link
Member

Apply recommended hardening steps including:

  • pinning to a SHA any actions used
  • not persisting the read token on checkout
  • setting the default permissions
  • adding a depandabot file for GHA

May include:

- Avoids risky string interpolation.
- Prevents checkout premissions from leaking
Reduces risk of arbitrary code is run by attacker.
@isaacrobinson2000
Copy link
Member

@tacaswell Thanks for the GHA PR, all changes look good to me, I'll go ahead and merge.

@isaacrobinson2000 isaacrobinson2000 merged commit 7b0a9ca into matplotlib:main Jul 18, 2025
9 checks passed
@tacaswell tacaswell deleted the harden_gha branch July 18, 2025 19:30
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