Skip to content

Commit

Permalink
minor updates for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Mar 3, 2021
1 parent 107ed92 commit bd646c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion shell-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ fi
# docker pull owasp/dependency-check

docker run -it --rm \
--volume $(pwd):/src \
--volume "$DATA_DIRECTORY":/usr/share/dependency-check/data \
--volume "$REPORT_DIRECTORY":/report \
--entrypoint /bin/sh \
Expand Down
6 changes: 5 additions & 1 deletion test-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ fi
if [ -f "$HOME/OWASP-Dependency-Check/reports/dependency-check-report.json" ]; then
rm "$HOME/OWASP-Dependency-Check/reports/dependency-check-report.json"
fi
if [ -f "$HOME/OWASP-Dependency-Check/reports/odc.log" ]; then
rm "$HOME/OWASP-Dependency-Check/reports/odc.log"
fi

# Make sure we are using the latest version
# docker pull owasp/dependency-check
Expand All @@ -61,7 +64,8 @@ docker run --rm \
--scan /src \
--format "JSON" \
--project "test scan" \
--out /report
--out /report \
--log /report/odc.log

# return to original working directory
cd -
Expand Down

0 comments on commit bd646c6

Please sign in to comment.