Skip to main content
Wright Websites

workflow-sentinel

pin GitHub Actions by SHA

Ensure GitHub Actions workflows pin third-party actions by commit SHA.

  • 60/week on npm
  • 2★
  • MIT
  • v1.1.1
  • In use on this site
  • Supply Chain
npx workflow-sentinel

Read the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)

workflow-sentinel

From the README

workflow-sentinel reads your .github/workflows/.yml and action.yml files and flags the patterns behind most real-world Actions compromises: mutable action tags, over-privileged tokens, pullrequesttarget "pwn requests", script injection, leaked secrets and more. Every finding includes a file and line number, a severity and a concrete fix. --fix` pins your actions to commit SHAs for you.

npx workflow-sentinel                      # scan the current repository
npx workflow-sentinel .github/workflows/release.yml --fail-on medium
npx workflow-sentinel --trusted-owner actions --trusted-owner github
GH_TOKEN=... npx workflow-sentinel --fix   # pin every action to its current commit SHA (# v4 comment for Dependabot)

Where we use it

CI job on this site: audit:deps · In use

Related service: Web hosting

Related packages

Supply Chain