@@ -154,6 +154,15 @@ jobs:
154154 path : ./integrations/sslyze/parser/
155155 tag_with_ref : true
156156 tag_with_sha : true
157+ - uses : docker/build-push-action@v1
158+ name : " Build & Push Trivy Parser Image"
159+ with :
160+ username : ${{ secrets.DOCKER_USERNAME }}
161+ password : ${{ secrets.DOCKER_PASSWORD }}
162+ repository : scbexperimental/parser-trivy
163+ path : ./integrations/trivy/parser/
164+ tag_with_ref : true
165+ tag_with_sha : true
157166 - uses : docker/build-push-action@v1
158167 name : " Build & Push OWASP Zap Parser Image"
159168 with :
@@ -229,18 +238,18 @@ jobs:
229238 runs-on : ubuntu-latest
230239 strategy :
231240 matrix :
232- k8sVersion : [' 1.18.0', ' 1.17.2', ' 1.16.4', ' 1.15.7' ]
241+ k8sVersion : [" 1.18.0", " 1.17.2", " 1.16.4", " 1.15.7" ]
233242 steps :
234243 - uses : actions/checkout@master
235244 - name : " Start kind cluster"
236245 run : |
237246 kind create cluster --image kindest/node:v${{ matrix.k8sVersion }} --wait 3m
238247 - name : " Inspect kind cluster"
239- run : |
248+ run : |
240249 kubectl config current-context
241250 kubectl get node
242251 - name : " Install Operator"
243- run : |
252+ run : |
244253 # Namespace in which the scans for the tests will be executed
245254 kubectl create namespace integration-tests
246255
@@ -266,16 +275,16 @@ jobs:
266275 npm ci
267276 # This steps should include Integration tests which arent related to a Specific Scanner
268277 - name : " Generic Integration Tests"
269- run : |
278+ run : |
270279 cd tests/integration/
271280 npx jest --ci --color no-scan-definition-error
272281 - name : " Nmap Integration Tests"
273- run : |
282+ run : |
274283 helm -n integration-tests install nmap ./integrations/nmap/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
275284 cd tests/integration/
276285 npx jest --ci --color nmap
277286 - name : " Kube-hunter Integration Tests"
278- run : |
287+ run : |
279288 helm -n integration-tests install kube-hunter ./integrations/kube-hunter/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
280289 cd tests/integration/
281290 npx jest --ci --color kube-hunter
@@ -294,5 +303,5 @@ jobs:
294303 echo "Operator Startup Logs"
295304 kubectl -n securecodebox-system logs deployment/securecodebox-controller-manager
296305 - name : " Delete kind cluster"
297- run : |
306+ run : |
298307 kind delete cluster
0 commit comments