From 844056dd3ea11d202895154e6c83068baef458c1 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 24 Sep 2024 18:37:46 +0200 Subject: [PATCH] SONAR-23139 Recommend to use a locked major version of the Docker image Co-authored-by: Benjamin Raymond <31401273+7PH@users.noreply.github.com> --- .../__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap | 2 +- .../js/components/tutorials/gitlabci/commands/PipeCommand.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}"`, -- 2.39.5