Skip to content

Commit

Permalink
Use dep check image (#1)
Browse files Browse the repository at this point in the history
* use the owasp image

* cleanup
  • Loading branch information
litscher committed Jun 29, 2021
1 parent 5875270 commit cd2308e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM owasp/dependency-check-action:latest

LABEL repository="https://github.com/dependency-check/Dependency-Check_Action" \
homepage="https://github.com/dependency-check/Dependency-Check_Action" \
Expand All @@ -9,12 +9,7 @@ LABEL repository="https://github.com/dependency-check/Dependency-Check_Action" \
com.github.actions.color="red"

USER root
RUN apt-get update; apt-get install wget -y \
&& apt-get install unzip -y \
&& wget https://github.com/jeremylong/DependencyCheck/releases/download/v6.2.2/dependency-check-6.2.2-release.zip -P /tmp\
&& unzip /tmp/dependency-check-6.2.2-release.zip \
&& apt-get install openjdk-11-jdk -y \
&& export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/bin/sh","/entrypoint.sh"]
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
set -e
all_args=$@
/dependency-check/bin/dependency-check.sh ${all_args}
/usr/share/dependency-check/bin/dependency-check.sh ${all_args}

0 comments on commit cd2308e

Please sign in to comment.