Skip to content

Commit 22fba35

Browse files
committed
ci: replace deprecated SonarCloud action and bump github-script
The SonarScanner (sonarcloud-github-action) is deprecated in favour of sonarqube-scan-action, and its internals still pull actions/cache@v4, which targets the now-deprecated Node 20 runtime. Switch to SonarSource/sonarqube-scan-action@v8 (runs on Node 24), setting SONAR_HOST_URL to https://sonarcloud.io since the generic scan action has no SonarCloud default; projectKey/organization stay in sonar-project.properties. Also bump actions/github-script v6 (Node 16) to v9 (Node 24) in deploy.yml, the remaining action on a deprecated runtime.
1 parent 1b5cfe2 commit 22fba35

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ jobs:
6060
run: |
6161
sed -i 's/\/home\/runner\/work\/connect-python-openapi-client\/connect-python-openapi-client\//\/github\/workspace\//g' coverage.xml
6262
- name: SonarCloud
63-
uses: SonarSource/sonarcloud-github-action@master
63+
uses: SonarSource/sonarqube-scan-action@v8
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
67+
SONAR_HOST_URL: https://sonarcloud.io
6768
- name: Wait sonar to process report
6869
uses: jakejarvis/wait-action@master
6970
with:

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
poetry run pytest
2727
- name: Extract tag name
28-
uses: actions/github-script@v6
28+
uses: actions/github-script@v9
2929
id: tag
3030
with:
3131
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)