fix workflow: remove github dependency + duplicate scan
All checks were successful
SonarQube Code Quality Scan / scan (push) Successful in 27s
All checks were successful
SonarQube Code Quality Scan / scan (push) Successful in 27s
This commit is contained in:
@@ -29,15 +29,17 @@ jobs:
|
||||
dotnet restore
|
||||
dotnet build --configuration Release
|
||||
|
||||
# 修复语法后的扫描步骤
|
||||
- name: Run SonarQube Scan
|
||||
# 官方标准.NET扫描流程(替换原步骤)
|
||||
- name: Run SonarQube Scan (Official .NET Flow)
|
||||
run: |
|
||||
sonar-scanner `
|
||||
-Dsonar.projectKey=sqp_28b681b0124003c4393fa03c0a336875539e22c2 `
|
||||
-Dsonar.sources=./ `
|
||||
-Dsonar.host.url=http://127.0.0.1:9000 `
|
||||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} `
|
||||
-Dsonar.language=csharp `
|
||||
-Dsonar.dotnet.build.directory=./**/bin/Release `
|
||||
-Dsonar.exclusions=**/obj/**,**/bin/Debug/** `
|
||||
-Dsonar.coverage.exclusions=**/Test/**,**/*.Tests.cs
|
||||
dotnet tool install --global dotnet-sonarscanner
|
||||
dotnet sonarscanner begin `
|
||||
/k:"sqp_28b681b0124003c4393fa03c0a336875539e22c2" `
|
||||
/d:sonar.host.url="http://127.0.0.1:9000" `
|
||||
/d:sonar.login="${{ secrets.SONAR_TOKEN }}" `
|
||||
/d:sonar.sources="./" `
|
||||
/d:sonar.language="csharp" `
|
||||
/d:sonar.exclusions="**/obj/**,**/bin/Debug/**" `
|
||||
/d:sonar.coverage.exclusions="**/Test/**,**/*.Tests.cs"
|
||||
dotnet build --configuration Release
|
||||
dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
|
||||
Reference in New Issue
Block a user