Add JDK 21 setup to npm-sonar-analysis workflow - #368
Conversation
Added setup for JDK 21 in the workflow. Signed-off-by: Mahesh-Binayak <76687012+Mahesh-Binayak@users.noreply.github.com>
WalkthroughThe Sonar analysis GitHub Actions workflow now provisions Temurin JDK 21 before dependency caching, tests, coverage generation, and SonarCloud analysis. ChangesSonar analysis workflow
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8).github/workflows/npm-sonar-analysis.ymlTraceback (most recent call last): 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/npm-sonar-analysis.yml:
- Line 50: Update the Java setup step using actions/setup-java in the workflow
to reference the latest supported v5 release by its full immutable commit SHA,
rather than the mutable `@v3` tag. Ensure the selected action version is
compatible with the available runner and preserves JDK 21 provisioning.
- Line 50: Update the setup-java action reference in the workflow to the
specified full-length commit SHA instead of the mutable `@v3` tag, and retain the
resolved version in a trailing comment for auditability.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 79e1c9b7-7d54-4a85-8e8a-7d18693a452d
📒 Files selected for processing (1)
.github/workflows/npm-sonar-analysis.yml
Added setup for JDK 21 in the workflow.
Summary by CodeRabbit