npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@agentlaunchopsai/gha-guard

v0.1.7

Published

Scan GitHub Actions workflows for risky defaults and supply-chain footguns.

Readme

GHA Guard

GHA Guard is a small CLI and VS Code extension that scans GitHub Actions workflow files for risky defaults and supply-chain footguns before they reach CI.

The free core runs locally and does not send workflow contents to any service.

Use it as a quick GitHub Actions security audit before enabling new workflows, reviewing outside contributions, or adding release and publish automation. It is designed to catch high-signal CI/CD supply-chain issues early: unpinned actions, dangerous pull_request_target patterns, broad workflow permissions, missing job timeouts, and shell injection risks from event data.

What It Checks

  • Third-party uses: actions that are not pinned to a full commit SHA
  • pull_request_target workflows that check out repository code
  • write-all or broad *: write permissions
  • Jobs without timeout-minutes
  • Direct event/input interpolation inside run: scripts

Install

npm install -g @agentlaunchopsai/gha-guard
npx @agentlaunchopsai/gha-guard .

Local development:

npm install
npm test
node src/cli.js .

Usage

gha-guard .
gha-guard . --json
gha-guard . --sarif
gha-guard . --strict
gha-guard . --no-fail
npx @agentlaunchopsai/gha-guard .
npx @agentlaunchopsai/gha-guard . --json
npx @agentlaunchopsai/gha-guard . --sarif
npx @agentlaunchopsai/gha-guard . --strict
npx @agentlaunchopsai/gha-guard . --no-fail

Common checks:

# Audit GitHub Actions workflow supply-chain risk locally
npx @agentlaunchopsai/gha-guard .

# Produce SARIF for GitHub code scanning
npx @agentlaunchopsai/gha-guard . --sarif --no-fail > gha-guard.sarif

# Flag every unpinned action, including first-party actions
npx @agentlaunchopsai/gha-guard . --strict

The CLI scans .github/workflows/*.yml and .github/workflows/*.yaml. It exits with 0 when no findings are present, 1 when findings are present, and 2 for runtime errors. SARIF output is compatible with GitHub code scanning upload workflows. By default, GHA001 ignores first-party actions/* and github/* actions; use --strict to flag every unpinned action. Use --no-fail when a CI job should report findings without failing the build.

GitHub code scanning example:

name: gha-guard

on:
  pull_request:
  push:
    branches: [main]

jobs:
  scan-actions:
    runs-on: ubuntu-latest
    permissions:
      security-events: write
      contents: read
    timeout-minutes: 5
    steps:
      - uses: actions/checkout@v4
      - run: npx -y @agentlaunchopsai/gha-guard . --sarif --no-fail > gha-guard.sarif
      - uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: gha-guard.sarif

VS Code Extension

The extension wrapper uses the same scanner as the CLI. It contributes GHA Guard: Scan Workspace and adds diagnostics when GitHub Actions workflow files are opened or saved.

Build the local VSIX:

npm run package:vsix

Free Core And Pro

The free core (this package) includes local workflow scanning, text output, JSON output, SARIF output, and CI-friendly exit codes — and always will. It's MIT and stands on its own.

If you want to go further, the optional GHA Guard Pro Kit ($29) adds:

  • An expanded rule set (more supply-chain and least-privilege checks)
  • A drop-in GitHub Action workflow so scans run on every PR
  • Remediation playbooks: the exact fix for each finding, with examples

The Pro kit is optional — the free CLI is fully functional without it.

License

MIT