Skip to content

security: pin third-party GitHub Actions to full SHAs #3293

Closed

Description

@wjones127

Several third-party actions are pinned to mutable refs, which is a supply-chain injection risk: a compromised action can push a new commit to that tag/branch and run arbitrary code in our release workflows.

Known instances

  • ad-m/github-push-action@master — .github/workflows/make-release-commit.yml:90 (branch ref — highest risk)
  • dtolnay/rust-toolchain@master — .github/workflows/rust.yml:207 (branch ref)
  • Various third-party actions pinned to tags (@v1, @v4, etc.) — tags are also mutable

Official GitHub-maintained actions (actions/checkout, actions/setup-*, etc.) are typically considered lower-risk but pinning them is still best practice.

Proposed

  • Pin every third-party action reference to a full 40-char commit SHA
  • Add a comment with the intended version next to each SHA for readability, e.g. uses: ad-m/github-push-action@<sha> # v0.8.0
  • Rely on Dependabot (see sibling issue) to keep SHAs updated

Part of security review follow-up.

Activity

  1. SiluPanda commented on Apr 26, 2026

    @SiluPanda

    Hi maintainers — I’d like to take this on. I’ll audit third-party GitHub Actions references, pin them to full commit SHAs, and leave readable comments with the intended upstream version/tag where helpful. I’ll avoid changing official actions/* references unless the repo preference is to pin those too.

  2. shu-chen-dot-ca commented on Nov 9, 2026

    @shu-chen-dot-ca
    Contributor

    I'm picking this up and will open a PR pinning the remaining action references to full commit SHAs.

  3. added a commit that references this issue on Nov 19, 2026
    c136022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions