Commit 8f9eb16 1 parent 4562c4e commit 8f9eb16 Copy full SHA for 8f9eb16
File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
+ permissions :
12
+ contents : read
13
+ pull-requests : write
14
+
11
15
runs-on : ubuntu-latest
12
16
strategy :
13
17
matrix :
14
18
go : ["1.22", "1.23"]
15
19
steps :
16
20
- name : Checkout
17
- uses : actions/checkout@v4
21
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18
22
19
23
- name : Set up Go ${{ matrix.go }}
20
- uses : actions/setup-go@v5
24
+ uses : actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
21
25
with :
22
26
go-version : ${{ matrix.go }}
23
27
@@ -31,19 +35,19 @@ jobs:
31
35
runs-on : ubuntu-latest
32
36
steps :
33
37
- name : Set up Go 1.22
34
- uses : actions/setup-go@v5
38
+ uses : actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
35
39
with :
36
40
go-version : " 1.22"
37
41
38
42
- name : Checkout
39
- uses : actions/checkout@v4
43
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40
44
41
45
- name : Generate coverage report
42
46
run : |
43
47
go test ./... -coverprofile=coverage.txt -covermode=atomic
44
48
45
49
- name : Upload coverage report
46
- uses : codecov/codecov-action@v4
50
+ uses : codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
47
51
env :
48
52
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
49
53
with :
You can’t perform that action at this time.
0 commit comments