File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 33 push :
44 pull_request :
55
6+ permissions :
7+ # Required: allow read access to the content for analysis.
8+ contents : read
9+ # Optional: allow read access to pull request. Use with `only-new-issues` option.
10+ pull-requests : read
11+ # Optional: allow write access to checks to allow the action to annotate code in the PR.
12+ checks : write
13+
614jobs :
715 lint :
816 name : run golangci-golint on the project
917 runs-on : ubuntu-latest
1018 steps :
11- - uses : actions/setup-go@v3
19+ - uses : actions/checkout@v4
20+ - uses : actions/setup-go@v5
1221 with :
13- go-version : ' ^1'
14-
15- - run : go version
16-
17- - uses : actions/checkout@v3
18-
22+ go-version : ' stable'
1923 - name : golangci-golint
20- run : |
21- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2
22- ./bin/golangci-lint run -v ./...
23-
24+ uses : golangci/golangci-lint-action@v6
25+ with :
26+ version : v1.64.5
Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ linters:
1111 - unused
1212 - stylecheck
1313
14- run :
15- skip-files :
14+ issues :
15+ exclude-dirs :
1616 # These were code-generated, and cannot be changed without breaking RPC compatibility.
17- - lambda/messages/*.go
17+ - lambda/messages
1818
1919linters-settings :
20+ staticcheck :
21+ checks :
22+ - all
23+ - ' -SA1029'
2024 stylecheck :
21- go : " 1.20"
2225 checks :
2326 - " all"
2427 initialisms :
You can’t perform that action at this time.
0 commit comments