From 7290ab27fc4802d08c1658024352165388d3f04a Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:04:57 -0300 Subject: [PATCH 1/3] ci: remove push trigger and rename security-gate.yaml to security-gate.yml --- .github/workflows/{security-gate.yaml => security-gate.yml} | 4 ---- 1 file changed, 4 deletions(-) rename .github/workflows/{security-gate.yaml => security-gate.yml} (94%) diff --git a/.github/workflows/security-gate.yaml b/.github/workflows/security-gate.yml similarity index 94% rename from .github/workflows/security-gate.yaml rename to .github/workflows/security-gate.yml index 9c13651..1a5c5b8 100644 --- a/.github/workflows/security-gate.yaml +++ b/.github/workflows/security-gate.yml @@ -1,10 +1,6 @@ name: Security Gate - LESIS on: - push: - branches: - - main - - develop pull_request: branches: - main From 7a0a987a179df4dd5d66ef3a8ee3584e7957ddfa Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:29:02 -0300 Subject: [PATCH 2/3] fix(docker): install missing DateTime dependencies for Perl --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2eb10d5..c7ba926 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,13 @@ FROM perl:5.40 COPY . /usr/src/sentra WORKDIR /usr/src/sentra +RUN apt-get update && apt-get install -y \ + libdatetime-perl \ + libssl-dev \ + libexpat1-dev \ + build-essential \ + && rm -rf /var/lib/apt/lists/* + RUN cpanm --installdeps . -ENTRYPOINT [ "perl", "./sentra.pl" ] \ No newline at end of file +ENTRYPOINT [ "perl", "./sentra.pl" ] From a3e4408e9999debf66be02d61a07df415c8ffa65 Mon Sep 17 00:00:00 2001 From: priv <140729444+scriptprivate@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:44:50 -0300 Subject: [PATCH 3/3] build(docker): switch base image to ubuntu:latest and add cpanminus --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c7ba926..54603e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM perl:5.40 +FROM ubuntu:latest COPY . /usr/src/sentra WORKDIR /usr/src/sentra RUN apt-get update && apt-get install -y \ + cpanminus \ libdatetime-perl \ libssl-dev \ libexpat1-dev \