Repository navigation
fix: replace claude-code-action with its secure drop-in replacement - #115
Merged
Merged
Conversation
Replaces the deprecated anthropics/claude-code-action@beta (which was returning 404 errors due to an expired default Sonnet model) with the step-security/claude-code-action drop-in fork at v1.0.146. The new version uses an agentic execution model rather than the old direct_prompt auto-post mode, so several adjustments were needed: - Pin model explicitly to claude-sonnet-4-6 via claude_args - Pass github_token explicitly so the action can post comments without relying on a separately installed GitHub App - Raise job-level pull-requests / issues permissions from read to write so the GITHUB_TOKEN can post review comments - Add REPO and PR NUMBER context to the prompt so Claude can target the right PR - Allowlist the specific tools required for automated review via --allowedTools: gh pr view/diff/comment, curl, and the GitHub MCP inline-comment tool for line-level findings - Instruct Claude to deliver the review via gh pr comment and the inline-comment MCP tool rather than as a chat response - Add a standard review-comment format (Action Type, Passed Checks, Failed Checks, Warnings, Security Findings, Summary) so the posted comment is consistent and readable
varunsh-coder
approved these changes
Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
replace claude-code-action with its secure drop-in replacement and provide model arg to resolve 404 error about deprecated model