File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2929 ca-certificates \
3030 && rm -rf /var/lib/apt/lists/*
3131
32+ # Install Gitleaks (secret scanner)
33+ RUN GITLEAKS_VERSION="8.18.4" && \
34+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_amd64.tar.gz" | \
35+ tar xz -C /usr/local/bin gitleaks && \
36+ chmod +x /usr/local/bin/gitleaks
37+
3238# Create non-root user for security
3339RUN groupadd -r agentuser && useradd -r -g agentuser -u 1000 agentuser
3440
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ RUN wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --
2424# Install TruffleHog
2525RUN curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin
2626
27+ # Install Gitleaks (secret scanner)
28+ RUN GITLEAKS_VERSION="8.18.4" && \
29+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_amd64.tar.gz" | \
30+ tar xz -C /usr/local/bin gitleaks && \
31+ chmod +x /usr/local/bin/gitleaks
32+
2733# Install unzip (required for Nuclei)
2834RUN apt-get update && apt-get install -y --no-install-recommends \
2935 unzip \
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ RUN go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest && \
2424# Verify Nuclei installation
2525RUN nuclei -version
2626
27+ # Install Gitleaks (secret scanner)
28+ RUN GITLEAKS_VERSION="8.18.4" && \
29+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_amd64.tar.gz" | \
30+ tar xz -C /usr/local/bin gitleaks && \
31+ chmod +x /usr/local/bin/gitleaks
32+
2733# Install ZAP (will use Docker-in-Docker)
2834# ZAP will be pulled at runtime via Docker
2935
You can’t perform that action at this time.
0 commit comments