From b19fa90cfac72cd60436408c8c20a93349776c15 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 24 Sep 2024 17:21:17 +0200 Subject: [PATCH] SONAR-23139 Update the GitHub action to latest release --- .../__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap | 4 ++-- .../js/components/tutorials/github-action/commands/Others.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap index c9ac2d264a7..f80ef0f9d56 100644 --- a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap +++ b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GithubActionTutorial-it.tsx.snap @@ -100,7 +100,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - uses: sonarsource/sonarqube-scan-action@v2 + - uses: sonarsource/sonarqube-scan-action@v3 env: SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} @@ -133,7 +133,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - uses: sonarsource/sonarqube-scan-action@v2 + - uses: sonarsource/sonarqube-scan-action@v3 env: SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/Others.tsx b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/Others.tsx index 91f0ba3839d..e3659384edd 100644 --- a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/Others.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/Others.tsx @@ -34,7 +34,7 @@ export interface OthersProps { function otherYamlSteps(branchesEnabled: boolean) { let output = ` - - uses: sonarsource/sonarqube-scan-action@v2 + - uses: sonarsource/sonarqube-scan-action@v3 env: SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }} -- 2.39.5