Skip to content

Commit

Permalink
restore report.json cp (#126)
Browse files Browse the repository at this point in the history
restore report.json cp
  • Loading branch information
SOOS-GSteen committed Jul 24, 2024
1 parent ee18e42 commit c467a9d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ RUN unzip $CHROMEDRIVER_DIR/chrome-linux64.zip -d $CHROMEDRIVER_DIR
# Put Chromedriver into the PATH
ENV PATH $CHROMEDRIVER_DIR:$PATH

COPY ./src/reports/traditional-json /zap/reports/traditional-json
RUN chmod -R 444 /zap/reports/traditional-json

RUN npm install

RUN npm run build
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "soos-dast",
"version": "2.0.43",
"version": "2.0.44",
"description": "SOOS DAST - The affordable no limit web vulnerability scanner",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/zap_hooks/soos_zap_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def start_zap(port, extra_zap_params):

def zap_started(zap, target):
log("zap_started_hook is running")
os.system("cp -R /zap/reports/traditional-json/report.json /root/.ZAP/reports/traditional-json/report.json")
try:
# ZAP Docker scripts reset the target to the root URL
if target.count('/') > 2:
Expand Down

0 comments on commit c467a9d

Please sign in to comment.