feat(enrichment): detect Resend API keys and Mapbox secret tokens in secret-scan#3266
feat(enrichment): detect Resend API keys and Mapbox secret tokens in secret-scan#3266bohdansolovie wants to merge 1 commit into
Conversation
…secret-scan Add high-confidence patterns for Resend `re_` keys and Mapbox `sk.eyJ` secret tokens with fragment-based fixtures, truncation negatives, and Stripe parity. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-04 23:52:12 UTC
🛑 Suggested Action - Reject/Close
Review summary Blockers
Nits — 2 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.
|
|
Gittensory is closing this pull request on the maintainer's behalf (AI reviewers agree on a likely critical defect: review-enrichment/src/analyzers/secret-scan.ts:197: The Mapbox rule requires a later `.` via `\.[A-Za-z0-9_-]{10,}` and the test fabricates `sk.eyJ... ....`, so real `sk.eyJ...` Mapbox access tokens without that second dot will not be reported; change the rule/test to the actual token shape, e.g. `re: /\bsk\.eyJ[A-Za-z0-9_-]{24,}(?![A-Za-z0-9_-])/`, or explain with a real Mapbox fixture why the extra segment is required.). 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. |
…-scan Use sk.eyJ + base64url body without a fabricated second dot segment per Orb feedback on JSONbored#3266; add pk-token and truncation negatives. Co-authored-by: Cursor <cursoragent@cursor.com>
…secret-scan (#3267) * feat(enrichment): detect Resend API keys and Mapbox secret tokens in secret-scan Add high-confidence patterns for Resend `re_` keys and Mapbox `sk.eyJ` secret tokens with fragment-based fixtures, truncation negatives, and Stripe parity. Co-authored-by: Cursor <cursoragent@cursor.com> * fix(enrichment): match production Mapbox secret token shape in secret-scan Use sk.eyJ + base64url body without a fabricated second dot segment per Orb feedback on #3266; add pk-token and truncation negatives. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
re_+ base62) and Mapbox secret access tokens (sk.eyJJWT-shaped tokens).sk_live_/sk_test_prefixes via thesk.eyJanchor.Motivation
Resend and Mapbox credentials are commonly leaked in env files and deployment configs. The secret-scan analyzer already covers many email/maps SaaS tokens but missed these formats.
Test plan
secret-scan.test.tssuite passes (59 tests)npm run buildinreview-enrichment/Made with Cursor