Skip to content

Commit 64e3c04

Browse files
stubbiclaude
andcommitted
fix: CI lint and gosec issues
- Use install-mode: binary for golangci-lint v2 (goinstall doesn't work with v2 module path) - Exclude test/ directory from gosec (scaffolded test utils have expected subprocess findings) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6cf8ff8 commit 64e3c04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: golangci/golangci-lint-action@v6
2626
with:
2727
version: v2.1.0
28-
install-mode: goinstall
28+
install-mode: binary
2929
args: --timeout=5m
3030

3131
reconcile-guard:
@@ -102,7 +102,7 @@ jobs:
102102
- name: Run gosec
103103
uses: securego/gosec@master
104104
with:
105-
args: -exclude-generated ./...
105+
args: -exclude-generated -exclude-dir=test ./...
106106

107107
- name: Run Trivy vulnerability scanner
108108
uses: aquasecurity/trivy-action@master

0 commit comments

Comments
 (0)