Repository navigation
CI: release workflow grants write permissions to the release job only - #4048
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
CI diagnosis: the only failing check is sonarcloud / SonarCloud Scan. Tests built and ran; the scan job then failed at This PR only tightens write permissions on the release workflow, so it should not affect coverage profiles. The same "no profile can be merged" failure has already shown up as a flake on main (failed on 9 Nov, later main scans succeeded). I have rerun the failed job on run 42796978997. |
|
Follow-up: the rerun of only the failed scan job hit the same corrupt profile ( |
|



SonarCloud:
githubactions:S8233(AaGVc9qg7JDpWu2qdxdT, AaF2M3jggfhezIKm7sGd)Problem
release.ymlgrantscontents: writeandpackages: writeat workflow level. SonarCloud reports both lines asgithubactions:S8233("Move this write permission from workflow level to job level"); they count toward the failingnew_security_ratingcondition of the quality gate.creditsandgit-sourcesalready set their own read-only permissions, so only thereleasejob uses the write grant.Change
permissionsis now{}.releasejob (the call tocraft-common-actions/.github/workflows/release.yml) declarescontents: writeandpackages: write, the same grant it had before.Not in this PR: the other open LightCraft Sonar findings (Python tool path/command findings, which are proposed as false positives in SonarCloud, and code smells).
How it was checked
actionlint .github/workflows/release.yml: cleancargo xtask ci: not run, workflow-only changecontents/packagesgrant as before; the first push torelease(or aworkflow_dispatchtest run) confirms it.Merging
release.yml, in other lines; whichever lands second may need a trivial rebase.unsafe, build scripts, network access, spawned processes, deleted files, CI orxtaskgate changes: CI permission change only, as above.Summary by CodeRabbit