From fed3555e670e7a40c48412ac4e981fd772ce847e Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 14 May 2024 14:38:18 +0200 Subject: [PATCH] SQSCANGHA-21 Update the base image --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 882c681..a38bed0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ -FROM sonarsource/sonar-scanner-cli:5.0.1 +FROM sonarsource/sonar-scanner-cli:10.0 -LABEL version="2.0.1" \ +LABEL version="2.1.0" \ repository="https://github.com/sonarsource/sonarqube-scan-action" \ homepage="https://github.com/sonarsource/sonarqube-scan-action" \ maintainer="SonarSource" \ @@ -9,9 +9,13 @@ LABEL version="2.0.1" \ com.github.actions.icon="check" \ com.github.actions.color="green" +# 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 COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh COPY cleanup.sh /cleanup.sh RUN chmod +x /cleanup.sh + ENTRYPOINT ["/entrypoint.sh"]