Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
name: golangci-lint
name: lint
on:
push:
branches:
- main
pull_request:

permissions:
contents: read
# Optional: allow read access to pull requests. Use with `only-new-issues` option.
# pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
go-version: stable
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: 1.26
cache: true

- name: golangci-lint
uses: golangci/golangci-lint-action@v8
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: v2.1
version: v2.11

- name: govulncheck
run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...
10 changes: 9 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ linters:
- forcetypeassert
- gocritic
- gocyclo
- gosec
# - gosec
- govet
- importas
- ineffassign
Expand Down Expand Up @@ -85,6 +85,14 @@ linters:
text: cyclomatic complexity 33 of func `NewConfig` is high
- path: (.+)\.go$
text: 'G115: integer overflow conversion (.+)'
- path: pkg/tabwriter
text: 'var-naming: avoid package names that conflict with Go standard library package names'
- text: .CABundle is deprecated
linters:
- staticcheck
- text: MachineAnnotations is deprecated
linters:
- staticcheck
paths:
- zz_generated.*.go
- hack
Expand Down
Loading