Skip to content

CI: pin claude-code-base-action to a full commit SHA - #15064

Open
Sanjays2402 wants to merge 1 commit into
facebook:mainfrom
Sanjays2402:pin-claude-action-sha
Open

CI: pin claude-code-base-action to a full commit SHA#15064
Sanjays2402 wants to merge 1 commit into
facebook:mainfrom
Sanjays2402:pin-claude-action-sha

Conversation

@Sanjays2402

Copy link
Copy Markdown

Fixes #14936.

ai-review-analysis.yml uses anthropics/claude-code-base-action@beta in six steps. beta is a lightweight tag, so it can be re-pointed at any commit without anything changing here:

$ gh api repos/anthropics/claude-code-base-action/git/refs/tags/beta --jq .object.type
commit

That matters more than usual for this workflow because claude-review.yml calls it on pull_request_target and issue_comment with secrets: inherit, so whatever the tag resolves to runs with ANTHROPIC_API_KEY and the rest of the provider keys in scope. GitHub's hardening guidance for third-party actions is a full commit SHA, and Dependabot will still bump a pinned SHA.

Pinned all six to e8132bc, which is what beta points at right now, with the tag kept as a trailing comment so it stays readable and Dependabot-friendly.

Only the six third-party uses: lines changed. The actions/* ones are first-party and left alone, matching what the issue asked for.

@meta-cla meta-cla Bot added the CLA Signed label Aug 6, 2026
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.

CI: pin anthropics/claude-code-base-action@beta to a full commit SHA in ai-review-analysis.yml

1 participant