Skip to content

Commit

Permalink
Dockerfile and entrypoint.sh need some love too
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSeccubus committed May 21, 2024
1 parent 944aa25 commit 38a3762
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN python3 -m venv /run/python/venv ; . /run/python/venv/bin/activate ; pip ins

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY program/* /run/
COPY schemas/* /run/schemas
COPY entrypoint.sh /run/

ADD https://github.com/mprpic/cvelint/releases/download/v0.2.0/cvelint_Linux_x86_64.tar.gz /tmp/
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ git config --global --add safe.directory $PWD
echo "*** Checking CVE records ***"
rm -f /tmp/cve_check.log && touch /tmp/cve_check.log
CVE_CHECK_FAILED=0
CMD="/run/cve_check.py --path $CVE_PATH $IGNORE_CHECKS $MIN_RESERVED $RESERVE $RESERVATIONS_TOO $DO_RESERVATIONS $DO_MISSING $VERBOSE_FLAG --schema /run/cve50.json --log /tmp/cve_check.log"
CMD="/run/cve_check.py --path $CVE_PATH $IGNORE_CHECKS $MIN_RESERVED $RESERVE $RESERVATIONS_TOO $DO_RESERVATIONS $DO_MISSING $VERBOSE_FLAG --schema /run/schemas --log /tmp/cve_check.log"
echo "Running: $CMD"
$CMD || CVE_CHECK_FAILED=1

Expand Down

0 comments on commit 38a3762

Please sign in to comment.