fix(review): scan patch-less PR files for leaked secrets - #3484
fix(review): scan patch-less PR files for leaked secrets#3484RealDiligent wants to merge 4 commits into
Conversation
) Extract patch-less secret-scan enrichment into patchless-secret-scan.ts with full unit coverage. When GitHub omits inline diff for binary/large files, fetch head/base content via Contents API and synthesize scannable + lines before the unconditional secret_leak hard blocker runs. Co-authored-by: Cursor <cursoragent@cursor.com>
…SONbored#3464) Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ored#3481) The grounding FileFetcher returns maxChars+1 when content exceeds the cap; pass SECRET_SCAN_FETCH_PROBE_CHARS so oversized files fail closed instead of scanning a truncated prefix. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-05 09:40:55 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 4 non-blocking
Why this is blocked
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3484 +/- ##
==========================================
+ Coverage 93.03% 93.05% +0.01%
==========================================
Files 298 299 +1
Lines 31203 31282 +79
Branches 11386 11414 +28
==========================================
+ Hits 29029 29108 +79
Misses 1518 1518
Partials 656 656
🚀 New features to boost your workflow:
|
|
Gittensory is closing this pull request on the maintainer's behalf (AI reviewers agree on a likely critical defect: PR description: this PR only says it supersedes closed #3481 and does not close or clearly link an eligible open issue in this repo; link the maintainer-authorized issue this fixes, or explain why this is maintainer-authorized despite the repo convention.). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Problem
GitHub omits inline
patchfor binary/large PR files; the unconditionalsecret_leakgate only scanned inline diff+lines.Fix
src/queue/patchless-secret-scan.ts— Contents API fallback with+1fetch probe so oversized files fail closed.maybeAddSecretLeakFindingat gate time.Pre-PR validation
npm run typechecktest/unit/patchless-secret-scan.test.ts— 41 tests, 100% patch coverageSupersedes closed #3481 (codecov passed; bot flagged fetch-cap semantics, fixed in v5).