Skip to content

Commit 8bfbcfe

Browse files
Pass env var value in an arg
1 parent cefcc0a commit 8bfbcfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
uses: SonarSource/sonarqube-scan-action@master
1919
env:
2020
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
21-
DYNAMIC_PROJECT_KEY: "${{ github.event.repository.name }}"
21+
DYNAMIC_PROJECT_KEY: "sonarqubecloud-aleksandra-bozhinoska_${{ github.event.repository.name }}"
2222
with:
23-
args: -Dsonar.projectKey=sonarqubecloud-aleksandra-bozhinoska_${{ github.event.repository.name }} -Dsonar.organization=sonarqubecloud-aleksandra-bozhinoska
23+
args: -Dsonar.projectKey=${{ env.DYNAMIC_PROJECT_KEY }} -Dsonar.organization=sonarqubecloud-aleksandra-bozhinoska

0 commit comments

Comments
 (0)