Conversation
… steps Co-authored-by: rrusson <653188+rrusson@users.noreply.github.com>
Co-authored-by: rrusson <653188+rrusson@users.noreply.github.com>
|
There was a problem hiding this comment.
Pull request overview
This PR simplifies the CI/CD workflow by removing SonarCloud integration and replacing it with a standard .NET build and test pipeline. The change addresses failing SonarCloud configuration issues by relying on SonarCloud's Automatic Analysis feature instead.
Changes:
- Removed all SonarCloud-specific setup steps (JDK 17, cache actions, scanner installation, and analysis commands)
- Replaced with a clean .NET workflow using .NET 10 SDK for restore, build, and test operations
- Added explicit
permissions: contents: readto limit GITHUB_TOKEN scope for security - Updated workflow name from "SonarQube" to "Build and Test"
| java-version: 17 | ||
| distribution: 'zulu' # Alternative distribution options are available. | ||
| - uses: actions/checkout@v4 | ||
| fetch-depth: 0 |
There was a problem hiding this comment.
The fetch-depth: 0 setting fetches the entire Git history and is typically used for SonarCloud analysis to calculate accurate blame information and new code detection. Since SonarCloud has been removed from the CI workflow, this setting is no longer necessary and can be removed or changed to the default shallow clone behavior (fetch-depth: 1) to improve checkout performance.
| fetch-depth: 0 | |
| fetch-depth: 1 |



SonarCloud integration in the GitHub Actions workflow was failing. Removing in favor of SonarCloud's Automatic Analysis feature, which doesn't require CI integration.
Changes
Removed SonarCloud steps:
dotnet-sonarscannerbegin/end analysis commandsReplaced with standard .NET workflow:
Security:
permissions: contents: readto limit GITHUB_TOKEN scopeBefore:
After:
Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.