Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 15dfa1e

Browse files
authored
Merge pull request #25 from Weltraumschaf/23
Fixes #23
2 parents df71a34 + 7697fe3 commit 15dfa1e

File tree

182 files changed

+114
-80
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+114
-80
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
charset = utf-8
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.go]
15+
indent_style = tab
16+
17+
[Makefile]
18+
indent_style = tab

.github/workflows/ci.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: "Install npm test dependencies"
3636
run: |
3737
npm ci
38-
cd scanner/
38+
cd scanners/
3939
npm ci
4040
cd -
4141
cd hooks/
@@ -110,7 +110,7 @@ jobs:
110110
username: ${{ secrets.DOCKER_USERNAME }}
111111
password: ${{ secrets.DOCKER_PASSWORD }}
112112
repository: scbexperimental/parser-amass
113-
path: ./scanner/amass/parser/
113+
path: ./scanners/amass/parser/
114114
tag_with_ref: true
115115
tag_with_sha: true
116116
build_args: baseImageTag=ci-local
@@ -120,7 +120,7 @@ jobs:
120120
username: ${{ secrets.DOCKER_USERNAME }}
121121
password: ${{ secrets.DOCKER_PASSWORD }}
122122
repository: scbexperimental/parser-kube-hunter
123-
path: ./scanner/kube-hunter/parser/
123+
path: ./scanners/kube-hunter/parser/
124124
tag_with_ref: true
125125
tag_with_sha: true
126126
build_args: baseImageTag=ci-local
@@ -130,7 +130,7 @@ jobs:
130130
username: ${{ secrets.DOCKER_USERNAME }}
131131
password: ${{ secrets.DOCKER_PASSWORD }}
132132
repository: scbexperimental/parser-nikto
133-
path: ./scanner/nikto/parser/
133+
path: ./scanners/nikto/parser/
134134
tag_with_ref: true
135135
tag_with_sha: true
136136
build_args: baseImageTag=ci-local
@@ -140,7 +140,7 @@ jobs:
140140
username: ${{ secrets.DOCKER_USERNAME }}
141141
password: ${{ secrets.DOCKER_PASSWORD }}
142142
repository: scbexperimental/parser-nmap
143-
path: ./scanner/nmap/parser/
143+
path: ./scanners/nmap/parser/
144144
tag_with_ref: true
145145
tag_with_sha: true
146146
build_args: baseImageTag=ci-local
@@ -150,7 +150,7 @@ jobs:
150150
username: ${{ secrets.DOCKER_USERNAME }}
151151
password: ${{ secrets.DOCKER_PASSWORD }}
152152
repository: scbexperimental/parser-ssh-scan
153-
path: ./scanner/ssh_scan/parser/
153+
path: ./scanners/ssh_scan/parser/
154154
tag_with_ref: true
155155
tag_with_sha: true
156156
build_args: baseImageTag=ci-local
@@ -160,7 +160,7 @@ jobs:
160160
username: ${{ secrets.DOCKER_USERNAME }}
161161
password: ${{ secrets.DOCKER_PASSWORD }}
162162
repository: scbexperimental/parser-sslyze
163-
path: ./scanner/sslyze/parser/
163+
path: ./scanners/sslyze/parser/
164164
tag_with_ref: true
165165
tag_with_sha: true
166166
build_args: baseImageTag=ci-local
@@ -170,7 +170,7 @@ jobs:
170170
username: ${{ secrets.DOCKER_USERNAME }}
171171
password: ${{ secrets.DOCKER_PASSWORD }}
172172
repository: scbexperimental/parser-test-scan
173-
path: ./scanner/test-scan/parser/
173+
path: ./scanners/test-scan/parser/
174174
tag_with_ref: true
175175
tag_with_sha: true
176176
build_args: baseImageTag=ci-local
@@ -180,7 +180,7 @@ jobs:
180180
username: ${{ secrets.DOCKER_USERNAME }}
181181
password: ${{ secrets.DOCKER_PASSWORD }}
182182
repository: scbexperimental/parser-trivy
183-
path: ./scanner/trivy/parser/
183+
path: ./scanners/trivy/parser/
184184
tag_with_ref: true
185185
tag_with_sha: true
186186
build_args: baseImageTag=ci-local
@@ -190,7 +190,7 @@ jobs:
190190
username: ${{ secrets.DOCKER_USERNAME }}
191191
password: ${{ secrets.DOCKER_PASSWORD }}
192192
repository: scbexperimental/parser-zap
193-
path: ./scanner/zap/parser/
193+
path: ./scanners/zap/parser/
194194
tag_with_ref: true
195195
tag_with_sha: true
196196
build_args: baseImageTag=ci-local
@@ -267,7 +267,7 @@ jobs:
267267
username: ${{ secrets.DOCKER_USERNAME }}
268268
password: ${{ secrets.DOCKER_PASSWORD }}
269269
repository: scbexperimental/nmap
270-
path: ./scanner/nmap/scanner/
270+
path: ./scanners/nmap/scanner/
271271
# Note: not prefixed with a "v" as this seems to match nmap versioning standards
272272
tags: "7.80,7.80-1,latest"
273273
- uses: docker/build-push-action@v1
@@ -276,7 +276,7 @@ jobs:
276276
username: ${{ secrets.DOCKER_USERNAME }}
277277
password: ${{ secrets.DOCKER_PASSWORD }}
278278
repository: scbexperimental/kube-hunter
279-
path: ./scanner/kube-hunter/scanner/
279+
path: ./scanners/kube-hunter/scanner/
280280
# Note: not prefixed with a "v" as this matches the aquasec/kube-hunter tags
281281
tags: "0.3.0,latest"
282282
- uses: docker/build-push-action@v1
@@ -285,7 +285,7 @@ jobs:
285285
username: ${{ secrets.DOCKER_USERNAME }}
286286
password: ${{ secrets.DOCKER_PASSWORD }}
287287
repository: scbexperimental/test-scan
288-
path: ./scanner/test-scan/scanner/
288+
path: ./scanners/test-scan/scanner/
289289
# Note: not prefixed with a "v" as this seems to match nmap versioning standards
290290
tags: "latest"
291291
integrationTests:
@@ -316,7 +316,7 @@ jobs:
316316
317317
# Operator Namespace
318318
kubectl create namespace securecodebox-system
319-
# Install Operator using the images of the current commit
319+
# Install Operator using the images of the current commit
320320
helm -n securecodebox-system install securecodebox-operator ./operator/ --wait \
321321
--set="image.tag=sha-$(git rev-parse --short HEAD)" \
322322
--set="image.digest=null" \
@@ -334,7 +334,7 @@ jobs:
334334
run: "kubectl create namespace demo-apps"
335335
- name: "Install Test Dependencies"
336336
run: |
337-
cd tests/integration/
337+
cd tests/integration/
338338
npm ci
339339
# This steps should include Integration tests which are not related to a Specific Scanner
340340
- name: "Throws NoScanDefiniton Error Integration Tests"
@@ -351,23 +351,23 @@ jobs:
351351
--set="image.tag=sha-$(git rev-parse --short HEAD)" \
352352
--set="attribute.name=severity" \
353353
--set="attribute.value=high"
354-
helm -n integration-tests install test-scan ./scanner/test-scan/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
354+
helm -n integration-tests install test-scan ./scanners/test-scan/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
355355
cd tests/integration/
356356
npx jest --ci --color read-write-hook
357357
helm -n integration-tests uninstall test-scan update-category update-severity
358358
- name: "nmap Integration Tests"
359359
run: |
360-
helm -n integration-tests install nmap ./scanner/nmap/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
360+
helm -n integration-tests install nmap ./scanners/nmap/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
361361
cd tests/integration/
362362
npx jest --ci --color nmap
363363
- name: "kube-hunter Integration Tests"
364364
run: |
365-
helm -n integration-tests install kube-hunter ./scanner/kube-hunter/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
365+
helm -n integration-tests install kube-hunter ./scanners/kube-hunter/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
366366
cd tests/integration/
367367
npx jest --ci --color kube-hunter
368368
- name: "ssh-scan Integration Tests"
369369
run: |
370-
helm -n integration-tests install ssh-scan ./scanner/ssh_scan/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
370+
helm -n integration-tests install ssh-scan ./scanners/ssh_scan/ --set="parserImage.tag=sha-$(git rev-parse --short HEAD)"
371371
# Install dummy-ssh app
372372
helm -n demo-apps install dummy-ssh ./demo-apps/dummy-ssh/ --wait
373373
cd tests/integration/

README.md

Lines changed: 77 additions & 61 deletions
File renamed without changes.
File renamed without changes.

scanner/amass/parser/__snapshots__/parser.test.js.snap renamed to scanners/amass/parser/__snapshots__/parser.test.js.snap

File renamed without changes.

0 commit comments

Comments
 (0)