nazmialtun/Parallel Sonarscanner for dotnet
Github action that runs dotnet sonar scanner in parallel with the tests jobs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| sonar-token | Sonar token that is created by sonarcloud/sonarqube to pass scanning result to the sonarcloud/sonarqube instance | yes | — |
| coverage-solution-root-path | Source file path in the coverage result should match to the solution path on current environment.To replace it, this path should be set. | yes | /app |
| verbose | Enables verbose flag for sonar scanner,in verbose mode logs are too chatty and the action works slow due to heavy output | yes | false |
| sonar-host-url | URL of the sonarqube/sonarcloud instance | yes | https://sonarcloud.io |
| dotnet-build-command | dotnet build command to be executed | yes | dotnet build -v q -nologo --configuration Release |
| opencover-reports-paths | Path expression that will be set to sonar.cs.opencover.reportsPaths | yes | /**/*.opencover.xml |
| vstest-reports-paths | Path expression that will be set to sonar.cs.vstest.reportsPaths | yes | /**/*.trx |
| project-key | Sonarcloud/Sonarqube project key.Default is {context.repo.owner}_{context.repo.name} if not set | no | — |
| organization | Sonarcloud/Sonarqube organization name.Default is {context.repo.owner} if not set | no | — |
| project-name | Sonarcloud/Sonarqube project name.Default is {context.repo.repo)} if not set | no | — |
| test-result-artifacts | Artifact names of test results that are going to be downloaded. Multiple artifact names should be separated with a comma | no | — |
| sonar-scanner-version | Dotnet Sonar scanner version.Default is latest version | no | — |
| coverage-artifact-pooling-timeout-sec | Timeout for the pooling of coverage artifacts.Default is 900 seconds | yes | 900 |
Outputs
no outputs