5454 with :
5555 go-version : stable
5656 - name : golangci-lint
57- uses : golangci/golangci-lint-action@v8
57+ uses : golangci/golangci-lint-action@v9
5858 with :
59- version : v2.1
59+ version : v2.6
6060` ` `
6161
6262</details>
9292 with :
9393 go-version : ${{ matrix.go }}
9494 - name : golangci-lint
95- uses : golangci/golangci-lint-action@v8
95+ uses : golangci/golangci-lint-action@v9
9696 with :
97- version : v2.1
97+ version : v2.6
9898` ` `
9999
100100You will also likely need to add the following ` .gitattributes` file to ensure that line endings for Windows builds are properly formatted:
120120
121121env:
122122 GO_VERSION: stable
123- GOLANGCI_LINT_VERSION: v2.1
123+ GOLANGCI_LINT_VERSION: v2.6
124124
125125jobs:
126126 detect-modules:
@@ -147,7 +147,7 @@ jobs:
147147 with:
148148 go-version: ${{ env.GO_VERSION }}
149149 - name: golangci-lint ${{ matrix.modules }}
150- uses: golangci/golangci-lint-action@v8
150+ uses: golangci/golangci-lint-action@v9
151151 with:
152152 version: ${{ env.GOLANGCI_LINT_VERSION }}
153153 working-directory: ${{ matrix.modules }}
@@ -179,7 +179,7 @@ jobs:
179179 with:
180180 os: ${{ matrix.os }}
181181 go-version: ${{ matrix.go-version }}
182- golangci-lint-version: v2.1
182+ golangci-lint-version: v2.6
183183` ` `
184184
185185` ` ` yaml
201201 golangci-lint-version:
202202 description: 'Golangci-lint version'
203203 type: string
204- default: 'v2.1 '
204+ default: 'v2.6 '
205205
206206jobs:
207207 detect-modules:
@@ -229,7 +229,7 @@ jobs:
229229 with:
230230 go-version: ${{ inputs.go-version }}
231231 - name: golangci-lint ${{ matrix.modules }}
232- uses: golangci/golangci-lint-action@v8
232+ uses: golangci/golangci-lint-action@v9
233233 with:
234234 version: ${{ inputs.golangci-lint-version }}
235235 working-directory: ${{ matrix.modules }}
@@ -274,9 +274,9 @@ When `install-mode` is:
274274<summary>Example</summary>
275275
276276` ` ` yml
277- uses: golangci/golangci-lint-action@v8
277+ uses: golangci/golangci-lint-action@v9
278278with:
279- version: v2.1
279+ version: v2.6
280280 # ...
281281` ` `
282282
@@ -296,7 +296,7 @@ The default value is `binary`.
296296<summary>Example</summary>
297297
298298` ` ` yml
299- uses: golangci/golangci-lint-action@v8
299+ uses: golangci/golangci-lint-action@v9
300300with:
301301 install-mode: "none"
302302 # ...
@@ -317,7 +317,7 @@ The default value is `false`.
317317<summary>Example</summary>
318318
319319` ` ` yml
320- uses: golangci/golangci-lint-action@v8
320+ uses: golangci/golangci-lint-action@v9
321321with:
322322 install-only: true
323323 # ...
@@ -337,7 +337,7 @@ By default, it uses the `github.token` from the action.
337337<summary>Example</summary>
338338
339339` ` ` yml
340- uses: golangci/golangci-lint-action@v8
340+ uses: golangci/golangci-lint-action@v9
341341with:
342342 github-token: xxx
343343 # ...
@@ -360,7 +360,7 @@ The JSON Schema used to validate the configuration depends on the version of gol
360360<summary>Example</summary>
361361
362362` ` ` yml
363- uses: golangci/golangci-lint-action@v8
363+ uses: golangci/golangci-lint-action@v9
364364with:
365365 verify: false
366366 # ...
@@ -385,7 +385,7 @@ The default value is `false`.
385385<summary>Example</summary>
386386
387387` ` ` yml
388- uses: golangci/golangci-lint-action@v8
388+ uses: golangci/golangci-lint-action@v9
389389with:
390390 only-new-issues: true
391391 # ...
@@ -403,7 +403,7 @@ The golangci-lint working directory, useful for monorepos. The default is the pr
403403<summary>Example</summary>
404404
405405` ` ` yml
406- uses: golangci/golangci-lint-action@v8
406+ uses: golangci/golangci-lint-action@v9
407407with:
408408 working-directory: somedir
409409 # ...
@@ -428,7 +428,7 @@ golangci-lint command line arguments.
428428<summary>Example</summary>
429429
430430` ` ` yml
431- uses: golangci/golangci-lint-action@v8
431+ uses: golangci/golangci-lint-action@v9
432432with:
433433 # In some rare cases,
434434 # you may need to use ` ${{ github.workspace }}` as the base directory to reference your configuration file.
@@ -456,7 +456,7 @@ The default value is `false`.
456456<summary >Example</summary >
457457
458458``` yml
459- uses : golangci/golangci-lint-action@v8
459+ uses : golangci/golangci-lint-action@v9
460460with :
461461 problem-matchers : true
462462 # ...
@@ -477,7 +477,7 @@ The default value is `false`.
477477<summary >Example</summary >
478478
479479``` yml
480- uses : golangci/golangci-lint-action@v8
480+ uses : golangci/golangci-lint-action@v9
481481with :
482482 skip-cache : true
483483 # ...
@@ -497,7 +497,7 @@ The default value is `false`.
497497<summary >Example</summary >
498498
499499``` yml
500- uses : golangci/golangci-lint-action@v8
500+ uses : golangci/golangci-lint-action@v9
501501with :
502502 skip-save-cache : true
503503 # ...
@@ -519,7 +519,7 @@ If the number is `<= 0`, the cache will always be invalidated (not recommended).
519519<summary >Example</summary >
520520
521521``` yml
522- uses : golangci/golangci-lint-action@v8
522+ uses : golangci/golangci-lint-action@v9
523523with :
524524 cache-invalidation-interval : 15
525525 # ...
0 commit comments