Skip to content

fix: harden GitHub Actions workflows#191

Open
dagecko wants to merge 2 commits intoHack-with-Github:masterfrom
dagecko:runner-guard/fix-ci-security
Open

fix: harden GitHub Actions workflows#191
dagecko wants to merge 2 commits intoHack-with-Github:masterfrom
dagecko:runner-guard/fix-ci-security

Conversation

@dagecko
Copy link
Copy Markdown

@dagecko dagecko commented Mar 30, 2026

Re-submission of #190. Had a problem with my fork and had to delete it, which closed the original PR. Apologies for the noise.

Summary

This PR pins all GitHub Actions to immutable commit SHAs instead of mutable version tags and extracts any unsafe expressions from run blocks into env mappings.

How to verify

Review the diff, each change is mechanical and preserves workflow behavior:

  • SHA pinning: action@v3 becomes action@abc123 # v3, original version preserved as comment
  • No workflow logic, triggers, or permissions are modified

I've been researching CI/CD supply chain attack vectors and submitting fixes to affected repos. Based on that research I built a scanner called Runner Guard and open sourced it here so you can scan yourself if you want to. I'll be posting more advisories over the next few weeks on Twitter if you want to stay in the loop.

If you have any questions, reach out. I'll be monitoring comms.

- Chris (dagecko)

Copy link
Copy Markdown

@Technetium1 Technetium1 left a comment

Choose a reason for hiding this comment

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

Maybe bump to v6 too

Bump from v5 to v6 (Node.js 24, updated deps) per reviewer suggestion.
@dagecko
Copy link
Copy Markdown
Author

dagecko commented Apr 3, 2026

@Technetium1 good call — bumped to v6 and pinned to SHA. Only change in v6 is a Node.js 24 requirement and updated deps, no config changes needed.

- Chris

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