Skip to content

Commit 57c4c9d

Browse files
committed
docs: update readme
1 parent 3519a25 commit 57c4c9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ jobs:
4343
- uses: actions/checkout@v4
4444
- uses: actions/setup-go@v5
4545
with:
46-
go-version: '1.21'
46+
go-version: '1.22'
4747
- name: golangci-lint
4848
uses: golangci/golangci-lint-action@v5
4949
with:
5050
# Require: The version of golangci-lint to use.
5151
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
5252
# 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
5454

5555
# Optional: working directory, useful for monorepos
5656
# working-directory: somedir
@@ -105,7 +105,7 @@ jobs:
105105
golangci:
106106
strategy:
107107
matrix:
108-
go: ['1.21']
108+
go: ['1.22']
109109
os: [ubuntu-latest, macos-latest, windows-latest]
110110
name: lint
111111
runs-on: ${{ matrix.os }}
@@ -120,7 +120,7 @@ jobs:
120120
# Require: The version of golangci-lint to use.
121121
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
122122
# 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
124124

125125
# Optional: working directory, useful for monorepos
126126
# working-directory: somedir
@@ -165,15 +165,15 @@ The restrictions of annotations are the following:
165165
If you would like to have comments - please, up-vote [the issue](https://github.com/golangci/golangci-lint-action/issues/5).
166166
3. The number of annotations is [limited](https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md#limitations).
167167

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.
169169

170170
```yaml annotate
171171
permissions:
172172
# Required: allow read access to the content for analysis.
173173
contents: read
174174
# Optional: allow read access to pull request. Use with `only-new-issues` option.
175175
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.
177177
checks: write
178178
```
179179

0 commit comments

Comments
 (0)