From 8ef1e29d0cdef9dced46a1d0a306ac43b4e3c186 Mon Sep 17 00:00:00 2001 From: Tomasz Strzelecki Date: Fri, 18 Oct 2024 12:39:55 +0200 Subject: [PATCH] Add branch to sonar execution --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6cc122c..7d5ee6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,4 +49,5 @@ jobs: org.jacoco:jacoco-maven-plugin:report \ sonar:sonar -Dsonar.host.url=https://sonarcloud.io \ -Dsonar.organization=wttech \ - -Dsonar.projectKey=wttech_AEM-Rules-for-SonarQube + -Dsonar.projectKey=wttech_AEM-Rules-for-SonarQube \ + -Dsonar.branch.name=${{ github.head_ref || github.ref_name }}