Skip to content

tehreet/pinpoint-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

pinpoint-action

One line to protect your GitHub Actions supply chain.

Pinpoint Gate verifies the integrity of every action your workflows depend on — before they execute. If a version tag has been repointed to a malicious commit (as happened to trivy-action, tj-actions/changed-files, and reviewdog/action-setup), Pinpoint catches it.

Quick Start

- uses: tehreet/pinpoint-action@v1

That's it. Add this step before your other actions. It downloads the Pinpoint binary and runs pinpoint gate against all workflow files in your repository.

Usage

Warn mode (default — log violations, don't block)

steps:
  - uses: actions/checkout@v4
  - uses: tehreet/pinpoint-action@v1
  # ... rest of your workflow

Enforce mode (block builds on violations)

steps:
  - uses: actions/checkout@v4
  - uses: tehreet/pinpoint-action@v1
    with:
      mode: enforce

With a lockfile (recommended)

Generate a lockfile first:

pinpoint lock --workflows .github/workflows/

Commit .github/actions-lock.json to your repo. The gate step will verify every action reference against the lockfile and catch any tag repointing.

Inputs

Input Description Default
version Pinpoint release version v0.6.0
mode warn (log only) or enforce (fail on violations) warn
all-workflows Scan all workflow files, not just the triggering one true
token GitHub token for API access ${{ github.token }}

What it detects

  • Tag repointing — a version tag moved to a different commit (the Trivy/tj-actions attack vector)
  • Actions not in lockfile — new dependencies added without updating the lockfile
  • Branch-pinned actions — mutable refs like @main that can change at any time

Requirements

  • A lockfile at .github/actions-lock.json (generate with pinpoint lock)
  • contents: read permission on the workflow

Links

License

GPL-3.0-only

About

GitHub Action for supply chain integrity verification — powered by Pinpoint

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors