fix: gate BYOK slop advisory by contributor - #739
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 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. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
gittensory · advisory review Reviewed 2 changed file(s) — two independent AI reviewers. Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Worth double-checking
|
Motivation
Description
confirmedContributorinrunAiSlopForAdvisoryand only decrypt/use the repo BYOK key whenargs.confirmedContributoris true so unconfirmed PRs fall back to Workers AI.maybePublishPrPublicSurface) and passconfirmedContributorinto the slop advisory call so both slop and review paths share the same authorization signal.test/unit/ai-slop.test.tsthat verifies confirmed contributors can use BYOK and unconfirmed contributors do not trigger maintainer BYOK fetches while still receiving the advisory via Workers AI.Testing
git diff --checkwith no issues.npm run typecheck(tsc --noEmit) and the typecheck succeeded.npx vitest run test/unit/ai-slop.test.ts --reporter=verboseand all unit tests passed (30 tests passed).Codex Task