Add gh-workflow-hardener to Supply Chain Security#92
Open
indoor47 wants to merge 1 commit intoJakobTheDev:mainfrom
Open
Add gh-workflow-hardener to Supply Chain Security#92indoor47 wants to merge 1 commit intoJakobTheDev:mainfrom
indoor47 wants to merge 1 commit intoJakobTheDev:mainfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is this?
gh-workflow-hardener is a CLI and GitHub Action that scans workflow files for supply chain security issues:
uses: action@v1references to immutable SHA commit hashes — prevents attacks like the March 2025 tj-actions compromise (23k repos affected)permissions: write-alland missing least-privilege declarationsrun:blocks wheregithub.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.