Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gha-secret-fixer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gha-secret-fixer

GitHub Advanced Security autofix CLI tool for code scanning alerts

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

GitHub Advanced Security Auto-Fixer 🔧

A powerful CLI tool that automatically fixes code scanning alerts in your GitHub repositories using GitHub Advanced Security's autofix feature.

Features ✨

  • 🔍 Automatically fetches code scanning alerts from GitHub repositories
  • 🤖 Uses GitHub's built-in autofix capabilities to generate fixes
  • 📋 Interactive prompts for selecting alerts to fix
  • 🌿 Creates a new branch with all the fixes applied
  • 🔄 Supports both single repositories and organization-wide scanning
  • 🛡️ Handles errors gracefully with detailed feedback

Installation 📦

npm install -g gha-secret-fixer

Usage 🚀

Prerequisites

  • You need a GitHub Personal Access Token with the following scopes:

    • repo (for repository access)
    • security_events (for reading code scanning alerts)
  • Set your token as an environment variable:

    export GITHUB_TOKEN=your_token_here
    

Running the Tool

gha-secret-fixer

The tool will guide you through:

  • 🏢 Selecting a repository (or provide via command line arguments)
  • 📋 Reviewing available code scanning alerts
  • ✅ Choosing which alerts to fix
  • 🌿 Creating a new branch with the fixes
  • 🚀 Committing the autofix changes

Command Line Arguments

# Specify repository directly
gha-secret-fixer <owner/repo>

# Example
gha-secret-fixer microsoft/vscode

Development 🔨

Build

npm run build

Test

npm test

Run Locally

npm start

Development with Watch Mode

npm run dev

Lint

npm run lint

Requirements 📋

  • Node.js 18+
  • GitHub Personal Access Token with appropriate scopes
  • Repository with GitHub Advanced Security enabled

License 📄

MIT License - see the LICENSE file for details.

Contributing 🤝

Contributions are welcome! Please feel free to submit a Pull Request.

Author 👨‍💻

Created by Austen Stone

Keywords

github

FAQs

Package last updated on 03 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts