Skip to content

Commit

Permalink
Don't run validate.py after daily scans
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Nov 25, 2024
1 parent a8d21e4 commit f6ec695
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FROM selenium/standalone-${BROWSER}
ARG UID
ARG GID
ARG UNAME
ARG VALIDATE

USER root

Expand Down Expand Up @@ -40,7 +39,7 @@ WORKDIR $HOME
COPY requirements.txt .
RUN pip3 install --user --break-system-packages -r requirements.txt

COPY crawler.py validate.py docker-entry.sh $HOME/
COPY crawler.py docker-entry.sh $HOME/
COPY lib $HOME/lib
COPY .git $HOME/.git
COPY domain-lists $HOME/domain-lists
Expand Down
8 changes: 1 addition & 7 deletions docker-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@ if ! ./crawler.py --out-dir "$OUTPATH" --pb-dir "$PBPATH" "$@" ; then
exit 1
fi

[ "$VALIDATE" != "1" ] && exit 0

# validate the output
if ! ./validate.py "$OUTPATH"/results.json >/dev/null; then
echo "results.json is invalid"
exit 1
fi
exit 0
1 change: 0 additions & 1 deletion runscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ echo "Building Docker container..."
# same bits in the container (this prevents permissions issues in the out/ folder)
if ! docker build \
--build-arg BROWSER="$BROWSER" \
--build-arg VALIDATE="$GIT_PUSH" \
--build-arg UID="$(id -u "$USER")" \
--build-arg GID="$(id -g "$USER")" \
--build-arg UNAME="$USER" \
Expand Down

0 comments on commit f6ec695

Please sign in to comment.