Skip to content

indoor47/vscode-workflow-hardener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Workflow Hardener

Security scanner for GitHub Actions workflows. Catches supply chain attacks, script injection, and privilege escalation inline as you edit.

What it catches

Check Severity Example
Unpinned actions Critical uses: actions/checkout@v4 → should be SHA
Script injection Critical run: echo ${{ github.event.issue.title }}
Pwn request Critical pull_request_target + PR head checkout
Workflow_run injection Critical Artifact download without branch guard
Broad permissions High permissions: write-all
Missing permissions High No top-level permissions block

Usage

Opens automatically for any file in .github/workflows/. Issues appear in the Problems panel with inline squiggles.

Commands (Ctrl+Shift+P):

  • Workflow Hardener: Scan Current File
  • Workflow Hardener: Scan All Workflows in Workspace

Quick fixes

Click the lightbulb on any flagged line to:

  • View the recommended fix
  • Suppress the check inline with # hardener:ignore:<check>

Settings

{
  "workflowHardener.enabled": true,
  "workflowHardener.severityFilter": "all"
}

severityFilter options: all, critical, high, medium, low

CLI companion

Pairs with the gh-workflow-hardener CLI for use in CI pipelines.