fix(settings): parse PROTECTED_AUTOCLOSE_AUTHORS_EXTRA via the shared login-list parser (#audit-3.13) - #6214
Conversation
… login-list parser (#audit-3.13)
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6214 +/- ##
==========================================
- Coverage 95.32% 95.32% -0.01%
==========================================
Files 596 596
Lines 47091 47090 -1
Branches 15010 15010
==========================================
- Hits 44889 44888 -1
Misses 1477 1477
Partials 725 725
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-15 22:18:48 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
protectedAutocloseAuthorsinsrc/settings/agent-actions.tsparsed thePROTECTED_AUTOCLOSE_AUTHORS_EXTRAenv var with a bare.split(","), while every other GitHub-login-list env var (e.g.ADMIN_GITHUB_LOGINSinsrc/queue/review-evasion.ts) goes throughparseGitHubLoginList(src/auth/security.ts), which splits on whitespace or commas "so every caller agrees on the same parse (#audit-3.13)". A self-hoster who setPROTECTED_AUTOCLOSE_AUTHORS_EXTRAwith newline- or space-separated logins (a reasonable assumption given the sibling env var's convention) got them silently concatenated into one unmatched string instead of split into individual logins. This env var was missed by the#audit-3.13unification pass.Changes
protectedAutocloseAuthorsnow parses via the sharedparseGitHubLoginList, matching every other login-list env var.parseGitHubLoginListitself is unchanged.PROTECTED_AUTOCLOSE_AUTHORS_EXTRAwith mixed comma / newline / multi-space separators now parses into the correct individual logins (would previously fold several into one unmatched string).Scope
src/settings/agent-actions.ts.Validation
npm run typechecknpx vitest run test/unit/agent-actions.test.ts-- 284 passed (incl. the new mixed-separator regression test).scripts/check-engine-parity.ts-- ok (no engine twin).main; mergeable-clean.Safety
Closes #6193