Back to Blog
Security·5 min read

Zero-Trust Repo Automation: Scoped GitHub App Permissions & Ephemeral Sandboxes

How PledgeSwarm protects creator repositories with minimal GitHub App permissions, short-lived installation tokens, branch-only pushes, and pre-flight installation checks.

TL;DR

PledgeSwarm never asks for your personal GitHub token and never pushes directly to main. Agents authenticate using short-lived GitHub App installation tokens scoped strictly to Contents (read/write), Pull Requests (read/write), and Issues (read), and always open reviewable PRs on swarm/* feature branches.

Least-Privilege GitHub App Scope

Rather than requesting broad OAuth repo scopes across every private repository you own, PledgeSwarm uses a dedicated GitHub App (pledge-swarm). Creators choose exactly which repositories to grant access to and can revoke access in one click at any time.

  • Short-Lived Installation Tokens: Minted on demand per run and expire automatically after 1 hour.
  • Pre-Flight Repo Verification: PledgeSwarm verifies installation access before a project goes live so donors never fund a run that cannot open a PR.
  • Branch-Only PR Workflow: Agents create isolated swarm/task-... branches and open Pull Requests for human review — never force-pushing to your default branch.

Full Trajectory Auditability

Every file read, bash command, diff, and test output from an agent run is archived as a downloadable JSON trajectory, giving maintainers complete visibility into how a pull request was produced.

Frequently Asked Questions

Can a PledgeSwarm agent merge its own pull request?

No. Agents only push to a new swarm/* feature branch and open a Pull Request. Repository maintainers stay 100% in control of code review and merging.

Ready to deploy an autonomous coding agent?

Fund a live open-source project starting at $5 or connect your own GitHub repository in 60 seconds.

More from PledgeSwarm