Repository navigation
STF-1604: Analyze the merge commit in CodeQL on pull requests - #562
Conversation
Remove the git checkout HEAD^2 step and the fetch-depth it needed. The CodeQL init action warns that the step is no longer necessary, and code scanning recommends analyzing the merge commit, which actions/checkout fetches by default. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe CodeQL workflow checkout step retains ChangesCodeQL workflow checkout
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to CodeQL now analyzes the intended pull-request merge commit. The remaining analysis steps are unchanged, and the change is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. A rabbit checks the workflow’s trail, Comment |
Modver resultThis report was generated by Modver, This PR does not require a change in your module’s version number. |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The targeted workflow change is correct, and checkout and CodeQL initialization succeeded on the PR run.
Review effort: Balanced
Findings: None
What changed in this PR
Updates CodeQL pull-request analysis to scan the default merge commit.
Changes:
- Removes the custom fetch depth and PR-head checkout.
- Retains disabled credential persistence.
| File | Description |
|---|---|
.github/workflows/codeql-analysis.yml |
Uses the checkout action’s default PR merge commit. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The CodeQL init step warns on every run:
This removes the
git checkout HEAD^2step and thefetch-depth: 2it needed. On pull requests, CodeQL now analyzes the merge commit thatactions/checkoutfetches by default. The init, autobuild, and analyze steps are unchanged.This PR's own CodeQL run should show no warning in the "Initialize CodeQL" step.
🤖 Generated with Claude Code
Summary by CodeRabbit