From 7bf7a21f67396126bd43101107ea7f6e3a185dd2 Mon Sep 17 00:00:00 2001 From: Benjamin Raymond <31401273+7PH@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:17:15 +0000 Subject: [PATCH] SCCPPGHA-9 Upgrade all recommended GitHub Action versions --- .github/workflows/tests.yml | 10 +++++----- .github/workflows/version_update.yml | 2 +- README.md | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4c9f7a5..7ec25c8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: name: create_install_path.sh script test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis @@ -123,7 +123,7 @@ jobs: SONAR_SCANNER_URL_MACOSX_AARCH64: 'https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-vX.Y.Z.MMMM-macosx-aarch64.zip' SONAR_SCANNER_SHA_MACOSX_AARCH64: 'DOWNLOAD-SHA-MACOSX-AARCH64' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis @@ -256,7 +256,7 @@ jobs: name: download.sh script test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis @@ -326,7 +326,7 @@ jobs: name: fetch_latest_version.sh script test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Test script @@ -378,7 +378,7 @@ jobs: exit 1 fi - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis diff --git a/.github/workflows/version_update.yml b/.github/workflows/version_update.yml index 058e902..6e9b43c 100644 --- a/.github/workflows/version_update.yml +++ b/.github/workflows/version_update.yml @@ -10,7 +10,7 @@ jobs: steps: - run: sudo apt install -y jq - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: main persist-credentials: true diff --git a/README.md b/README.md index fd262b4..4aa3019 100644 --- a/README.md +++ b/README.md @@ -47,12 +47,12 @@ jobs: env: BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 - name: Install sonar-scanner and build-wrapper - uses: sonarsource/sonarcloud-github-c-cpp@v2 + uses: sonarsource/sonarcloud-github-c-cpp@v3 - name: Run build-wrapper run: | # here goes your compilation wrapped with build-wrapper; See https://docs.sonarcloud.io/advanced-setup/languages/c-c-objective-c/#analysis-steps-using-build-wrapper for more information @@ -68,7 +68,7 @@ jobs: You can change the `build-wrapper` and `sonar-scanner` installation path by using the optional input `installation-path` like this: ```yaml -uses: sonarsource/sonarcloud-github-c-cpp@v2 +uses: sonarsource/sonarcloud-github-c-cpp@v3 with: installation-path: my/custom/directory/path ``` @@ -76,7 +76,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/sonarcloud-github-c-cpp@v2 +uses: sonarsource/sonarcloud-github-c-cpp@v3 with: cache-binaries: false ```