Skip to content

Commit f984666

Browse files
committed
ci(ci): add gitleaks to matrix make build
Signed-off-by: Yannik Fuhrmeister <yannik.fuhrmeister@iteratec.com>
1 parent 7747711 commit f984666

4 files changed

Lines changed: 13 additions & 18 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ jobs:
279279
unit:
280280
- amass
281281
- angularjs-csti-scanner
282+
- gitleaks
282283
- nuclei
283284
- ssh-scan
284285
- sslyze
@@ -461,7 +462,6 @@ jobs:
461462
matrix:
462463
parser:
463464
- git-repo-scanner
464-
- gitleaks
465465
- kube-hunter
466466
- kubeaudit
467467
- ncrack
@@ -550,7 +550,6 @@ jobs:
550550
strategy:
551551
matrix:
552552
scanner:
553-
- gitleaks
554553
- kube-hunter
555554
- kubeaudit
556555
- ncrack
@@ -908,21 +907,6 @@ jobs:
908907
kubectl create deployment --image nginx:alpine nginx --namespace demo-targets
909908
kubectl expose deployment nginx --port 80 --namespace demo-targets
910909
911-
# ---- gitleaks Integration Tests ----
912-
913-
- name: "gitleaks Integration Tests"
914-
run: |
915-
kubectl -n integration-tests delete scans --all
916-
helm -n integration-tests install gitleaks ./scanners/gitleaks/ \
917-
--set="scanner.image.repository=docker.io/${{ env.DOCKER_NAMESPACE }}/scanner-gitleaks" \
918-
--set="scanner.image.tag=sha-$(git rev-parse --short HEAD)" \
919-
--set="parser.image.repository=docker.io/${{ env.DOCKER_NAMESPACE }}/parser-gitleaks" \
920-
--set="parser.image.tag=sha-$(git rev-parse --short HEAD)" \
921-
--set="parser.env[0].name=CRASH_ON_FAILED_VALIDATION" \
922-
--set-string="parser.env[0].value=true"
923-
cd tests/integration/
924-
npx jest --ci --color scanner/gitleaks.test.js
925-
926910
# ---- Kubehunter Integration Tests ----
927911

928912
- name: "kube-hunter Integration Tests"

‎scanners/gitleaks/Makefile‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@ scanner = gitleaks
1010
custom_scanner = set
1111

1212
include ../../scanners.mk
13+
14+
deploy-with-scanner:
15+
helm -n integration-tests install gitleaks ./ \
16+
--set="scanner.image.repository=docker.io/${IMG_NS}/${scanner-prefix}-gitleaks" \
17+
--set="scanner.image.tag=${IMG_TAG}" \
18+
--set="parser.image.repository=docker.io/${IMG_NS}/${parser-prefix}-gitleaks" \
19+
--set="parser.image.tag=sha-${IMG_TAG}" \
20+
--set="parser.env[0].name=CRASH_ON_FAILED_VALIDATION" \
21+
--set-string="parser.env[0].value=true"
22+

tests/integration/scanner/gitleaks.test.js renamed to scanners/gitleaks/integration-tests/gitleaks.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

5-
const { scan } = require("../helpers");
5+
const { scan } = require("../../../tests/integration/helpers");
66

77
jest.retryTimes(3);
88

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)