From 6c92dc36709458d7d6e1ed85a661f492d074301a Mon Sep 17 00:00:00 2001 From: "antoine.vinot" Date: Wed, 22 May 2024 11:17:24 +0200 Subject: [PATCH] SCSCANGHA-5 Update the base image --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7e9d66..3e7aee8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM sonarsource/sonar-scanner-cli:5.0 +FROM sonarsource/sonar-scanner-cli:10.0 -LABEL version="0.0.1" \ +LABEL version="2.2.0" \ repository="https://github.com/sonarsource/sonarcloud-github-action" \ homepage="https://github.com/sonarsource/sonarcloud-github-action" \ maintainer="SonarSource" \ @@ -19,9 +19,14 @@ ENV LC_ALL="C.UTF-8" WORKDIR /opt +# GitHub actions should be run under ROOT +# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#docker-container-filesystem +USER 0 + # Prepare entrypoint COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh COPY cleanup.sh /cleanup.sh RUN chmod +x /cleanup.sh + ENTRYPOINT ["/entrypoint.sh"]