You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/ci.yaml
+17
Original file line number
Diff line number
Diff line change
@@ -70,3 +70,20 @@ jobs:
70
70
run: |
71
71
go fmt -x ./...
72
72
git diff --exit-code || { echo 'Go sources need to be formatted. Execute "go fmt -x ./..." locally in the 'generator' folder and commit changes to fix an issue'; exit 1; }
73
+
74
+
- name: Run Gosec Security Scanner
75
+
run: |
76
+
export PATH=$PATH:$(go env GOPATH)/bin
77
+
go install github.com/securego/gosec/v2/cmd/gosec@latest
78
+
./run_gosec.sh
79
+
if [[ $? != 0 ]]
80
+
then
81
+
echo "gosec scanner failed to run "
82
+
exit 1
83
+
fi
84
+
85
+
- name: Upload SARIF file
86
+
uses: github/codeql-action/upload-sarif@v2
87
+
with:
88
+
# Path to SARIF file relative to the root of the repository
0 commit comments