Skip to content

Commit bc71257

Browse files
committed
update sonar workflow
1 parent 8221d2f commit bc71257

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/sonar.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
on:
22
# 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.
3+
# coverage artifact. Limited to runs against main so we only scan the
4+
# mainline; PR builds don't trigger Sonar.
55
workflow_run:
66
workflows: ["Build"]
77
types: [completed]
8+
branches: [main]
89

910
name: SonarCloud Scan
1011

0 commit comments

Comments
 (0)