Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ USER zap
# Ensure the workspace directory exists and is owned by our zap user
RUN mkdir -p /zap/wrk \
&& chown -R zap:zap /zap/wrk

# Declare it as a volume so runtimes can mount it
VOLUME ["/zap/wrk"]

# Ensure the zap-config directory exists and is owned by our zap user
RUN mkdir -p /zap/wrk/zap-config \
&& chown -R zap:zap /zap/wrk/zap-config

# Configure environment for ZAP
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 \
PATH=${JAVA_HOME}/bin:/zap:${PATH} \
Expand Down
2 changes: 1 addition & 1 deletion ci/tasks/zap-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ run:
CREDS_JSON="$CREDHB_CRED"

# Copy config file to expected directory
mkdir -p /zap/wrk/zap-config && cp ((repo_name))/ci/zap-config/zap.yaml /zap/wrk/zap-config/zap.yaml
cp ((repo_name))/ci/zap-config/zap.yaml /zap/wrk/zap-config/zap.yaml

# Filter URLs for this context
mapfile -t URLS < <(
Expand Down