Skip to content

Commit

Permalink
chore(BAC-20): replace the deprecated sonar action (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexb-y42 authored Dec 20, 2024
1 parent 9980740 commit 9cd3c2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: '!inputs.skip-sonar && github.event_name != ''pull_request'''
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@v4
with:
args: |-
-Dsonar.python.coverage.reportPaths=coverage.xml
Expand All @@ -326,7 +326,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: '!inputs.skip-sonar && github.event_name != ''push'''
uses: SonarSource/sonarcloud-github-action@master
uses: SonarSource/sonarqube-scan-action@v4
with:
args: |-
-Dsonar.python.coverage.reportPaths=coverage.xml
Expand Down
4 changes: 2 additions & 2 deletions pkg/workflows/build-python.cue
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ common.#workflow & {
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
}
if: "!inputs.skip-sonar && github.event_name != 'pull_request'"
uses: "SonarSource/sonarcloud-github-action@master"
uses: "SonarSource/sonarqube-scan-action@v4"
with: {
args: """
-Dsonar.python.coverage.reportPaths=coverage.xml
Expand All @@ -269,7 +269,7 @@ common.#workflow & {
SONAR_TOKEN: "${{ secrets.SONAR_TOKEN }}"
}
if: "!inputs.skip-sonar && github.event_name != 'push'"
uses: "SonarSource/sonarcloud-github-action@master"
uses: "SonarSource/sonarqube-scan-action@v4"
with: {
args: """
-Dsonar.python.coverage.reportPaths=coverage.xml
Expand Down

0 comments on commit 9cd3c2b

Please sign in to comment.