File tree Expand file tree Collapse file tree 3 files changed +23
-13
lines changed
Expand file tree Collapse file tree 3 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,31 @@ name: build-and-test
55
66on :
77 pull_request :
8- branches : [ "main" ]
8+ branches :
9+ - " main"
10+
11+ permissions : {}
912
1013jobs :
1114
1215 build :
1316 runs-on : ubuntu-latest
17+
18+ permissions :
19+ contents : read
20+
1421 steps :
1522 - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1623 with :
1724 persist-credentials : false
25+
1826 - name : Set up Go
1927 uses : actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
2028 with :
21- go-version : ' 1.24 '
29+ go-version : ' 1.25 '
2230 check-latest : true
2331 cache : false
2432
25-
2633 - name : Test
2734 run : |
2835 go get -d ./...
Original file line number Diff line number Diff line change 77 branches :
88 - main
99
10- permissions :
11- contents : read
10+ permissions : {}
1211
1312jobs :
1413 golangci :
1514 name : lint
1615 runs-on : ubuntu-latest
16+
17+ permissions :
18+ contents : read
19+
1720 steps :
1821 - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1922 with :
2023 persist-credentials : false
24+
2125 - uses : actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
2226 with :
23- go-version : ' 1.24 '
27+ go-version : ' 1.25 '
2428 check-latest : true
2529 cache : false
2630
27-
2831 - name : Run golangci-lint
2932 uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3033 with :
31- version : v2.1
32-
34+ version : v2.7
Original file line number Diff line number Diff line change 88 tags :
99 - ' v*'
1010
11+ permissions : {}
12+
1113jobs :
1214 release :
1315 runs-on : ubuntu-latest
@@ -18,17 +20,16 @@ jobs:
1820
1921 env :
2022 GO111MODULE : on
21- COSIGN_EXPERIMENTAL : " true"
23+ COSIGN_YES : " true"
2224
2325 steps :
2426 - name : Check out code onto GOPATH
2527 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26- with :
27- persist-credentials : false
2828
2929 - uses : actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
3030 with :
31- go-version-file : go.mod
31+ go-version : ' 1.25'
32+ check-latest : true
3233 cache : false
3334
3435 - name : Install cosign
You can’t perform that action at this time.
0 commit comments