-
Notifications
You must be signed in to change notification settings - Fork 10
sonar: Update deprecated action #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe GitHub Actions workflow responsible for uploading coverage reports to Sonar has been updated. The previous SonarCloud GitHub Action was replaced with a specific version of the SonarQube scan action. Additionally, a conditional clause was introduced to the upload step, ensuring it only executes when the pull request is from the same repository as the base or when a valid Changes
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/sonar.yaml (2)
31-31
: Pin Action to a fixed version
Switching from a floating@master
toSonarSource/sonarqube-scan-action@v5.1.0
is a great improvement. As a further enhancement, consider using a major tag (@v5
) or a full SHA to lock in behavior and prevent unexpected changes on patch releases.🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 31-31: no new line character at the end of file
(new-line-at-end-of-file)
31-31
: Append newline at end of file
YAML lint flagged a missing newline at EOF. Please add a blank line at the end of this file to satisfy POSIX conventions and eliminate the lint error.🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 31-31: no new line character at the end of file
(new-line-at-end-of-file)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/sonar.yaml
(1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/sonar.yaml
[error] 31-31: no new line character at the end of file
(new-line-at-end-of-file)
🔇 Additional comments (1)
.github/workflows/sonar.yaml (1)
30-30
: Conditional gating for SonarQube scan
Theif
statement ensures the scan only runs on PRs from the same repository or whenSONAR_TOKEN
is provided. Verify that withpush
events (wheregithub.event.pull_request
isnull
), this step will be skipped—confirm this aligns with your intended CI policy.
This PR replaces the deprecated
sonarsource/sonarcloud-github-action@master
with the recommendedSonarSource/sonarqube-scan-action@master
as suggested in the CI warning message.The warning message was:
This change follows the same pattern as used in luno-go, including the conditional check to only run the SonarQube scan when:
Summary by CodeRabbit