Skip to content

Commit a6cc1c3

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717
- name: SonarQube Scan
18-
uses: SonarSource/sonarqube-scan-action@master
18+
uses: SonarSource/sonarqube-scan-action@v5.3.1
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: >
24+
-Dsonar.projectKey='sonarqubecloud-aleksandra-bozhinoska_${{ echo java-cl }}' -Dsonar.organization=sonarqubecloud-aleksandra-bozhinoska

0 commit comments

Comments
 (0)