Skip to content

Pin third-party GitHub Actions to full commit SHAs #446

Description

@ravjotbrar

Description

Two third-party GitHub Actions are referenced by mutable version tags rather than immutable full commit SHAs, exposing the build/release to supply-chain tampering if the upstream tag is moved to malicious code.

Affected:

  • withastro/action@v6.github/workflows/deploy-site.yml
  • softprops/action-gh-release@v2.github/workflows/release-draft.yml

Other workflows are already compliant: official actions/* and github/codeql-action/* are allowed by tag, and the Docker workflow already pins docker/*, aws-actions/*, and peter-evans/* to full SHAs.

Suggested Fix

Pin both third-party actions to a full commit SHA with a version comment, e.g.:

withastro/action@<sha> # v6
softprops/action-gh-release@<sha> # v2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraCI, Docker, deployment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions