Harden secret-scan allowlists and MCP skill import typing - #2046
groupthinking with Copilot wants to merge 2 commits into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Repository: groupthinking/EventRelay/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🔍 PR Validation |
Dependency Review SummaryThe full dependency review summary was too large to display here (13153KB, limit is 1024KB). Please download the artifact named "dependency-review-summary" to view the complete report. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new test breaks Python 3.10 collection, and the directory-wide secret-scan exclusion could conceal real credentials.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Hardens MCP import typing and adjusts secret-scan handling for sanitized fixtures.
Changes:
- Adds JSON-object validation and safer TypeScript narrowing.
- Adds and tests a web API test-directory gitleaks allowlist.
| File | Description |
|---|---|
.gitleaks.toml |
Adds route-test secret-scan exclusion. |
tests/unit/test_secret_scan_gitleaks_config.py |
Pins allowlist configuration. |
apps/web/src/lib/chatgpt-mcp-skill-import.ts |
Strengthens MCP validation typing. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| # Web API route leakage tests pin sanitized provider-shaped placeholders like | ||
| # sk-proj-****ABCD and sk_live_****ABCD to prevent browser-side echo regressions. | ||
| '''apps/web/src/app/api/__tests__/.*''', |
| from __future__ import annotations | ||
|
|
||
| from pathlib import Path | ||
| import tomllib |

Canonical issue
Outcome
CI stops flagging sanitized OpenAI/Stripe token-shaped fixtures in web API route tests, and the MCP skill-import validator is hardened for stricter TypeScript/ESLint analysis without changing its runtime contract.
Scope
apps/web/src/app/api/__tests__/.*.gitleaks.tomlapps/web/src/lib/chatgpt-mcp-skill-import.tsto remove unsafe object/non-null assumptionsRisk
.gitleaks.tomlpath addition and thechatgpt-mcp-skill-import.tstyping cleanupVerification
List exact automated and manual checks, tied to the current head SHA.
Production evidence
Not applicable: changes are limited to CI policy/config and a fixture-validation library path; no deployable runtime behavior or production state transition is involved.
Agent handoff