Skip to content

Commit 6f0bce8

Browse files
authored
Add label to skip Sonar coverage (#5094)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent d3bdeb7 commit 6f0bce8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/labels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@
4141
- name: "Z-Flaky-Test"
4242
description: "A test is raising false alarms"
4343
color: "ededed"
44+
- name: "Z-Skip-Coverage"
45+
description: "Skip SonarQube coverage for this PR"
46+
color: "ededed"

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,14 @@ jobs:
7575
7676
- name: "🩻 SonarCloud Scan"
7777
id: sonarcloud
78-
uses: matrix-org/sonarcloud-workflow-action@820f7c2e9e94ba9e35add0f739691e5c7e23fa25 # v4.0
78+
uses: matrix-org/sonarcloud-workflow-action@a8ca17dec09a9473b6b2b5156c7c130382934750 # v4.0
7979
# workflow_run fails report against the develop commit always, we don't want that for PRs
8080
continue-on-error: ${{ github.event.workflow_run.head_branch != 'develop' }}
8181
with:
8282
skip_checkout: true
8383
repository: ${{ github.event.workflow_run.head_repository.full_name }}
8484
is_pr: ${{ github.event.workflow_run.event == 'pull_request' }}
85+
skip_coverage_label: Z-Skip-Coverage
8586
version_cmd: "cat package.json | jq -r .version"
8687
branch: ${{ github.event.workflow_run.head_branch }}
8788
revision: ${{ github.event.workflow_run.head_sha }}

0 commit comments

Comments
 (0)