File tree 2 files changed +21
-15
lines changed
2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
pull_request :
5
5
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
+
6
14
jobs :
7
15
lint :
8
16
name : run golangci-golint on the project
9
17
runs-on : ubuntu-latest
10
18
steps :
11
- - uses : actions/setup-go@v3
19
+ - uses : actions/checkout@v4
20
+ - uses : actions/setup-go@v5
12
21
with :
13
- go-version : ' ^1'
14
-
15
- - run : go version
16
-
17
- - uses : actions/checkout@v3
18
-
22
+ go-version : ' stable'
19
23
- 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:
11
11
- unused
12
12
- stylecheck
13
13
14
- run :
15
- skip-files :
14
+ issues :
15
+ exclude-dirs :
16
16
# These were code-generated, and cannot be changed without breaking RPC compatibility.
17
- - lambda/messages/*.go
17
+ - lambda/messages
18
18
19
19
linters-settings :
20
+ staticcheck :
21
+ checks :
22
+ - all
23
+ - ' -SA1029'
20
24
stylecheck :
21
- go : " 1.20"
22
25
checks :
23
26
- " all"
24
27
initialisms :
You can’t perform that action at this time.
0 commit comments