fix(orb): wire env into all isProtectedAutomationAuthor production callers - #8742
fix(orb): wire env into all isProtectedAutomationAuthor production callers#8742galuis116 wants to merge 1 commit into
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
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8742 +/- ##
==========================================
- Coverage 93.79% 91.26% -2.53%
==========================================
Files 797 100 -697
Lines 79478 26060 -53418
Branches 24079 5198 -18881
==========================================
- Hits 74543 23784 -50759
+ Misses 3563 1996 -1567
+ Partials 1372 280 -1092
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-26 02:04:48 UTC
Review summary Nits — 4 non-blocking
CI checks failing
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.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch)). 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. |
…llers (#8745) * fix(orb): wire env into all isProtectedAutomationAuthor production callers 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 #8645 * test(orb): cover all five review-evasion EXTRA env call sites for #8645 codecov/patch closed #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. --------- Co-authored-by: loopover-orb[bot] <296761690+loopover-orb[bot]@users.noreply.github.com>
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.mergify[bot]) is suppressed in review-evasion self-close and contributor-cap-on-open, and only markedneverClosedwhenenvis passed.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,processors-public-comment-merge-facts.test.ts,automation-bot-skip.test.ts(all pass locally)npm run test:coverage— deferred to CI (codecov/patchonsrc/**)npm run test:workers— not applicable (no workers changes)npm run build:mcp— not applicablenpm run test:mcp-pack— not applicablenpm run ui:openapi:check— not applicable (no UI/OpenAPI changes)npm 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:
typecheck/test:coverage/ audit left to CI.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
src/**with direct branch coverage and no UI screenshots required.