File tree Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Expand file tree Collapse file tree 1 file changed +18
-15
lines changed Original file line number Diff line number Diff line change 2828 - name : Check if registry-library build is working
2929 run : cd registry-library && bash ./build.sh
3030
31+ - name : Run Gosec Security Scanner
32+ run : |
33+ export PATH=$PATH:$(go env GOPATH)/bin
34+ go install github.com/securego/gosec/v2/cmd/gosec@latest
35+ ./run_gosec.sh
36+ if [[ $? != 0 ]]
37+ then
38+ echo "gosec scanner failed to run "
39+ exit 1
40+ fi
41+
42+ - name : Upload SARIF file
43+ uses : github/codeql-action/upload-sarif@v2
44+ with :
45+ # Path to SARIF file relative to the root of the repository
46+ sarif_file : gosec.sarif
47+
48+
3149 docker :
3250 name : Check docker builds
3351 runs-on : ubuntu-latest
6381 - name : Upload coverage to Codecov
64826583
66- - name : Run Gosec Security Scanner
67- run : |
68- go install github.com/securego/gosec/v2/cmd/gosec@latest
69- ./run_gosec.sh
70- if [[ $? != 0 ]]
71- then
72- echo "gosec scanner failed to run "
73- exit 1
74- fi
75-
76- - name : Upload SARIF file
77- uses : github/codeql-action/upload-sarif@v2
78- with :
79- # Path to SARIF file relative to the root of the repository
80- sarif_file : gosec.sarif
8184
8285 test_minikube :
8386 name : Test Devfile Registry
You can’t perform that action at this time.
0 commit comments