actionpin

command
v0.183.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command actionpin refuses a GitHub Actions `uses:` that is not pinned by full commit SHA.

WHY A TAG IS NOT A PIN

`uses: actions/checkout@v7` names a movable reference. Whoever can move that tag, or whoever compromises the account that can, runs new code in the workflow with its token: read access to the repository, and write scope in a release or Pages job. A 40-hex commit SHA cannot be moved. The tag stays in a trailing comment (`uses: actions/checkout@<sha> # v7`) so that a reader, and Renovate's helpers:pinGitHubActionDigests, can tell which release it is.

WHAT IT CHECKS

Every `uses:` in .github/workflows/*.yml|yaml and in .github/actions/*/action.yml|yaml:

  • a local reference (`./path`) is fine: it is this repository's own code;
  • `docker://image@sha256:<64 hex>` is fine, `docker://image:tag` is not;
  • anything else must be `owner/repo[/path]@<40 hex>` followed by a `# comment` naming the tag. A SHA with no comment is refused too, because the comment is what a bump rewrites; without it the pin is unreadable and unmaintainable.

WHAT IT REFUSES TO REPORT AS PASSING

A directory with no workflow file is an error, not a pass: a scan that read nothing looks exactly like a clean repository. It reads files, never the network, so it needs no token and cannot tell whether a SHA exists.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL