fix(review): keep automated E2E generation comment-only (prevent unauthenticated commit delivery) - #4358
Conversation
|
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 #4358 +/- ##
=======================================
Coverage 93.94% 93.94%
=======================================
Files 397 397
Lines 36744 36744
Branches 13430 13430
=======================================
Hits 34519 34519
Misses 1569 1569
Partials 656 656
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-09 04:45:36 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Concerns raised — review before merging
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.
|
Motivation
manifest_missing_testsauto-trigger could reach the shared generation-and-delivery helper and, in repos configured withreview.e2e_test_delivery: "commit", attempt privileged GitHub writes without requiring maintainer authorization, violating the existing maintainer-only boundary for write-capable test delivery.Description
manifest_missing_testspath to use comment-only delivery by makingrunE2eTestGenerationAndDelivertreatargs.trigger === "auto"asdeliveryMode = "comment", preventing the auto path from attempting commits to PR head branches.e2eTestDeliveryin the seeded manifest so repositories can be configured withreview.e2e_test_delivery: "commit"during tests.Testing
npx vitest run test/unit/queue.test.ts -t "manifest_missing_tests auto-trigger"and the modified tests passed.npx vitest run test/unit/queue.test.ts -t "keeps the automated manifest_missing_tests trigger comment-only"and it passed.tsc --noEmitfailed locally due to missingaws4fetchtype declarations in the environment.npm run test:ciprogressed through early checks but was blocked bycf-typegen:check(staleworker-configuration.d.ts) and external environment/network issues preventednpm audit --audit-level=moderatefrom completing (registry returned 403).Codex Task