Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit a69a8ed

Browse files
SCSCANGHA-5 Update the base image
1 parent f1d5a2a commit a69a8ed

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM sonarsource/sonar-scanner-cli:5.0
1+
FROM sonarsource/sonar-scanner-cli:10.0
22

3-
LABEL version="0.0.1" \
3+
LABEL version="2.2.0" \
44
repository="https://github.com/sonarsource/sonarcloud-github-action" \
55
homepage="https://github.com/sonarsource/sonarcloud-github-action" \
66
maintainer="SonarSource" \
@@ -19,9 +19,14 @@ ENV LC_ALL="C.UTF-8"
1919

2020
WORKDIR /opt
2121

22+
# GitHub actions should be run under ROOT
23+
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#docker-container-filesystem
24+
USER 0
25+
2226
# Prepare entrypoint
2327
COPY entrypoint.sh /entrypoint.sh
2428
RUN chmod +x /entrypoint.sh
2529
COPY cleanup.sh /cleanup.sh
2630
RUN chmod +x /cleanup.sh
31+
2732
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)