From 01b646afa7b7ac569b59d3cd554c736f19926b2a Mon Sep 17 00:00:00 2001 From: Matt Andreko Date: Tue, 4 Feb 2025 15:22:47 -0500 Subject: [PATCH] Enabled SonarQube scanning for PRs (#4692) --- .github/workflows/scan-ci.yml | 1 + .github/workflows/scan.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/scan-ci.yml b/.github/workflows/scan-ci.yml index 7577aa2e3c..1be3733df2 100644 --- a/.github/workflows/scan-ci.yml +++ b/.github/workflows/scan-ci.yml @@ -58,3 +58,4 @@ jobs: args: > -Dsonar.organization=${{ github.repository_owner }} -Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }} + -Dsonar.pullrequest.key=${{ github.event.pull_request.number }} diff --git a/.github/workflows/scan.yml b/.github/workflows/scan.yml index aee5f139da..ff7c18e31d 100644 --- a/.github/workflows/scan.yml +++ b/.github/workflows/scan.yml @@ -70,3 +70,4 @@ jobs: args: > -Dsonar.organization=${{ github.repository_owner }} -Dsonar.projectKey=${{ github.repository_owner }}_${{ github.event.repository.name }} + -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}