Skip to content

fix(ci): replace invalid Actions pin with the commit SHA it resolves to - #2417

Open
MGPOCKY wants to merge 1 commit into
Shopify:mainfrom
MGPOCKY:fix/ci-invalid-action-ref
Open

fix(ci): replace invalid Actions pin with the commit SHA it resolves to#2417
MGPOCKY wants to merge 1 commit into
Shopify:mainfrom
MGPOCKY:fix/ci-invalid-action-ref

Conversation

@MGPOCKY

@MGPOCKY MGPOCKY commented Jul 31, 2026

Copy link
Copy Markdown

Problem

These workflow uses: pins are invalid as written. Each item below shows the current value, why it is wrong, and the correct ref that must be used instead.

1. .github/workflows/agent-android-bot.yml

Current (invalid):

uses: anthropics/claude-code-action@bf4f0de6fccd1eea7044a5f903fc928aff363134 # v1

Why this is wrong:

  • bf4f0de6fccd1eea7044a5f903fc928aff363134 is not a commit SHA. It is the Git object SHA of an annotated tag (v1).
  • GitHub Actions does not accept annotated tag object SHAs in uses: pins (Commits API returns No commit found for SHA).
  • The correct pin is the commit SHA that tag v1 points to: df37d2f0760a4b5683a6e617c9325bc1a36443f6.

Correct pin:

uses: anthropics/claude-code-action@df37d2f0760a4b5683a6e617c9325bc1a36443f6 # v1

2. .github/workflows/agent-bot.yml

Current (invalid):

uses: anthropics/claude-code-action@bf4f0de6fccd1eea7044a5f903fc928aff363134 # v1

Why this is wrong:

  • bf4f0de6fccd1eea7044a5f903fc928aff363134 is not a commit SHA. It is the Git object SHA of an annotated tag (v1).
  • GitHub Actions does not accept annotated tag object SHAs in uses: pins (Commits API returns No commit found for SHA).
  • The correct pin is the commit SHA that tag v1 points to: df37d2f0760a4b5683a6e617c9325bc1a36443f6.

Correct pin:

uses: anthropics/claude-code-action@df37d2f0760a4b5683a6e617c9325bc1a36443f6 # v1

3. .github/workflows/agent-fix.yml

Current (invalid):

uses: anthropics/claude-code-action@bf4f0de6fccd1eea7044a5f903fc928aff363134 # v1

Why this is wrong:

  • bf4f0de6fccd1eea7044a5f903fc928aff363134 is not a commit SHA. It is the Git object SHA of an annotated tag (v1).
  • GitHub Actions does not accept annotated tag object SHAs in uses: pins (Commits API returns No commit found for SHA).
  • The correct pin is the commit SHA that tag v1 points to: df37d2f0760a4b5683a6e617c9325bc1a36443f6.

Correct pin:

uses: anthropics/claude-code-action@df37d2f0760a4b5683a6e617c9325bc1a36443f6 # v1

4. .github/workflows/agent-triage.yml

Current (invalid):

uses: anthropics/claude-code-action@bf4f0de6fccd1eea7044a5f903fc928aff363134 # v1

Why this is wrong:

  • bf4f0de6fccd1eea7044a5f903fc928aff363134 is not a commit SHA. It is the Git object SHA of an annotated tag (v1).
  • GitHub Actions does not accept annotated tag object SHAs in uses: pins (Commits API returns No commit found for SHA).
  • The correct pin is the commit SHA that tag v1 points to: df37d2f0760a4b5683a6e617c9325bc1a36443f6.

Correct pin:

uses: anthropics/claude-code-action@df37d2f0760a4b5683a6e617c9325bc1a36443f6 # v1

Test plan

  • Each updated uses: ref resolves as a commit via the GitHub Commits API
  • Relevant CI jobs on this branch look healthy

@MGPOCKY MGPOCKY changed the title fix(ci): pin Actions to commit SHAs (not annotated tag objects) fix(ci): replace invalid Actions pin with the commit SHA it resolves to Jul 31, 2026
@MGPOCKY
MGPOCKY marked this pull request as ready for review July 31, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant