@@ -43,14 +43,14 @@ jobs:
43
43
- uses : actions/checkout@v4
44
44
- uses : actions/setup-go@v5
45
45
with :
46
- go-version : ' 1.21 '
46
+ go-version : ' 1.22 '
47
47
- name : golangci-lint
48
48
uses : golangci/golangci-lint-action@v5
49
49
with :
50
50
# Require: The version of golangci-lint to use.
51
51
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
52
52
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
53
- version : v1.57
53
+ version : v1.58
54
54
55
55
# Optional: working directory, useful for monorepos
56
56
# working-directory: somedir
@@ -105,7 +105,7 @@ jobs:
105
105
golangci :
106
106
strategy :
107
107
matrix :
108
- go : ['1.21 ']
108
+ go : ['1.22 ']
109
109
os : [ubuntu-latest, macos-latest, windows-latest]
110
110
name : lint
111
111
runs-on : ${{ matrix.os }}
@@ -120,7 +120,7 @@ jobs:
120
120
# Require: The version of golangci-lint to use.
121
121
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
122
122
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
123
- version : v1.57
123
+ version : v1.58
124
124
125
125
# Optional: working directory, useful for monorepos
126
126
# working-directory: somedir
@@ -165,15 +165,15 @@ The restrictions of annotations are the following:
165
165
If you would like to have comments - please, up-vote [ the issue] ( https://github.com/golangci/golangci-lint-action/issues/5 ) .
166
166
3 . The number of annotations is [ limited] ( https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md#limitations ) .
167
167
168
- To enable annotations, you need to add the `checks' permission to your action.
168
+ To enable annotations, you need to add the ` checks ` permission to your action.
169
169
170
170
``` yaml annotate
171
171
permissions :
172
172
# Required: allow read access to the content for analysis.
173
173
contents : read
174
174
# Optional: allow read access to pull request. Use with `only-new-issues` option.
175
175
pull-requests : read
176
- # Optional: Allow write access to checks to allow the action to annotate code in the PR.
176
+ # Optional: allow write access to checks to allow the action to annotate code in the PR.
177
177
checks : write
178
178
` ` `
179
179
0 commit comments