Skip to content

Pin GitHub Actions to commit SHAs #242

Closed

Description

@MarTrepodi

Component

Other / not sure (CI workflows)

Problem or Use Case

In .github/workflows/, only pypa/gh-action-pypi-publish is pinned to a commit SHA. Every other uses: line follows a major-version tag that can move, for example actions/checkout@v7, astral-sh/setup-uv@v7, actions/setup-python@v7, actions/upload-artifact@v7, actions/download-artifact@v8, actions/cache@v6, actions/labeler@v7 and actions/setup-node@v7. The release workflow holds id-token: write for trusted publishing to PyPI, so a compromised action tag that runs in that job could publish a package.

Proposed Solution

Pin every uses: line to a full 40-character commit SHA, with a # vX.Y.Z comment. dependabot.yml already watches the github-actions ecosystem, so Dependabot will raise PRs to bump the SHAs.

Acceptance

  • Every uses: line matches @[0-9a-f]{40}.
  • All workflows pass on the PR.

Activity

  1. added
    ci
    on Nov 7, 2026
  2. github-actions commented on Nov 7, 2026

    @github-actions
    Contributor

    Addressed by #257, which is now merged into develop. This issue will close automatically when that change is released to main.

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

    ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions