Skip to content

Commit d59310e

Browse files
committed
fix: Use git config --global --add safe.directory /app in docker files
1 parent 114b2e1 commit d59310e

File tree

14 files changed

+14
-0
lines changed

14 files changed

+14
-0
lines changed

src/wafp/fuzzers/catalog/api_fuzzer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LABEL name="APIFuzzer"
77

88
RUN apt-get update \
99
&& apt-get install -y git libcurl4-openssl-dev libssl-dev build-essential \
10+
&& git config --global --add safe.directory /app \
1011
&& git clone $repository /app \
1112
&& cd /app \
1213
&& git checkout $revision \

src/wafp/fuzzers/catalog/cats/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN apt-get update \
99
&& groupadd test \
1010
&& useradd --gid test --create-home --home-dir /home/test test \
1111
&& apt-get install -y git \
12+
&& git config --global --add safe.directory /app \
1213
&& git clone $repository /app \
1314
&& chown test -R /app \
1415
&& cd /app \

src/wafp/fuzzers/catalog/fuzz_lightyear/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LABEL name="fuzz-lightyear"
77

88
RUN apt-get update \
99
&& apt-get install -y git \
10+
&& git config --global --add safe.directory /app \
1011
&& git clone $repository /app \
1112
&& cd /app \
1213
&& git checkout $revision \

src/wafp/fuzzers/catalog/fuzzy_swagger/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LABEL name="Fuzzy-swagger"
77

88
RUN apt-get update \
99
&& apt-get install -y git \
10+
&& git config --global --add safe.directory /app \
1011
&& git clone $repository /app \
1112
&& cd /app \
1213
&& git checkout $revision \

src/wafp/fuzzers/catalog/restler/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ ARG repository=https://github.com/microsoft/restler-fuzzer.git
44
ARG revision=a0ba706a2156e31cf6053b639b57aa1b9acad442
55

66
RUN apk add --no-cache git python3 \
7+
&& git config --global --add safe.directory /app \
78
&& git clone $repository /app \
89
&& cd /app \
910
&& git checkout $revision \

src/wafp/fuzzers/catalog/swagger_conformance/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LABEL name="swagger-conformance"
77

88
RUN apt-get update \
99
&& apt-get install -y git \
10+
&& git config --global --add safe.directory /app \
1011
&& git clone $repository /app \
1112
&& cd /app \
1213
&& git checkout $revision \

src/wafp/fuzzers/catalog/swagger_fuzzer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ LABEL name="Swagger-Fuzzer"
77

88
RUN apt-get update \
99
&& apt-get install -y git \
10+
&& git config --global --add safe.directory /app \
1011
&& git clone $repository /app \
1112
&& cd /app \
1213
&& git checkout $revision \

src/wafp/fuzzers/catalog/tnt_fuzzer/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ARG revision=c1b333ced51d515e45827d7817a8004cadb98d45
66
LABEL name="TnT-Fuzzer"
77

88
RUN apk add --no-cache git \
9+
&& git config --global --add safe.directory /app \
910
# The latest PyPI release is outdated - Python 2 only
1011
# Therefore building it manually, similarly to their Dockerfile
1112
# https://github.com/Teebytes/TnT-Fuzzer/blob/master/Dockerfile

src/wafp/targets/catalog/age_of_empires_2_api/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN apt-get update \
99
&& groupadd test \
1010
&& useradd --gid test --create-home --home-dir /home/test test \
1111
&& apt-get install -y git \
12+
&& git config --global --add safe.directory /app-tmp \
1213
&& git clone $repository /app-tmp \
1314
&& chown test -R /app-tmp \
1415
&& cd /app-tmp \

src/wafp/targets/catalog/httpbin/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt-get update \
1212
&& useradd --gid test --create-home --home-dir /home/test test \
1313
&& apt-get install -y git python3-pip \
1414
&& pip3 install --no-cache-dir -r /frozen-requirements.txt \
15+
&& git config --global --add safe.directory /app \
1516
&& git clone $repository /app \
1617
&& cd /app \
1718
&& git checkout $revision \

0 commit comments

Comments
 (0)