fix: validate github return url metadata#5057
Conversation
Signed-off-by: psrsingh <psr.singh336@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR adds input validation and explicit error handling across two files to fail fast when required metadata fields are missing or invalid. The ChangesInput Validation and Error Handling for Metadata Fields
Sequence DiagramsNo sequence diagrams are generated for this PR because the changes are validation and error-handling improvements that do not introduce new multi-component interactions or control flow patterns requiring visualization. Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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. 🔧 golangci-lint (2.12.2)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
Summary
Adds defensive validation for GitHub and GitLab return URL generation in the sign flow.
Changes
Why
The sign/auth redirect flow could continue with incomplete or malformed metadata, potentially resulting in invalid or empty redirect URLs and blank browser pages after authentication flows.
This patch improves robustness and error visibility around redirect URL generation.
Fixes #5052