Skip to content

Commit 8fd3ddb

Browse files
replace deprecated sonar scan action (#503)
* replace deprecated sonar scan action * change condition to avoid forks from running the job
1 parent c3add93 commit 8fd3ddb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
sonarCloudTrigger:
7575
needs: build
7676
name: SonarCloud Trigger
77-
if: github.event_name != 'pull_request'
77+
if: github.repository == 'creativeprojects/resticprofile'
7878
runs-on: ubuntu-latest
7979
steps:
8080
- name: Clone Repository
@@ -90,7 +90,7 @@ jobs:
9090
run: ls -R
9191

9292
- name: Analyze with SonarCloud
93-
uses: sonarsource/sonarcloud-github-action@master
93+
uses: SonarSource/sonarqube-scan-action@v5
9494
env:
9595
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9696
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)