Skip to content

Commit c0b5f39

Browse files
Fix security hotspots
1 parent 3d490a5 commit c0b5f39

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/CodeQuality.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
dotnet tool install --global dotnet-sonarscanner
4141
dotnet tool install --global dotnet-coverage
42-
dotnet sonarscanner begin /k:"STARIONGROUP_SysML2.NET" /o:"stariongroup" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
42+
dotnet sonarscanner begin /k:"STARIONGROUP_SysML2.NET" /o:"stariongroup" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
4343
4444
- name: Build
4545
run: dotnet build --no-restore --no-incremental /p:ContinuousIntegrationBuild=true
@@ -48,6 +48,7 @@ jobs:
4848
run: dotnet-coverage collect "dotnet test SysML2.NET.sln --no-restore --no-build --verbosity quiet" -f xml -o "coverage.xml"
4949

5050
- name: Sonarqube end
51-
run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
5251
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
54+
run: dotnet sonarscanner end /d:sonar.token="$SONAR_TOKEN"

0 commit comments

Comments
 (0)