Install gitleaks binary from github releases
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Sven Seeberg 2024-06-19 10:01:36 +02:00
parent dd09aab113
commit 2ee0cbf0a3
Signed by: sven.seeberg
GPG key ID: 29559DD5A83806B5

View file

@ -15,6 +15,8 @@ ENV OPENSSH_KEYGEN_VERSION="9.7_p1-r3"
ENV PRE_COMMIT_VERSION="3.7.1" ENV PRE_COMMIT_VERSION="3.7.1"
# renovate: datasource=rubygems depName=mdl versioning=ruby # renovate: datasource=rubygems depName=mdl versioning=ruby
ENV MDL_VERSION="0.13.0" ENV MDL_VERSION="0.13.0"
# renovate: datasource=repology depName=gitleaks versioning=loose
ENV GITLEAKS_VERSION="v8.18.4"
RUN apk add --update --no-cache \ RUN apk add --update --no-cache \
build-base="${BUILD_BASE_VERSION}" \ build-base="${BUILD_BASE_VERSION}" \
@ -27,6 +29,8 @@ RUN apk add --update --no-cache \
pip install --no-cache-dir pre-commit=="${PRE_COMMIT_VERSION}" && \ pip install --no-cache-dir pre-commit=="${PRE_COMMIT_VERSION}" && \
gem install --no-document mdl -v "${MDL_VERSION}" && \ gem install --no-document mdl -v "${MDL_VERSION}" && \
mkdir /data && \ mkdir /data && \
git config --global --add safe.directory /data git config --global --add safe.directory /data && \
wget https://github.com/gitleaks/gitleaks/releases/download/${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz && \
tar xf gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz && cp gitleaks /usr/bin/
WORKDIR /data WORKDIR /data