fix(#470): add workflows:write permission to coder GitHub App - #787
fix(#470): add workflows:write permission to coder GitHub App#787fullsend-ai-coder[bot] wants to merge 1 commit into
Conversation
The coder agent's GitHub App lacked the `workflows` permission, causing pushes to be rejected whenever the agent modified files under `.github/workflows/`. GitHub requires the `workflows: write` permission for any app creating or updating workflow files. Changes: - Add `Workflows: "write"` to the coder role in AgentAppConfig - Add test assertions: coder has workflows:write, triage and review do not - Update ADR-0007 to document the relaxed permission boundary and note CODEOWNERS as the complementary safeguard Note: existing GitHub App installations will need to accept the updated permissions. Note: pre-commit could not run in sandbox (network error). Manual verification of pre-commit hooks is required. Closes #470
|
fullsend review is working on this — view logs |
Site previewPreview: https://30026012-site.fullsend-ai.workers.dev Commit: |
Review: #787Head SHA: d2488c3 SummaryThis PR correctly adds FindingsNo findings. FooterOutcome: approve |
|
Closing this PR — the code change is correct but premature. During review, we analyzed the threat model in detail (see #470 for the full writeup). The short version:
The right sequence is: verify repo hardening first, then grant the permission. Filed #788 to track building that repo readiness assessment. Once repos pass the hardening checks, this PR's change can be re-applied safely. Thanks to the code agent for a clean implementation — the code and tests are correct, we just need the surrounding guardrails first. |
The coder agent's GitHub App lacked the
workflowspermission, causing pushes to be rejected whenever the agent modified files under.github/workflows/. GitHub requires theworkflows: writepermission for any app creating or updating workflow files.Changes:
Workflows: "write"to the coder role in AgentAppConfigreview do not
and note CODEOWNERS as the complementary safeguard
Note: existing GitHub App installations will need to accept the updated permissions.
Note: pre-commit could not run in sandbox (network error). Manual verification of pre-commit hooks is required.
Closes #470
Post-script verification
agent/470-add-coder-workflows-permission)050c28fb6d099f335e2054871e8c65519c21d6c8..HEAD)