File tree 4 files changed +11
-43
lines changed
4 files changed +11
-43
lines changed Original file line number Diff line number Diff line change 22
22
uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
23
23
with :
24
24
go-version : 1.20.5
25
- - name : Restore Go cache
26
- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
27
- with :
28
- path : ~/go/pkg/mod
29
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
30
- restore-keys : |
31
- ${{ runner.os }}-go-
32
25
- name : Tests
33
26
run : make test
34
27
- name : Send go coverage report
Original file line number Diff line number Diff line change 52
52
uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
53
53
with :
54
54
go-version : 1.20.5
55
- - name : Restore Go cache
56
- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
57
- with :
58
- path : ~/go/pkg/mod
59
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
60
- restore-keys : |
61
- ${{ runner.os }}-go-
62
55
- name : fmt
63
56
run : make fmt
64
57
- name : vet
@@ -208,3 +201,9 @@ jobs:
208
201
kubectl -n mongo-system get pods -o yaml
209
202
kubectl -n kube-system get pods
210
203
kubectl -n mongo-system logs deploy/mongodb-query-exporter
204
+
205
+ test-success :
206
+ runs-on : ubuntu-latest
207
+ needs : [e2e-tests]
208
+ steps :
209
+ - run : echo "all tests succeeded"
Original file line number Diff line number Diff line change 26
26
uses : actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
27
27
with :
28
28
go-version : 1.20.5
29
- - name : Restore Go cache
30
- uses : actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
31
- with :
32
- path : ~/go/pkg/mod
33
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
34
- restore-keys : |
35
- ${{ runner.os }}-go-
36
29
- name : WriteGoList
37
30
run : go list -json -m all > go.list
38
31
- name : Nancy SAST Scan
Original file line number Diff line number Diff line change 11
11
permissions : {}
12
12
13
13
jobs :
14
- fossa :
15
- runs-on : ubuntu-latest
16
- steps :
17
- - name : Harden Runner
18
- uses : step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
19
- with :
20
- egress-policy : audit
21
-
22
- - uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
23
- - name : Run FOSSA scan and upload build data
24
- uses : fossa-contrib/fossa-action@6728dc6fe9a068c648d080c33829ffbe56565023 # v2.0.0
25
- with :
26
- # FOSSA Push-Only API Token
27
- fossa-api-key : 956b9b92c5b16eeca1467cebe104f2c3
28
- github-token : ${{ github.token }}
29
-
30
14
codeql :
31
15
runs-on : ubuntu-latest
32
16
permissions :
33
17
contents : read # for actions/checkout to fetch code
34
18
security-events : write # for codeQL to write security events
35
19
steps :
36
20
- name : Harden Runner
37
- uses : step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
21
+ uses : step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
38
22
with :
39
23
egress-policy : audit
40
-
41
24
- name : Checkout repository
42
- uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
25
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
43
26
- name : Initialize CodeQL
44
- uses : github/codeql-action/init@5f18c9ab80428f9d5a42da9ab35e6d8a1b9a9bc4 # codeql-bundle-20221020
27
+ uses : github/codeql-action/init@f0a12816612c7306b485a22cb164feb43c6df818 # codeql-bundle-20221020
45
28
with :
46
29
languages : go
47
30
- name : Autobuild
48
- uses : github/codeql-action/autobuild@5f18c9ab80428f9d5a42da9ab35e6d8a1b9a9bc4 # codeql-bundle-20221020
31
+ uses : github/codeql-action/autobuild@f0a12816612c7306b485a22cb164feb43c6df818 # codeql-bundle-20221020
49
32
- name : Perform CodeQL Analysis
50
- uses : github/codeql-action/analyze@5f18c9ab80428f9d5a42da9ab35e6d8a1b9a9bc4 # codeql-bundle-20221020
33
+ uses : github/codeql-action/analyze@f0a12816612c7306b485a22cb164feb43c6df818 # codeql-bundle-20221020
You can’t perform that action at this time.
0 commit comments