File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 branches :
66 - main
77 pull_request :
8- permissions :
9- checks : write # Allow write access to checks to allow annotation of code in the PR.
10- contents : read
11- pull-requests : read
8+
9+ permissions : {}
10+
1211env :
1312 CGO_ENABLED : 0
1413 GOLANGCI_LINT_VERSION : v2.12
14+
1515jobs :
1616 go-lint-checks :
1717 runs-on : ubuntu-latest
18+ permissions :
19+ checks : write # Allow write access to checks to allow annotation of code in the PR.
20+ contents : read
21+ pull-requests : read
1822 steps :
1923 - uses : actions/checkout@v6
24+ with :
25+ persist-credentials : false
2026 - uses : actions/setup-go@v6
2127 with :
2228 go-version-file : go.mod
2834 runs-on : ubuntu-latest
2935 steps :
3036 - uses : actions/checkout@v6
37+ with :
38+ persist-credentials : false
3139 - uses : actions/setup-go@v6
3240 with :
3341 go-version-file : go.mod
Original file line number Diff line number Diff line change 44 branches :
55 - main
66 pull_request :
7- permissions :
8- contents : read
9- pull-requests : read
7+
8+ permissions : {}
9+
1010jobs :
1111 cross :
1212 name : Build on ${{ matrix.os }} with Go ${{ matrix.go-version }}
2626 steps :
2727 - name : Checkout code
2828 uses : actions/checkout@v6
29+ with :
30+ persist-credentials : false
2931 - name : Set up Go
3032 uses : actions/setup-go@v6
3133 with :
Original file line number Diff line number Diff line change @@ -33,10 +33,13 @@ jobs:
3333 - windows
3434 steps :
3535 - uses : actions/checkout@v6
36+ with :
37+ persist-credentials : false
3638 - uses : actions/setup-go@v6
3739 with :
3840 check-latest : true
3941 go-version-file : go.mod
42+ cache : false
4043 - name : Build ${{ matrix.app }} for ${{ matrix.go-os }}/${{ matrix.go-arch }}
4144 run : |
4245 go build \
6568 expose_ports : " 5001 5002 5003 8053 8055 8443"
6669 steps :
6770 - uses : actions/checkout@v6
71+ with :
72+ persist-credentials : false
6873 - name : Download ${{ matrix.app }} artifacts
6974 uses : actions/download-artifact@v8
7075 with :
@@ -147,6 +152,6 @@ jobs:
147152 for artifact in *; do
148153 tar czf ${artifact}.tar.gz ${artifact}
149154 zip -r ${artifact}.zip ${artifact}
150- gh release upload ${{ github.ref_name } } ${artifact}.* \
155+ gh release upload ${GITHUB_REF_NAME } ${artifact}.* \
151156 --repo ${{ github.repository }};
152157 done
Original file line number Diff line number Diff line change 1919 # https://github.com/marketplace/actions/checkout
2020 - name : Check out code
2121 uses : actions/checkout@v6
22+ with :
23+ persist-credentials : false
2224 # https://github.com/marketplace/actions/setup-go-environment
2325 - name : Set up Go
2426 uses : actions/setup-go@v6
4345 steps :
4446 - name : Check out code
4547 uses : actions/checkout@v6
48+ with :
49+ persist-credentials : false
4650 - name : Set up Go
4751 uses : actions/setup-go@v6
4852 with :
6468 runs-on : ubuntu-latest
6569 steps :
6670 - uses : actions/checkout@v6
71+ with :
72+ persist-credentials : false
6773 - uses : actions/setup-go@v6
6874 with :
6975 go-version : stable
9197 steps :
9298 - name : Check out code
9399 uses : actions/checkout@v6
100+ with :
101+ persist-credentials : false
94102 # Run project unit tests (with the race detector enabled and atomic coverage profile collection)
95103 - name : unittests
96104 run : go test -v -race -covermode=atomic -coverprofile=profile.cov ./...
You can’t perform that action at this time.
0 commit comments