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

Commit 09f8a2a

Browse files
committed
Merge branch 'master' into targets
2 parents 6c22afd + 28fff5e commit 09f8a2a

27 files changed

+500
-90
lines changed

.github/workflows/ci.yaml

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ jobs:
1717
- name: "Build'n Push Operator"
1818
uses: docker/build-push-action@v1
1919
with:
20-
username: ${{ github.actor }}
21-
password: ${{ github.token }}
22-
repository: j12934/securecodebox/operator
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_PASSWORD }}
22+
repository: scbexperimental/operator
2323
tag_with_ref: true
24-
registry: docker.pkg.github.com
2524
path: ./operator/
2625
lurcher:
2726
name: "Lurcher"
@@ -39,11 +38,10 @@ jobs:
3938
- uses: docker/build-push-action@v1
4039
name: "Build & Push Lurcher Image"
4140
with:
42-
username: ${{ github.actor }}
43-
password: ${{ github.token }}
44-
repository: j12934/securecodebox/lurcher
41+
username: ${{ secrets.DOCKER_USERNAME }}
42+
password: ${{ secrets.DOCKER_PASSWORD }}
43+
repository: scbexperimental/lurcher
4544
tag_with_ref: true
46-
registry: docker.pkg.github.com
4745
path: ./lurcher/
4846
integrations:
4947
name: "Node Unit Tests"
@@ -93,47 +91,42 @@ jobs:
9391
- uses: docker/build-push-action@v1
9492
name: "Build & Push Parser SDK"
9593
with:
96-
username: ${{ github.actor }}
97-
password: ${{ github.token }}
98-
repository: j12934/securecodebox/parser-sdk-nodejs
99-
registry: docker.pkg.github.com
94+
username: ${{ secrets.DOCKER_USERNAME }}
95+
password: ${{ secrets.DOCKER_PASSWORD }}
96+
repository: scbexperimental/parser-sdk-nodejs
10097
path: ./parser-sdk/nodejs/
10198
tag_with_ref: true
10299
# Actual Parsers
103100
- uses: docker/build-push-action@v1
104101
name: "Build & Push Amass Parser Image"
105102
with:
106-
username: ${{ github.actor }}
107-
password: ${{ github.token }}
108-
repository: j12934/securecodebox/parser-amass
109-
registry: docker.pkg.github.com
103+
username: ${{ secrets.DOCKER_USERNAME }}
104+
password: ${{ secrets.DOCKER_PASSWORD }}
105+
repository: scbexperimental/parser-amass
110106
path: ./integrations/amass/parser/
111107
tag_with_ref: true
112108
- uses: docker/build-push-action@v1
113109
name: "Build & Push Nmap Parser Image"
114110
with:
115-
username: ${{ github.actor }}
116-
password: ${{ github.token }}
117-
repository: j12934/securecodebox/parser-nmap
118-
registry: docker.pkg.github.com
111+
username: ${{ secrets.DOCKER_USERNAME }}
112+
password: ${{ secrets.DOCKER_PASSWORD }}
113+
repository: scbexperimental/parser-nmap
119114
path: ./integrations/nmap/parser/
120115
tag_with_ref: true
121116
- uses: docker/build-push-action@v1
122117
name: "Build & Push ssh_scan Parser Image"
123118
with:
124-
username: ${{ github.actor }}
125-
password: ${{ github.token }}
126-
repository: j12934/securecodebox/parser-ssh-scan
127-
registry: docker.pkg.github.com
119+
username: ${{ secrets.DOCKER_USERNAME }}
120+
password: ${{ secrets.DOCKER_PASSWORD }}
121+
repository: scbexperimental/parser-ssh-scan
128122
path: ./integrations/ssh_scan/parser/
129123
tag_with_ref: true
130124
- uses: docker/build-push-action@v1
131125
name: "Build & Push OWASP Zap Parser Image"
132126
with:
133-
username: ${{ github.actor }}
134-
password: ${{ github.token }}
135-
repository: j12934/securecodebox/parser-zap
136-
registry: docker.pkg.github.com
127+
username: ${{ secrets.DOCKER_USERNAME }}
128+
password: ${{ secrets.DOCKER_PASSWORD }}
129+
repository: scbexperimental/parser-zap
137130
path: ./integrations/zap/parser/
138131
tag_with_ref: true
139132
persistenceImages:
@@ -145,22 +138,28 @@ jobs:
145138
- uses: docker/build-push-action@v1
146139
name: "Build & Push Persistence SDK"
147140
with:
148-
username: ${{ github.actor }}
149-
password: ${{ github.token }}
150-
repository: j12934/securecodebox/persistence-sdk-nodejs
151-
registry: docker.pkg.github.com
141+
username: ${{ secrets.DOCKER_USERNAME }}
142+
password: ${{ secrets.DOCKER_PASSWORD }}
143+
repository: scbexperimental/persistence-sdk-nodejs
152144
path: ./persistence-sdk/nodejs/
153145
tag_with_ref: true
154146
# Actual PersistenceProviders
155147
- uses: docker/build-push-action@v1
156148
name: "Build & Push Elastic PersistenceProvider Image"
157149
with:
158-
username: ${{ github.actor }}
159-
password: ${{ github.token }}
160-
repository: j12934/securecodebox/persistence-elastic
161-
registry: docker.pkg.github.com
150+
username: ${{ secrets.DOCKER_USERNAME }}
151+
password: ${{ secrets.DOCKER_PASSWORD }}
152+
repository: scbexperimental/persistence-elastic
162153
path: ./persistence/persistence-elastic/
163154
tag_with_ref: true
155+
- uses: docker/build-push-action@v1
156+
name: "Build & Push Elastic PersistenceProvider Dashboard Importer Image"
157+
with:
158+
username: ${{ secrets.DOCKER_USERNAME }}
159+
password: ${{ secrets.DOCKER_PASSWORD }}
160+
repository: scbexperimental/persistence-elastic-dashboard-importer
161+
path: ./persistence/persistence-elastic/dashboardImporter/
162+
tag_with_ref: true
164163
scannerImages:
165164
# Note we only build images for scanner that don't provider official public container images
166165
name: "Build Scanner Images"
@@ -170,10 +169,9 @@ jobs:
170169
- uses: docker/build-push-action@v1
171170
name: "Build & Push Nmap Scanner Image"
172171
with:
173-
username: ${{ github.actor }}
174-
password: ${{ github.token }}
175-
repository: j12934/securecodebox/nmap
176-
registry: docker.pkg.github.com
172+
username: ${{ secrets.DOCKER_USERNAME }}
173+
password: ${{ secrets.DOCKER_PASSWORD }}
174+
repository: scbexperimental/nmap
177175
path: ./integrations/nmap/scanner/
178176
# Note: not prefixed with a "v" as this seems to match nmap versioning standards
179177
tags: "7.80,7.80-1,latest"
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
apiVersion: "scans.experimental.securecodebox.io/v1"
1+
apiVersion: 'scans.experimental.securecodebox.io/v1'
22
kind: ParseDefinition
33
metadata:
4-
name: "amass-jsonl"
4+
name: 'amass-jsonl'
55
spec:
66
handlesResultsType: amass-jsonl
7-
image: scbexperimental/amass-parser
7+
image: scbexperimental/parser-amass
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM scbexperimental/parser-sdk:nodejs12
1+
FROM scbexperimental/parser-sdk-nodejs:latest
22
WORKDIR /home/app/parser-wrapper/parser/
33
COPY --chown=app:app ./parser.js ./parser.js

