Skip to content

Commit 63d0fed

Browse files
committed
Disable Sonarcloud stage for dependabot
1 parent 4beed88 commit 63d0fed

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ name: SonarCloud
99
jobs:
1010
sonarcloud:
1111
runs-on: ubuntu-latest
12+
if: github.actor != 'dependabot' # Dependabot can't read the Sonarcloud secret
1213
steps:
1314
- uses: actions/checkout@v4
1415
with:
@@ -30,6 +31,7 @@ jobs:
3031
C:
3132
name: C Code Coverage
3233
runs-on: ubuntu-22.04
34+
if: github.actor != 'dependabot' # Dependabot can't read the Sonarcloud secret
3335
steps:
3436
- uses: actions/checkout@v4
3537
with:
@@ -52,14 +54,14 @@ jobs:
5254
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5355
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_C }}
5456
run: sonar-scanner
55-
-X
56-
-Dsonar.organization=swift-nav
57-
-Dsonar.projectName=libsbp-c
58-
-Dsonar.projectKey=swift-nav_libsbp_c
59-
-Dsonar.verbose=true
60-
-Dsonar.login=${{ secrets.SONAR_TOKEN_C }}
61-
-Dsonar.cfamily.threads=4
62-
-Dsonar.cfamily.llvm-cov.reportPath=./build/ccov/coverage.txt
63-
-Dsonar.sources=c/src/,c/include/
64-
-Dsonar.tests=c/test/
65-
-Dsonar.cfamily.build-wrapper-output=./bw-output
57+
-X
58+
-Dsonar.organization=swift-nav
59+
-Dsonar.projectName=libsbp-c
60+
-Dsonar.projectKey=swift-nav_libsbp_c
61+
-Dsonar.verbose=true
62+
-Dsonar.login=${{ secrets.SONAR_TOKEN_C }}
63+
-Dsonar.cfamily.threads=4
64+
-Dsonar.cfamily.llvm-cov.reportPath=./build/ccov/coverage.txt
65+
-Dsonar.sources=c/src/,c/include/
66+
-Dsonar.tests=c/test/
67+
-Dsonar.cfamily.build-wrapper-output=./bw-output

0 commit comments

Comments
 (0)