File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 9
9
pull_request :
10
10
11
11
permissions :
12
+ # Required: allow read access to the content for analysis.
12
13
contents : read
13
14
# 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
15
18
16
19
jobs :
17
20
golangci :
@@ -21,10 +24,10 @@ jobs:
21
24
matrix :
22
25
go : ['1.19', '1.20']
23
26
steps :
24
- - uses : actions/setup-go@v3
27
+ - uses : actions/setup-go@v5
25
28
with :
26
29
go-version : ${{ matrix.go }}
27
- - uses : actions/checkout@v3
30
+ - uses : actions/checkout@v4
28
31
29
32
- name : Format
30
33
run : go fmt
33
36
run : go vet
34
37
35
38
- name : lint
36
- uses : golangci/golangci-lint-action@v3
39
+ uses : golangci/golangci-lint-action@v6
37
40
# with:
38
41
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
39
42
# version: v1.29
You can’t perform that action at this time.
0 commit comments