integrations/nmap/nmap-parsejob-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: "nmap-xml"
55
spec:
66
handlesResultsType: nmap-xml
7-
image: scbexperimental/nmap-parser
7+
image: scbexperimental/parser-nmap

integrations/nmap/nmap-scanjob-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ spec:
1414
restartPolicy: OnFailure
1515
containers:
1616
- name: nmap
17-
image: scbexperimental/nmap:7.80-r2
17+
image: scbexperimental/nmap:7.80
1818
command: ["nmap", "-oX", "/home/securecodebox/nmap-results.xml"]

integrations/nmap/parser/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /home/app
44
COPY package.json package-lock.json ./
55
RUN npm ci --production
66

7-
FROM scbexperimental/parser-sdk:nodejs12
7+
FROM scbexperimental/parser-sdk-nodejs:latest
88
WORKDIR /home/app/parser-wrapper/parser/
99
COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
1010
COPY --chown=app:app ./parser.js ./parser.js
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM scbexperimental/parser-sdk:nodejs12
1+
FROM scbexperimental/parser-sdk-nodejs:latest
22
WORKDIR /home/app/parser-wrapper/parser/
33
COPY --chown=app:app ./parser.js ./parser.js

integrations/ssh_scan/ssh-scan-parsejob-definition.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ metadata:
44
name: "ssh-scan-json"
55
spec:
66
handlesResultsType: ssh-scan-json
7-
image: scbexperimental/ssh-scan-parser
7+
image: scbexperimental/parser-ssh-scan
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
apiVersion: "scans.experimental.securecodebox.io/v1"
1+
apiVersion: 'scans.experimental.securecodebox.io/v1'
22
kind: ScanTemplate
33
metadata:
4-
name: "ssh-scan"
4+
name: 'ssh-scan'
55
spec:
6-
name: "ssh-scan"
6+
name: 'ssh-scan'
77
extractResults:
88
type: ssh-scan-json
9-
location: "/home/securecodebox/ssh-scan-results.json"
9+
location: '/home/securecodebox/ssh-scan-results.json'
1010
jobTemplate:
1111
spec:
1212
ttlSecondsAfterFinished: 10
@@ -17,6 +17,6 @@ spec:
1717
- name: ssh-scan
1818
image: mozilla/ssh_scan
1919
command:
20-
- "/app/bin/ssh_scan"
21-
- "--output"
22-
- "/home/securecodebox/ssh-scan-results.json"
20+
- '/app/bin/ssh_scan'
21+
- '--output'
22+
- '/home/securecodebox/ssh-scan-results.json'

integrations/zap/parser/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM scbexperimental/parser-sdk:nodejs12
1+
FROM scbexperimental/parser-sdk-nodejs:latest
22
WORKDIR /home/app/parser-wrapper/parser/
33
COPY --chown=app:app ./parser.js ./parser.js

0 commit comments

Comments
 (0)