Skip to content

Commit 9c51d90

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

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ jobs:
1414
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
17-
- name: SonarQube Scan
18-
uses: SonarSource/sonarqube-scan-action@master
17+
- name: "SonarQube Scan"
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+
projectBaseDir: .
24+
args: >
25+
-Dsonar.projectKey=${{ env.DYNAMIC_PROJECT_KEY }} -Dsonar.organization=sonarqubecloud-aleksandra-bozhinoska

0 commit comments

Comments
 (0)