Skip to content

Conversation

@tacaswell
Copy link
Contributor

@tacaswell tacaswell commented Jul 9, 2025

Apply recommended hardening steps including:

  • pinning to a SHA any actions used
  • not persisting the read token on checkout
  • setting the default permissions to read-only

tacaswell added 3 commits July 8, 2025 19:09
This adjusts the defaults per suggestions of zizmor to
reduce possible risks from giving GHA tasks more permissions
that required.
This eliminates the possibility of a tag being changed under
us.
Reduces risk of arbitrary code is run by attacker.
@tacaswell tacaswell changed the title "CI: Harden GHA configuration" CI: Harden GHA configuration Jul 9, 2025
@dmgav dmgav merged commit c49d435 into NSLS2:master Jul 9, 2025
3 of 10 checks passed
@tacaswell tacaswell deleted the harden_gha branch July 9, 2025 19:56
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