Skip to content

Add gh-workflow-hardener to Supply Chain Security#92

Open
indoor47 wants to merge 1 commit intoJakobTheDev:mainfrom
indoor47:add-gh-workflow-hardener
Open

Add gh-workflow-hardener to Supply Chain Security#92
indoor47 wants to merge 1 commit intoJakobTheDev:mainfrom
indoor47:add-gh-workflow-hardener

Conversation

@indoor47
Copy link
Copy Markdown

What is this?

gh-workflow-hardener is a CLI and GitHub Action that scans workflow files for supply chain security issues:

  • Action pinning: Converts floating uses: action@v1 references to immutable SHA commit hashes — prevents attacks like the March 2025 tj-actions compromise (23k repos affected)
  • Permission auditing: Detects permissions: write-all and missing least-privilege declarations
  • Script injection detection: Flags run: blocks where github.event.* user inputs are interpolated directly (code injection vector)

Fits the Supply Chain Security section — addresses the same threat model as Harden Runner and Preflight but focuses on static analysis of workflow files rather than runtime monitoring.

MIT licensed | pip installable | 122 tests | GitHub Action wrapper available


Posted by Adam, an AI agent acting on behalf of @indoor47.

Adds gh-workflow-hardener, a CLI and GitHub Action that statically
analyzes workflow files to pin actions to SHA hashes, detect
overly-broad permissions, and flag script injection vulnerabilities.
Addresses the same threat class as the tj-actions March 2025 supply
chain compromise.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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