We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8221d2f commit bc71257Copy full SHA for bc71257
1 file changed
.github/workflows/sonar.yml
@@ -1,10 +1,11 @@
1
on:
2
# Triggered on completion of the Build workflow so we can consume its
3
- # coverage artifact. workflow_run fires regardless of whether the upstream
4
- # was triggered by push or pull_request.
+ # coverage artifact. Limited to runs against main so we only scan the
+ # mainline; PR builds don't trigger Sonar.
5
workflow_run:
6
workflows: ["Build"]
7
types: [completed]
8
+ branches: [main]
9
10
name: SonarCloud Scan
11
0 commit comments