File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 99 branches :
1010 - main
1111 pull_request :
12+
1213permissions :
1314 contents : read
14- # Optional: allow read access to pull request. Use with `only-new-issues` option.
15- # pull-requests: read
15+ pull-requests : read
16+
1617jobs :
1718 golangci :
1819 name : lint
1920 runs-on : ubuntu-latest
2021 steps :
21- - uses : actions/checkout@v2
22- - uses : actions/setup-go@v3
22+ - uses : actions/checkout@v3
23+ - uses : actions/setup-go@v4
2324 with :
2425 go-version : 1.20.x
26+ cache : false
2527 - name : golangci-lint
2628 uses : golangci/golangci-lint-action@v3
2729 with :
28- # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
29- version : v1.53.3 # current version at time of commit
30- args : --timeout 10m
31- only-new-issues : true
30+ version : v1.54 # current version at time of commit
31+ args : --timeout=10m
32+ # Only show new issues in a PR but show all issues for pushes
33+ only-new-issues : ${{ github.event_name == 'pull_request' && ' true' || 'false' }}
You can’t perform that action at this time.
0 commit comments