Skip to content

Commit 4183a13

Browse files
committed
Test if token is available
WE2-964 Signed-off-by: Sven Mitt <[email protected]>
1 parent e9d21e6 commit 4183a13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sonarcloud-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup dotnet
1717
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: 6.0.x # SDK Version to use.
19+
dotnet-version: 8.0.x # SDK Version to use.
2020

2121
- name: Set up JDK 21
2222
uses: actions/setup-java@v4
@@ -69,7 +69,7 @@ jobs:
6969
if ("${{ secrets.SONAR_TOKEN }}" -eq "") {
7070
Write-Host "SONAR_TOKEN is missing"
7171
} else {
72-
Write-Host "SONAR_TOKEN is available"
72+
Write-Host "SONAR_TOKEN is available - (length: $("${{ secrets.SONAR_TOKEN }}".Length))"
7373
}
7474
.\.sonar\scanner\dotnet-sonarscanner begin /k:"web-eid_web-eid-authtoken-validation-dotnet" /o:"web-eid" /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" /d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" /d:sonar.verbose=true /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
7575
dotnet build --configuration Release --no-restore src/WebEid.Security.sln

0 commit comments

Comments
 (0)