Skip to content

Commit b80b84e

Browse files
committed
Do not run SonarCloud scans on dependabot commits
1 parent 6c1cff8 commit b80b84e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ jobs:
5353

5454
- name: SonarCloud Scan
5555
uses: SonarSource/sonarcloud-github-action@master
56-
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && matrix.node-version == '20.x'
56+
if: |
57+
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
58+
matrix.node-version == '20.x' &&
59+
github.actor != 'dependabot[bot]'
5760
env:
5861
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5962
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)