Skip to content

chore(deps): bump anthropics/claude-code-action from 1.0.41 to 1.0.46 in the claude-code-action group #426

chore(deps): bump anthropics/claude-code-action from 1.0.41 to 1.0.46 in the claude-code-action group

chore(deps): bump anthropics/claude-code-action from 1.0.41 to 1.0.46 in the claude-code-action group #426

Workflow file for this run

# yamllint disable rule:line-length
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened]
pull_request_review:
types: [submitted]
# Group by issue/PR number AND actor to prevent bot comments from canceling user runs
# Bot runs will be in separate groups and get skipped by job-level `if` conditions
concurrency:
group: >-
${{ github.workflow }}-${{
github.event.pull_request.number ||
github.event.review.pull_request.number ||
github.event.issue.number ||
github.ref
}}-${{ github.actor }}
cancel-in-progress: true
jobs:
claude:
# Only allow repo collaborators (OWNER, MEMBER, COLLABORATOR) to trigger @claude
# Exclude bots to prevent Claude's own comments from triggering/canceling runs
if: |
github.actor != 'dependabot[bot]' &&
github.actor != 'claude[bot]' &&
(
(github.event_name == 'issue_comment' &&
contains(github.event.comment.body, '@claude') &&
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review_comment' &&
contains(github.event.comment.body, '@claude') &&
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)) ||
(github.event_name == 'pull_request_review' &&
contains(github.event.review.body, '@claude') &&
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.review.author_association)) ||
(github.event_name == 'issues' &&
(contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')) &&
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.issue.author_association))
)
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write # Write access for pushing branches
pull-requests: write
issues: write
actions: read # Required by claude-code-action to access workflow run data
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 20
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: ".nvmrc"
- name: Cache npm tools
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
id: at-claude-npm-tools-cache
with:
path: ~/.npm
key: ${{ runner.os }}-npm-lint-tools-v1
- name: Install linting tools
if: steps.at-claude-npm-tools-cache.outputs.cache-hit != 'true'
run: npm install -g markdownlint-cli2 prettier
- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@6c61301d8e1ee91bef7b65172f93462bbb216394 # v1.0.46
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
use_commit_signing: true
track_progress: true
additional_permissions: |
actions: read
claude_args: |
--model claude-opus-4-5-20251101
--allowedTools "Read,Edit,Write,Glob,Grep,Task,Bash(gh pr:*),Bash(gh issue:*),Bash(gh run:*),Bash(gh release:*),Bash(markdownlint-cli2:*),Bash(prettier:*),Bash(shellcheck:*),mcp__github_inline_comment__create_inline_comment,mcp__github_ci__get_ci_status,mcp__github_ci__download_job_log"