Added entrypoint
This commit is contained in:
@@ -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
7
entrypoint.sh
Executable 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
|
||||
Reference in New Issue
Block a user