fix(orb): wire env into all isProtectedAutomationAuthor production callers - #8745
Conversation
…llers PROTECTED_AUTOCLOSE_AUTHORS_EXTRA was documented and unit-tested on isProtectedAutomationAuthor, but every production call site dropped the optional env argument, so a self-hoster's extra allowlist never protected bots from contributor-cap close, review-evasion enforcement, neverClosed, or automation-bot skip. Pass env through all 14 callers (and the two automation-bot-skip wrappers) and cover the previously-broken path with integration tests. Closes JSONbored#8645
…Nbored#8645 codecov/patch closed JSONbored#8742 at 92% with one partial in review-evasion.ts because only the self-close guard was exercised. Drive all five production env-wired review-evasion call sites on both the EXTRA-protected and unprotected paths so patch coverage hits the 99% gate.
|
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 #8745 +/- ##
==========================================
+ Coverage 90.56% 91.27% +0.71%
==========================================
Files 96 100 +4
Lines 22490 26069 +3579
Branches 3884 5201 +1317
==========================================
+ Hits 20367 23795 +3428
- Misses 1945 1997 +52
- Partials 178 277 +99
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-26 05:25:27 UTC
Review summary Nits — 3 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
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://loopover.ai/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
envinto all 14 productionisProtectedAutomationAuthorcall sites (and the twoautomation-bot-skipwrappers) soPROTECTED_AUTOCLOSE_AUTHORS_EXTRAactually protects self-hosted automation bots.derivePublicCommentMergeFactswith an optionalenvsoneverClosedhonors the same allowlist extension.codecov/patchgap that closed fix(orb): wire env into all isProtectedAutomationAuthor production callers #8742.Closes #8645
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlint— not applicable (no workflow changes)npm run typecheck— deferred to CIprotected-automation-author-env-wiring.test.ts(4/4 pass locally, including all five review-evasion call sites)npm run test:coverage— deferred to CI (codecov/patchonsrc/**; prior fix(orb): wire env into all isProtectedAutomationAuthor production callers #8742 failed at 92.3% on one review-evasion partial — addressed here)npm run test:workers— not applicablenpm run build:mcp— not applicablenpm run test:mcp-pack— not applicablenpm run ui:openapi:check— not applicablenpm run ui:lint— not applicablenpm run ui:typecheck— not applicablenpm run ui:build— not applicablenpm audit --audit-level=moderate— deferred to CIIf any required check was skipped, explain why:
Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
Not applicable — no visible UI/frontend/docs/extension changes.
Notes
codecov/patch92.3% / 1 partial inreview-evasion.ts). Confirmed no other open PR targets fix(orb): isProtectedAutomationAuthor's self-host allowlist extension is never wired to any of its 14 production call sites #8645 before push.