Skip to content

Commit 80694d5

Browse files
jim80netclaude
andcommitted
fix(ci): exclude errcheck in tests and use settings for review permissions
errcheck in test files is noisy for test setup code. Replace invalid allowed_tools input with settings parameter for claude-code-action. The review auth failure on this PR is expected since the workflow file differs from main — will resolve once merged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3ffe5be commit 80694d5

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,20 @@ jobs:
4040
plugins: 'code-review@claude-code-plugins'
4141
prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
4242
show_full_output: true
43-
allowed_tools: 'Bash(gh:*),Bash(git diff:*),Bash(git log:*),Bash(git show:*),Read,Glob,Grep'
43+
settings: |
44+
{
45+
"permissions": {
46+
"allow": [
47+
"Bash(gh:*)",
48+
"Bash(git diff:*)",
49+
"Bash(git log:*)",
50+
"Bash(git show:*)",
51+
"Read",
52+
"Glob",
53+
"Grep"
54+
]
55+
}
56+
}
4457
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4558
# or https://code.claude.com/docs/en/cli-reference for available options
4659

.golangci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ linters:
1010
- unused
1111
- gosimple
1212
- ineffassign
13+
14+
issues:
15+
exclude-rules:
16+
- path: _test\.go
17+
linters:
18+
- errcheck

0 commit comments

Comments
 (0)