Skip to content

Fix SonarCloud issues S3400, S8264, S8677#4999

Merged
arturcic merged 3 commits into
GitTools:mainfrom
arturcic:fix/sonar-s3400-s8264-s8677
Jun 30, 2026
Merged

Fix SonarCloud issues S3400, S8264, S8677#4999
arturcic merged 3 commits into
GitTools:mainfrom
arturcic:fix/sonar-s3400-s8264-s8677

Conversation

@arturcic

Copy link
Copy Markdown
Member

Fixes three accepted SonarCloud issues (reopened and addressed in code):

  • S3400 (build/common/Addins/GitVersion/GitVersionRunner.cs) — extract the "GitVersion" literal returned by the required GetToolName() override into a private const string ToolName. (The method is a mandated Cake.Core.Tooling.Tool<T> override and can't be removed; this surfaces the value as a constant.)
  • S8264 (.github/workflows/ci.yml) — move the workflow-level permissions: contents: read to the job level. The five jobs that previously inherited it (prepare, publish_flags, build, artifacts_windows_test, artifacts_linux_test) now declare it explicitly; the other five already had their own permissions blocks.
  • S8677 (src/mark-shipped.ps1) — replace Write-Host with the pipeline-compatible Write-Output.

Validation

  • dotnet build ./build/CI.slnx — 0 errors
  • dotnet format ./build/CI.slnx --verify-no-changes — clean
  • actionlint — 0 findings repo-wide

🤖 Generated with Claude Code

arturcic and others added 3 commits June 30, 2026 12:35
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Drop the workflow-level 'permissions: contents: read' and declare it on
each job that previously inherited it (prepare, publish_flags, build,
artifacts_windows_test, artifacts_linux_test); the remaining jobs already
declared their own permissions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@arturcic
arturcic merged commit a463d39 into GitTools:main Jun 30, 2026
121 checks passed
@arturcic
arturcic deleted the fix/sonar-s3400-s8264-s8677 branch June 30, 2026 11:07
@mergify

mergify Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Thank you @arturcic for your contribution!

@arturcic arturcic added this to the 6.x milestone Jun 30, 2026
@arturcic arturcic modified the milestones: 6.x, 6.8.0 Jun 30, 2026
@arturcic

Copy link
Copy Markdown
Member Author

🎉 This issue has been resolved in version 6.8.0 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant