Skip to content

Commit a2b5b3b

Browse files
committed
ci: bump golangci-lint action
1 parent 037ff41 commit a2b5b3b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ on:
99
pull_request:
1010

1111
permissions:
12+
# Required: allow read access to the content for analysis.
1213
contents: read
1314
# Optional: allow read access to pull request. Use with `only-new-issues` option.
14-
# pull-requests: read
15+
pull-requests: read
16+
# Optional: allow write access to checks to allow the action to annotate code in the PR.
17+
checks: write
1518

1619
jobs:
1720
golangci:
@@ -21,10 +24,10 @@ jobs:
2124
matrix:
2225
go: ['1.19', '1.20']
2326
steps:
24-
- uses: actions/setup-go@v3
27+
- uses: actions/setup-go@v5
2528
with:
2629
go-version: ${{ matrix.go }}
27-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
2831

2932
- name: Format
3033
run: go fmt
@@ -33,7 +36,7 @@ jobs:
3336
run: go vet
3437

3538
- name: lint
36-
uses: golangci/golangci-lint-action@v3
39+
uses: golangci/golangci-lint-action@v6
3740
#with:
3841
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
3942
#version: v1.29

0 commit comments

Comments
 (0)