Skip to content

Commit 754f54f

Browse files
authored
SCCPPGHA-9 Upgrade all recommended GitHub Action versions (#61)
1 parent 816b182 commit 754f54f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: create_install_path.sh script test
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
1717

@@ -123,7 +123,7 @@ jobs:
123123
SONAR_SCANNER_URL_MACOSX_AARCH64: 'https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-vX.Y.Z.MMMM-macosx-aarch64.zip'
124124
SONAR_SCANNER_SHA_MACOSX_AARCH64: 'DOWNLOAD-SHA-MACOSX-AARCH64'
125125
steps:
126-
- uses: actions/checkout@v3
126+
- uses: actions/checkout@v4
127127
with:
128128
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
129129

@@ -256,7 +256,7 @@ jobs:
256256
name: download.sh script test
257257
runs-on: ubuntu-latest
258258
steps:
259-
- uses: actions/checkout@v3
259+
- uses: actions/checkout@v4
260260
with:
261261
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
262262

@@ -326,7 +326,7 @@ jobs:
326326
name: fetch_latest_version.sh script test
327327
runs-on: ubuntu-latest
328328
steps:
329-
- uses: actions/checkout@v3
329+
- uses: actions/checkout@v4
330330
with:
331331
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
332332
- name: Test script
@@ -378,7 +378,7 @@ jobs:
378378
exit 1
379379
fi
380380
381-
- uses: actions/checkout@v3
381+
- uses: actions/checkout@v4
382382
with:
383383
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
384384

.github/workflows/version_update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- run: sudo apt install -y jq
1212

13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
ref: main
1616
persist-credentials: true

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ jobs:
4747
env:
4848
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
4949
steps:
50-
- uses: actions/checkout@v3
50+
- uses: actions/checkout@v4
5151
with:
5252
# Disabling shallow clone is recommended for improving relevancy of reporting
5353
fetch-depth: 0
5454
- name: Install sonar-scanner and build-wrapper
55-
uses: sonarsource/sonarcloud-github-c-cpp@v2
55+
uses: sonarsource/sonarcloud-github-c-cpp@v3
5656
- name: Run build-wrapper
5757
run: |
5858
# 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,15 +68,15 @@ jobs:
6868
You can change the `build-wrapper` and `sonar-scanner` installation path by using the optional input `installation-path` like this:
6969

7070
```yaml
71-
uses: sonarsource/sonarcloud-github-c-cpp@v2
71+
uses: sonarsource/sonarcloud-github-c-cpp@v3
7272
with:
7373
installation-path: my/custom/directory/path
7474
```
7575
Also, the absolute paths to the installed build-wrapper and sonar-scanner binaries are returned as outputs from the action.
7676

7777
Moreover, by default the action will cache sonar-scanner installation. However, you can disable caching by using the optional input: `cache-binaries` like this:
7878
```yaml
79-
uses: sonarsource/sonarcloud-github-c-cpp@v2
79+
uses: sonarsource/sonarcloud-github-c-cpp@v3
8080
with:
8181
cache-binaries: false
8282
```

0 commit comments

Comments
 (0)