From: Julien HENRY Date: Tue, 24 Sep 2024 16:37:46 +0000 (+0200) Subject: SONAR-23139 Recommend to use a locked major version of the Docker image X-Git-Tag: 10.7.0.96327~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=844056dd3ea11d202895154e6c83068baef458c1;p=sonarqube.git SONAR-23139 Recommend to use a locked major version of the Docker image Co-authored-by: Benjamin Raymond <31401273+7PH@users.noreply.github.com> --- diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap index 4097c7460d0..607a8fbc50b 100644 --- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap @@ -369,7 +369,7 @@ exports[`should follow and complete all steps: Maven: pom.xml 1`] = ` exports[`should follow and complete all steps: Other: gitlab-ci.yml 1`] = ` "image: - name: sonarsource/sonar-scanner-cli:latest + name: sonarsource/sonar-scanner-cli:11 entrypoint: [""] variables: diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx b/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx index e9f208a7161..161620d17e8 100644 --- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx @@ -85,7 +85,7 @@ const BUILD_TOOL_SPECIFIC: { }, [BuildTools.Other]: { image: ` - name: sonarsource/sonar-scanner-cli:latest + name: sonarsource/sonar-scanner-cli:11 entrypoint: [""]`, script: () => ` - sonar-scanner -Dsonar.host.url="\${SONAR_HOST_URL}"`,