@@ -11,36 +11,34 @@ jobs:
11
11
pre-commit :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v4
14
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15
+ with :
16
+ persist-credentials : false
15
17
16
- - uses : actions/setup-python@v5
18
+ - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
17
19
with :
18
20
python-version : " 3.13"
19
21
20
- -
uses :
pre-commit/[email protected]
22
+ - uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
21
23
22
24
go-lint :
23
25
runs-on : ubuntu-latest
24
26
steps :
25
27
- name : Clone repo
26
- uses : actions/checkout@v4
28
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
29
+ with :
30
+ persist-credentials : false
27
31
28
32
- name : Setup go
29
- uses : actions/setup-go@v5
33
+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
30
34
with :
31
35
go-version-file : " go.mod"
32
36
33
- - name : golangci-lint (root module)
34
-
37
+ - name : golangci-lint
38
+ uses : golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
35
39
with :
36
40
version : v2.0.2
37
41
38
- - name : golangci-lint (api module)
39
-
40
- with :
41
- install-mode : none
42
- working-directory : api
43
-
44
42
- name : Verify golangci-lint config
45
43
run : |
46
44
golangci-lint config verify
@@ -49,10 +47,12 @@ jobs:
49
47
runs-on : ubuntu-latest
50
48
steps :
51
49
- name : Clone repo
52
- uses : actions/checkout@v4
50
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
51
+ with :
52
+ persist-credentials : false
53
53
54
54
- name : Setup go
55
- uses : actions/setup-go@v5
55
+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
56
56
with :
57
57
go-version-file : " go.mod"
58
58
@@ -72,10 +72,12 @@ jobs:
72
72
runs-on : ubuntu-latest
73
73
steps :
74
74
- name : Clone repo
75
- uses : actions/checkout@v4
75
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
76
+ with :
77
+ persist-credentials : false
76
78
77
79
- name : Setup go
78
- uses : actions/setup-go@v5
80
+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
79
81
with :
80
82
go-version-file : " go.mod"
81
83
@@ -102,10 +104,12 @@ jobs:
102
104
runs-on : ubuntu-latest
103
105
steps :
104
106
- name : Clone repo
105
- uses : actions/checkout@v4
107
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
108
+ with :
109
+ persist-credentials : false
106
110
107
111
- name : Setup go
108
- uses : actions/setup-go@v5
112
+ uses : actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
109
113
with :
110
114
go-version-file : " go.mod"
111
115
@@ -123,10 +127,12 @@ jobs:
123
127
runs-on : ubuntu-latest
124
128
steps :
125
129
- name : Clone repo
126
- uses : actions/checkout@v4
130
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
131
+ with :
132
+ persist-credentials : false
127
133
128
134
- name : Run Trivy vulnerability scanner
129
- uses : aquasecurity/trivy-action@master
135
+ uses : aquasecurity/trivy-action@99baf0d8b4e787c3cfd7b602664c8ce60a43cd38 # master
130
136
with :
131
137
scan-type : " fs"
132
138
scan-ref : " ."
0 commit comments