Skip to content

As a developer I want GitHub Actions action refs pinned to commit SHAs so I can prevent supply-chain attacks from mutable tags #255

@ChristopherRotnes

Description

@ChristopherRotnes

Summary

Two workflow files reference Azure/static-web-apps-deploy@v1 using a mutable tag. A mutable tag can be silently updated by the action owner at any time, meaning any new code pushed to that tag runs in CI with full repository access and secret exposure. Pinning to the exact commit SHA that the tag currently resolves to eliminates this vector. VS Code / actionlint flags these as problems in both files.

Priority

High

Acceptance criteria

  • Azure/static-web-apps-deploy@v1 in .github/workflows/cleanup-staging.yml (lines 22 and 32) replaced with Azure/static-web-apps-deploy@<sha> # v1
  • Azure/static-web-apps-deploy@v1 in .github/workflows/ci.yml (line 92) replaced with the same pinned ref
  • Both workflow files still pass on the next CI run
  • VS Code / actionlint no longer reports problems in cleanup-staging.yml

Out of scope

  • Pinning actions/checkout, actions/setup-node, actions/cache — those are GitHub first-party actions with a stronger security posture and are out of scope for this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions