Skip to content

Commit 9cd3c2b

Browse files
authored
chore(BAC-20): replace the deprecated sonar action (#152)
1 parent 9980740 commit 9cd3c2b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-python.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ jobs:
314314
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
315315
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
316316
if: '!inputs.skip-sonar && github.event_name != ''pull_request'''
317-
uses: SonarSource/sonarcloud-github-action@master
317+
uses: SonarSource/sonarqube-scan-action@v4
318318
with:
319319
args: |-
320320
-Dsonar.python.coverage.reportPaths=coverage.xml
@@ -326,7 +326,7 @@ jobs:
326326
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
327327
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
328328
if: '!inputs.skip-sonar && github.event_name != ''push'''
329-
uses: SonarSource/sonarcloud-github-action@master
329+
uses: SonarSource/sonarqube-scan-action@v4
330330
with:
331331
args: |-
332332
-Dsonar.python.coverage.reportPaths=coverage.xml

pkg/workflows/build-python.cue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ common.#workflow & {
252252
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
253253
}
254254
if: "!inputs.skip-sonar && github.event_name != 'pull_request'"
255-
uses: "SonarSource/sonarcloud-github-action@master"
255+
uses: "SonarSource/sonarqube-scan-action@v4"
256256
with: {
257257
args: """
258258
-Dsonar.python.coverage.reportPaths=coverage.xml
@@ -269,7 +269,7 @@ common.#workflow & {
269269
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
270270
}
271271
if: "!inputs.skip-sonar && github.event_name != 'push'"
272-
uses: "SonarSource/sonarcloud-github-action@master"
272+
uses: "SonarSource/sonarqube-scan-action@v4"
273273
with: {
274274
args: """
275275
-Dsonar.python.coverage.reportPaths=coverage.xml

0 commit comments

Comments
 (0)