From d23c3aaef7fe7e61d169e499e4c6602df1f00dcd Mon Sep 17 00:00:00 2001 From: Daniel van der Ploeg Date: Mon, 22 Jan 2024 15:08:32 +1030 Subject: [PATCH 1/2] fix: hold back git packages related: https://github.com/actions/runner-images/issues/6775#issuecomment-1359785199 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index bd9f5b8..e951aad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ ARG PHP_VERSION FROM php:${PHP_VERSION} as standards-runtime +RUN apt-mark hold git +RUN apt-mark hold git-man + RUN apt-get update RUN apt-get install -y unzip libpng-dev libicu-dev libxslt-dev jq git libzip-dev wget python3-venv RUN apt-get clean From 2df83d2b7ac1db7f7db8f8b69dac70633846a6f3 Mon Sep 17 00:00:00 2001 From: Daniel van der Ploeg Date: Mon, 22 Jan 2024 15:55:30 +1030 Subject: [PATCH 2/2] fix: disable safe directory check --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index e951aad..7722789 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ ARG PHP_VERSION FROM php:${PHP_VERSION} as standards-runtime -RUN apt-mark hold git -RUN apt-mark hold git-man - RUN apt-get update RUN apt-get install -y unzip libpng-dev libicu-dev libxslt-dev jq git libzip-dev wget python3-venv RUN apt-get clean @@ -29,9 +26,7 @@ RUN python3 -m venv /venv RUN /venv/bin/pip install --no-cache-dir -r /requirements.txt # Allow git access to mounted build directories -RUN git config --global --add safe.directory /build +RUN git config --global --add safe.directory '*' RUN mkdir -p /opt/atlassian/pipelines/agent/build -RUN git config --global --add safe.directory /opt/atlassian/pipelines/agent/build -RUN git config --global --add safe.directory /github/workspace ENTRYPOINT ["/pipe.py"]