From 29727a22e1cac18e1b7e7c1aa23aacf120f7d373 Mon Sep 17 00:00:00 2001 From: Ian Hulsbus Date: Tue, 5 Dec 2023 21:43:10 +0100 Subject: [PATCH 1/2] Set UID to 1001 as it is the github runner default user --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index c6b7123..39cfdff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,4 +9,6 @@ RUN wget -O - -q https://raw.githubusercontent.com/haya14busa/bump/master/instal COPY entrypoint.sh /entrypoint.sh +USER 1001 + ENTRYPOINT ["/entrypoint.sh"] From 7ad93f6dbed0ee14ac07671cb6821b0b4cd22bd9 Mon Sep 17 00:00:00 2001 From: haya14busa Date: Fri, 8 Dec 2023 21:51:41 +0900 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 39cfdff..0c647af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,7 @@ RUN wget -O - -q https://raw.githubusercontent.com/haya14busa/bump/master/instal COPY entrypoint.sh /entrypoint.sh +# set the runtime user to a non-root user and the same user as used by the github runners for actions runs. USER 1001 ENTRYPOINT ["/entrypoint.sh"]