Repository navigation
ci(deps): label npm Dependabot PRs for the fullsend fix agent - #68
shairevivo wants to merge 1 commit into
Conversation
The fix agent only auto-runs on bot-authored PRs when the author is the fullsend coder bot or the PR carries the `fullsend-fix` label (check-fix-eligibility.sh). Dependabot is neither, so review's changes_requested reviews on dependency PRs were routed to the fix stage and then skipped at the eligibility gate (run 42797063008, PR #63). Have Dependabot apply the label at creation so it is present before the first review. `labels` replaces Dependabot's default `dependencies` label rather than adding to it, so both are listed. The github-actions entry is intentionally left unlabeled: the coder app has no `workflows` permission, so a fix run on a PR that edits .github/workflows/ could never push its commit. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
🤖 Finished Review · ✅ Success · Started 12:20 PM UTC · Completed 12:28 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.94 |
|
<!-- fullsend:risk-assessment --> DetailsSingle 5-line addition to .github/dependabot.yml (a protected CI path) is minimal in size but that file shows elevated churn (5 commits in 30 days) and 3 fix-commits in 90 days, warranting moderate review. |
ReviewFindingsHigh
Medium
Low
Next steps:
|
| # from its own coder bot unless this label is present | ||
| # (check-fix-eligibility.sh). `dependencies` is listed explicitly because | ||
| # `labels` replaces Dependabot's default label rather than adding to it. | ||
| labels: ["dependencies", "fullsend-fix"] |
There was a problem hiding this comment.
[medium] permission-expansion
This PR adds the fullsend-fix label to every npm Dependabot PR when Dependabot opens it. Until now a human had to opt each PR in; with this change every npm Dependabot PR is opted in ahead of time. The PR body and the comment on lines 11-13 say this label is what lets check-fix-eligibility.sh allow a bot-triggered fix run on a PR not authored by the coder bot. That script lives in the external fullsend-ai/fullsend repo, so this cannot be checked here. According to the trust-boundary comment in auto-merge.yml (lines 29-32), fix runs push with the coder app token, the only fullsend app with contents:write. So the fix agent can now push commits to Dependabot branches with no human looking first. Dependabot PR bodies include upstream release notes, changelogs and commit titles written by third-party package maintainers. The security-updates group matches every package (patterns: ["*"], line 19), so any package in the dependency tree can show up. This gives untrusted text a path into an agent that can write to the repo. Whether the fix agent runs npm lifecycle scripts, and which credentials it holds when it does, cannot be determined from this repo. Mitigations confirmed in the base repo: auto-merge.yml line 61 only merges PRs authored by fullsend-ai-coder[bot], and lines 130-141 only allow changes under src/ and public/, so Dependabot PRs still need a human to merge them. /fs-fix-stop (fullsend.yaml lines 63-137) lets an authorized user opt a PR out. The claim that no fullsend app has the workflows permission comes from a comment in auto-merge.yml (lines 29-30), not from app configuration that could be checked. What remains: fix-agent commits land on a branch authored by dependabot[bot], and a human merging what looks like a routine bump may not notice them. No linked issue or ADR records this trust-boundary change, while the repo's practice (auto-merge.yml lines 27 and 39-40, citing issue #11) is to record such decisions in an issue. As a process matter, this non-mechanical CI change also has no authorizing issue. PRs #63 and #64 give motivating context but are not an authorizing issue.
Suggested fix: Record the decision in a linked issue or ADR. It should cover two things: (a) Dependabot PR bodies, which contain upstream maintainer text, now feed an agent that can write to the repo; (b) whether the fix agent runs npm lifecycle scripts, and which credentials are present when it does. Consider narrowing the opt-in, for example labeling only security-update PRs through a separate Dependabot entry, or leaving the label for a human to apply. Also consider having the review agent or the human merge checklist flag Dependabot PRs that contain commits not authored by dependabot[bot].
| # from its own coder bot unless this label is present | ||
| # (check-fix-eligibility.sh). `dependencies` is listed explicitly because | ||
| # `labels` replaces Dependabot's default label rather than adding to it. | ||
| labels: ["dependencies", "fullsend-fix"] |
There was a problem hiding this comment.
[low] edge-case
Setting labels replaces all of Dependabot's default labels, not just dependencies. This config has two ecosystems (npm and github-actions), so by default Dependabot also adds an ecosystem label such as javascript. The PR metadata shows #63 and #64 carry it. After this change, new npm PRs will get only dependencies and fullsend-fix, and will quietly lose javascript. The comment on lines 13-14 says labels replaces 'Dependabot's default label' (singular), which understates what gets dropped. No workflow in .github/workflows/ refers to javascript, so nothing in this repo breaks. Outside filters or saved searches that rely on the label would stop matching.
Suggested fix: If the ecosystem label matters, add it explicitly: labels: ["dependencies", "javascript", "fullsend-fix"]. Otherwise, change the comment to say the default labels (plural, including the ecosystem label) are replaced.
|
Closing to prevent the security risk. |
|
🤖 Finished Retro · ✅ Success · Started 1:23 PM UTC · Completed 1:29 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $2.16 |
Retro: PR #68 (label npm Dependabot PRs with
|
tsconfig.json sets skipLibCheck, so `tsc` hides .d.ts errors caused by the repo being held on TypeScript 4.9 (react-scripts 5 peer range). @types/node 22.20.5 passed that way (#61) but fails with TS2502 when lib checking is on. - package.json: add `typecheck` (tsc --project tsconfig.typecheck.json). - tsconfig.typecheck.json: extends tsconfig.json with skipLibCheck: false. build/start still use tsconfig.json unchanged. - typecheck/ts4.9-shims.d.ts: styled-components 6.6.0 typings use the global NoInfer type (TS 5.4+), which made the lib-checked run fail on main with 7 TS2304 errors. Declare the same fallback that styled-components exports, loaded only by the typecheck config. - AGENTS.md: document the TS 4.9 dependency policy, how to check typeScriptVersion and the ts4.9 dist-tag, the @types/node pin, the validation command, and the exit condition. Verified: typecheck passes on main. With @types/node@22.20.5 plain `tsc --noEmit` passes but `npm run typecheck` fails (TS2502). With @types/jest@30.0.0 it fails too (TS2726). lint, build and CI=true npm test pass. .github/dependabot.yml is unchanged to avoid conflicting with #68; the @types/jest guidance is recorded in AGENTS.md instead. Closes #69 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Fullsend's fix agent was already being dispatched for Dependabot PRs — the review agent posts a
CHANGES_REQUESTEDreview, the dispatch routes to thefixstage — butcheck-fix-eligibility.shthen skips the run:(run 42797063008)
The gate allows a bot-triggered fix when the PR author is
fullsend-ai-coder[bot]or the PR carries thefullsend-fixlabel. Dependabot is neither.Change
Dependabot applies
labels: ["dependencies", "fullsend-fix"]to npm PRs at creation, so the label is present before the review that triggers the fix.labelsreplaces the defaultdependencieslabel rather than adding to it, so both are listed.The
github-actionsentry is deliberately not labeled: those PRs can only edit.github/workflows/, and the coder app has noworkflowspermission, so a fix run could never push its commit (it would fail after burning a full inference run).After merge
/fs-fixto start a run; a label added after the review event does not re-dispatch.auto-merge.ymlonly mergesfullsend-ai-coder[bot]PRs touchingsrc//public/, so a human still merges dependency PRs.🤖 Generated with Claude Code