Skip to content

Commit 8c251da

Browse files
JustinKuliopenshift-ci[bot]
authored andcommitted
Check gosec results in CI
The KinD tests action will now run the gosec-scan, and that target will fail if any vulnerabilities are found. The target was also configured to ignore the test code. Signed-off-by: Justin Kulikauskas <[email protected]>
1 parent d6cb733 commit 8c251da

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/kind.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ jobs:
4747
run: |
4848
go mod verify
4949
50-
- name: Verify format
50+
- name: Some quality checks
5151
run: |
5252
make fmt
5353
git diff --exit-code
5454
make lint
55+
make gosec-scan
5556
5657
- name: Verify deploy/operator.yaml
5758
run: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ gosec:
177177

178178
.PHONY: gosec-scan
179179
gosec-scan: gosec
180-
$(GOSEC) -fmt sonarqube -out gosec.json -no-fail -exclude-dir=.go ./...
180+
$(GOSEC) -fmt sonarqube -out gosec.json -stdout -exclude-dir=.go -exclude-dir=test ./...
181181

182182
############################################################
183183
# build section

0 commit comments

Comments
 (0)