Audit each place where an AI agent runs automatically in the CI or the automation of this repository, for example a workflow that reviews pull requests, sorts issues, or repairs a failed build.
Inventory. For each workflow give:
Untrusted text. List each text that gets into the prompt of the agent and that a person outside the team can write: issue titles and bodies, comments, pull request descriptions, commit messages, branch names, files in the pull request (also instruction files such as AGENTS.md in a fork), code comments, and test output.
Powers. List what the agent can do in that job: write to the repository, push, comment, approve, merge, release, run shell commands, use the network, and read secrets.
For each workflow describe the worst realistic attack: the text that an outsider writes, what the agent does then, and what is lost. Examine these cases:
Controls. For each workflow answer:
Rules:
Output: a table with one row for each workflow and these columns: who can start it, untrusted text, powers, worst case, severity, smallest fix. Then list the workflows that are safe, with the reason.