Added entrypoint

This commit is contained in:
2025-11-26 12:31:46 +01:00
parent cc48f1ccb4
commit 30e3d52153
2 changed files with 8 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ WORKDIR /opt/hulud_check
RUN apt-get update && apt-get install -y ripgrep git curl
ADD check_gitlab.py .
ADD pyproject.toml .
ADD entrypoint.sh .
RUN pip3 install .
COPY --chmod=755 <<EOF /opt/hulud_check/entrypoint.sh

7
entrypoint.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
echo "Get most recent defintions"
curl -s https://raw.githubusercontent.com/wiz-sec-public/wiz-research-iocs/refs/heads/main/reports/shai-hulud-2-packages.csv > sha1-hulud-2-packages.csv
echo "Format patterns"
tail -n +2 sha1-hulud-2-packages.csv | awk -F ',' '{print $1}' > patternfile
echo "Running check"
python3 -u check_gitlab.py