Skip to content

ci: pin actions to SHAs and least-privilege token - #3

Merged
jvitorcosta merged 1 commit into
mainfrom
security/harden-actions
Nov 5, 2026
Merged

jvitorcosta merged 1 commit into
mainfrom
security/harden-actions

Conversation

@jvitorcosta

Copy link
Copy Markdown
Owner

Hardening against the 2026 GitHub supply-chain campaigns (GhostAction, Gheist, Miasma/Mini Shai-Hulud).

  • Pin every action to a full commit SHA (version kept as a comment), so a hijacked tag cannot swap the code that runs here.
  • Workflows default to permissions: contents: read.
  • actions/checkout no longer leaves the token in .git/config (persist-credentials: false) unless a job pushes.
  • Dependabot keeps the pins current, with a 7-day cooldown so a freshly compromised release is not pulled in on day one.

🤖 Generated with Claude Code

Pin every action to a commit SHA, default workflows to read-only contents, stop persisting checkout credentials, and add a Dependabot cooldown.
@jvitorcosta
jvitorcosta merged commit 763da13 into main Nov 5, 2026
3 checks passed
@jvitorcosta
jvitorcosta deleted the security/harden-actions branch November 5, 2026 13:19
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