// module 08 · AI agents in the pipeline
Coding agents and autofix bots: scope, network and approval
Agents that open pull requests are a new kind of contributor: Claude Code running from an issue, GitHub's Copilot cloud agent, hosted coding agents from other vendors, and the older autofix bots like Dependabot. Each one needs an identity, a set of repos, a network and a path to merge. This lesson gives the agent its own GitHub App instead of somebody's token, keeps it out of every bypass list, makes its PRs go through the same gate and code owner review as a person's, keeps workflow files out of its reach, and limits where it can connect. A check script tests the fleet for all of it, and a simulated agent PR that edits `.github/` stays blocked until the security team approves.
Learning Objectives
- Explain why a coding agent should act as a dedicated GitHub App with selected repos, not as a person's personal access token
- Pick the App permissions an agent needs to open PRs, and the ones it must not have (`workflows`, `administration`)
- Show that an agent identity can't approve or merge its own work: no bypass entry, code owner review, and the Actions approval setting
- Name the network controls for hosted agents (Copilot cloud agent firewall) and for agents you run yourself (sandbox domain allowlist)
- Run a check that fails when an App or deploy key appears on a bypass list or code owner review is off
This lesson is for enrolled learners
Log in, then enroll to read the full lesson, run its lab and take the quiz.
