Skip to content

Commit 3eca20f

Browse files
committed
chore(ci): use go tool for golangci-lint to align with project version
Replace golangci-lint-action (which downloads the latest release) with `go tool`, so CI uses the same v1.64.7 from go.mod as local `make lint`. Signed-off-by: Quang Nguyen <nguyenquang@microsoft.com>
1 parent 732952a commit 3eca20f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/golangci-lint.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,4 @@ jobs:
3535
with:
3636
go-version-file: go.mod
3737
- name: golangci-lint
38-
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
39-
with:
40-
version: latest
41-
args: --concurrency 4 --verbose --config=.golangci.yaml --timeout=25m
42-
only-new-issues: true
43-
skip-cache: true
38+
run: go tool github.com/golangci/golangci-lint/cmd/golangci-lint run --new-from-rev=${{ github.event.pull_request.base.sha || github.event.merge_group.base_sha || github.event.before || 'HEAD~1' }} --concurrency 4 --verbose --config=.golangci.yaml --timeout=25m

0 commit comments

Comments
 (0)