File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 6363 - name : Upload coverage to Codecov
64646565
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
81+
6682 test_minikube :
6783 name : Test Devfile Registry
6884 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # This script runs the gosec scanner locally
3+
4+ if ! command -v gosec 2> /dev/null
5+ then
6+ echo " error gosec must be installed with this command: go install github.com/securego/gosec/v2/cmd/gosec@latest" && exit 1
7+ fi
8+
9+ gosec -no-fail -fmt=sarif -out=gosec.sarif -exclude-dir tests ./...
You can’t perform that action at this time.
0 commit comments