Skip to content

fix: harden GitHub Actions workflows#1

Open
fzipi wants to merge 1 commit intomainfrom
fix/harden-gha-workflows
Open

fix: harden GitHub Actions workflows#1
fzipi wants to merge 1 commit intomainfrom
fix/harden-gha-workflows

Conversation

@fzipi
Copy link
Member

@fzipi fzipi commented Mar 16, 2026

what

  • pin all GitHub Actions to full-length commit SHAs instead of mutable tags
  • add top-level permissions blocks to all workflows

why

  • unpinned actions using tag references (e.g. @v4) are vulnerable to tag mutation attacks where a compromised or malicious upstream can replace the tag to point to different code
  • workflows without explicit permissions inherit the default token permissions, which may be overly broad and violate the principle of least privilege

refs

- pin all third-party actions to commit SHAs instead of mutable tags
- add explicit minimal permissions blocks to all workflows
@fzipi fzipi force-pushed the fix/harden-gha-workflows branch from 7fc3d3c to e6d3bcb Compare March 16, 2026 16:06
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.

1 participant