Study FAQ
How can I constrain event-triggered Copilot cloud automations?
Also asked as 2
- Which event and write filters should I inspect for a Copilot cloud automation?
- How do I reduce unintended starts and writes in a Copilot event automation?
Answer
Configure the event and resource filters, who may trigger the automation and what its selected tools can change. By default, Copilot cloud automations ignore activity from users without repository write access. Retaining that restriction and excluding Copilot-originated events can reduce untrusted starts and unintended automation chains.
For issue or pull-request triggers, inspect the form's Configured tools can change control. Depending on repository configuration, it can permit changes across the repository or limit GitHub-tool writes to the triggering issue or pull request and resources created during the run. Check the actual available setting rather than inferring scope from the task prompt.
The Can be triggered by choice controls whether Copilot cloud activity can trigger the automation. Event filters further narrow qualifying records. These start restrictions complement tool selection; issue text can still contain prompt injection, so instructions alone are insufficient containment.
MCP tools have a separate boundary. The GitHub resource-write restriction does not limit resources accessible through MCP server credentials. Inspect each selected server's reach and expose only required operations.
Test with a known eligible resource and inspect the resulting session and effects. If no session appears, check enabled state, filters, actor restrictions and periodic credit limits before changing the prompt or widening access.
References: Copilot automations - GitHub Docs, Creating automations with Copilot cloud agent - GitHub Docs.
Full explanation
GH-700: Configure Copilot Automations for Recurring Business Work
Study guide · GH-700
Read the full explanation