From 5fdf7f78af70dea876f5fa0c2524364b87e05525 Mon Sep 17 00:00:00 2001 From: Benjamin Raymond <31401273+7PH@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:33:10 +0000 Subject: [PATCH] SQCPPGHA-8 Upgrade all recommended GitHub Action versions --- README.md | 8 ++++---- action.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1b5227c..e14742e 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ jobs: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 - name: Install sonar-scanner and build-wrapper - uses: sonarsource/sonarqube-github-c-cpp@v1 + uses: sonarsource/sonarqube-github-c-cpp@v2 env: SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} SONAR_ROOT_CERT: ${{ secrets.SONAR_ROOT_CERT }} @@ -78,7 +78,7 @@ If you are using SonarQube 10.5 or earlier, use `sonar.cfamily.build-wrapper-out You can change the `build-wrapper` and `sonar-scanner` installation path by using the optional input `installation-path` like this: ```yaml -uses: sonarsource/sonarqube-github-c-cpp@v1 +uses: sonarsource/sonarqube-github-c-cpp@v2 with: installation-path: my/custom/directory/path ``` @@ -86,7 +86,7 @@ Also, the absolute paths to the installed build-wrapper and sonar-scanner binari Moreover, by default the action will cache sonar-scanner installation. However, you can disable caching by using the optional input: `cache-binaries` like this: ```yaml -uses: sonarsource/sonarqube-github-c-cpp@v1 +uses: sonarsource/sonarqube-github-c-cpp@v2 with: cache-binaries: false ``` @@ -94,7 +94,7 @@ with: If your SonarQube server uses a self-signed certificate, you can pass a root certificate (in PEM format) to the java certificate store: ```yaml -uses: sonarsource/sonarqube-github-c-cpp@v1 +uses: sonarsource/sonarqube-github-c-cpp@v2 env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} diff --git a/action.yml b/action.yml index c0d3202..e24d545 100644 --- a/action.yml +++ b/action.yml @@ -64,7 +64,7 @@ runs: - name: Cache sonar-scanner installation id: cache-sonar-tools if: inputs.cache-binaries == 'true' - uses: actions/cache@v3 + uses: actions/cache@v4 env: # The default value is 60mins. Reaching timeout is treated the same as a cache miss. SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1