fix: pin golangci-lint v2 by commit SHA, remove unused nolint directives
Some checks failed
check / check (push) Has been cancelled

- Fix golangci-lint import path to v2/cmd/golangci-lint
- Pin to v2.8.0 commit SHA (e2e40021c9007020676c93680a36e3ab06c6cd33)
- Use CGO_ENABLED=0 for golangci-lint install
- Remove unused //nolint:gosec directives flagged by nolintlint
This commit is contained in:
clawbot
2026-02-26 20:22:12 -08:00
parent 9daf836cbe
commit cb30b1b054
3 changed files with 8 additions and 7 deletions

View File

@@ -10,7 +10,8 @@ RUN go mod download
COPY . .
# Run all checks — build fails if branch is not green
RUN go install github.com/golangci/golangci-lint/cmd/golangci-lint@v2.1.6
# golangci-lint v2.8.0
RUN CGO_ENABLED=0 go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@e2e40021c9007020676c93680a36e3ab06c6cd33
RUN make check
ARG VERSION=dev