CI: pin anthropics/claude-code-base-action@beta to a full commit SHA in ai-review-analysis.yml
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Open .github/workflows/ai-review-analysis.yml and inspect every third-party action reference, starting with anthropics/claude-code-base-action@beta. Use the reported gh api tag lookup to identify the current commit and verify each replacement is a full SHA. Done means the mutable action references are pinned and the workflow remains valid.
Written by the indexing model from the issue text.
Description
Summary
.github/workflows/ai-review-analysis.yml references anthropics/claude-code-base-action@beta in several steps, each passing anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}. @beta is a mutable lightweight tag (the maintainer can re-point it at any time), and this reusable workflow is invoked from claude-review.yml on pull_request_target / issue_comment with secrets: inherit.
Why it's worth pinning
Because @beta is mutable, the exact code that runs with ANTHROPIC_API_KEY (and the other provider keys in scope) can change without any change in this repo — the third-party-action supply-chain risk (the 2025 tj-actions/changed-files incident is the reference case). GitHub's hardening guidance is to pin third-party actions to a full commit SHA and let Dependabot bump it.
I noticed you're already hardening this exact workflow in #14796 (sandbox flags, secret filtering, trimming allowed_tools) — this is meant as a small complement to that effort, not a separate concern: pinning claude-code-base-action (and any other third-party actions here) to full SHAs would close the mutable-ref gap too.
Vehicle
Raising as an issue since PRs here require the Meta CLA; happy to send a PR if you'd prefer and point me at the CLA.
Reproduction: gh api repos/anthropics/claude-code-base-action/git/refs/tags/beta --jq .object.type → commit (a mutable tag, not a pinned SHA). I used AI assistance to investigate and draft this; I reproduced the facts myself.
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebook/rocksdb
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
All issues in facebook/rocksdb
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·