chore(actions): update sonarsource/sonarqube-scan-action action to v6 [security]#1810
Draft
renovate[bot] wants to merge 1 commit intodevelopfrom
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v5.0.0→v6.0.0GitHub Vulnerability Alerts
CVE-2025-58178
Impact
A command injection vulnerability was discovered in the SonarQube Scan GitHub Action that allows untrusted input arguments to be processed without proper sanitization. Arguments sent to the action are treated as shell expressions, allowing potential execution of arbitrary commands.
Patches
A fix has been released in SonarQube Scan GitHub Action v5.3.1.
CVE-2025-59844
A command injection vulnerability exists in SonarQube GitHub Action prior to v6.0.0 when workflows pass user-controlled input to the args parameter on Windows runners without proper validation. This vulnerability bypasses a previous security fix and allows arbitrary command execution, potentially leading to exposure of sensitive environment variables and compromise of the runner environment.
Patches
The vulnerability has been fixed in version v6.0.0. Users should upgrade to this version or later.
Credits
Francois Lajeunesse-Robert (Boostsecurity.io)
References
Release Notes
sonarsource/sonarqube-scan-action (sonarsource/sonarqube-scan-action)
v6.0.0Compare Source
BREAKING CHANGE!
In order to prevent command-line injection, the actions has been rewritten from Bash to JS, and the
argsinput is now parsed differently. When updating to v6, you might have to update your workflow to change how arguments are quoted.For example, if you were previously passing:
you should now pass:
For more
argspassing examples, please refer to the README fileWhat's Changed
Full Changelog: SonarSource/sonarqube-scan-action@v5.3.1...v6.0.0
v5.3.2Compare Source
Full Changelog: SonarSource/sonarqube-scan-action@v5.3.1...v5.3.2
v5.3.1Compare Source
OVERLOOKED BREAKING CHANGE!
In order to prevent command-line injection, the way to parse the
argsinput has been changed, but this is possibly a breaking change regarding support of quotes.For example, if you were previously passing:
you should now pass:
Edit: We have now released v6 that more accurately reflect this breaking change.
What's Changed
New Contributors
Full Changelog: SonarSource/sonarqube-scan-action@v5...v5.3.1
v5.3.0Compare Source
What's Changed
New Contributors
Full Changelog: SonarSource/sonarqube-scan-action@v5.2.0...v5.3.0
v5.2.0Compare Source
What's Changed
Full Changelog: SonarSource/sonarqube-scan-action@v5...v5.2.0
v5.1.0Compare Source
What's Changed
Full Changelog: SonarSource/sonarqube-scan-action@v5.0.0...v5.1.0
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.