Agent's tools limited in CI
The workflow that runs the agent names the tools it may use, and does not hand it the whole shell.
A workflow that runs a coding agent also says which tools the agent may use or not, for example read files and run the tests, but not any shell command. In Claude Code's action these are the allowed and disallowed tools settings. In CI the agent works with the repo's tokens and secrets, and may read text written by strangers in an issue or a pull request, so teams narrow what it can do there. The site counts a repo when such a workflow lists the agent's tools without letting every shell command through.
- Pro scene today: 8%, 17 of 221 pro repos
- In three months: +1 pt (4 pro repos added it, 2 removed it)
- Kept: 54%, 14 of 26 that had it 3 months ago or before
Pro 8% · Ladder 1%
Insight: 17 of the 39 repos that run an agent in CI limit its tools; 4 more list them but allow every shell command. In 5, anyone can trigger it.
Implement it
Start with an AI reviewer on pull requests. Limit any agent you run in CI to a list of tools, and let only the repo's members trigger it.
A prompt for your agent:
List the workflows in .github/workflows that run a coding agent. For each, say which tools the agent may use and who can trigger it: the events, and any check of the author's association. Propose the smallest change that limits the tools to what the job needs and lets only the repo's members trigger it. Change nothing before I approve.
Who can trigger the agent:
if: >
!github.event.pull_request.draft &&
github.event.pull_request.head.repo.full_name == github.repository &&
contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.pull_request.author_association)
The tools the agent may use:
claude_args: |
--model "claude-sonnet-5-5"
--allowedTools "mcp__github_inline_comment__create_inline_comment,mcp__github_comment__update_claude_comment,Bash(gh pr diff:*),Bash(gh pr view:*)"
In the pro repos
The 6 most starred of the other 16 pro repos that have it today.
- firecrawl/firecrawl/.github/workflows
- langgenius/dify/.github/workflows
- strapi/strapi/.github/workflows
- twentyhq/twenty/.github/workflows
- CherryHQ/cherry-studio/.github/workflows
- tldraw/tldraw/.github/workflows
By month
| Month | Pro scene |
|---|---|
| June 2025 | <1% |
| July 2025 | 0% |
| August 2025 | <1% |
| September 2025 | 2% |
| October 2025 | 3% |
| November 2025 | 3% |
| December 2025 | 4% |
| January 2026 | 4% |
| February 2026 | 6% |
| March 2026 | 7% |
| April 2026 | 6% |
| May 2026 | 6% |
| June 2026 | 7% |
| July 2026 | 8% |
| August 2026 | 7% |
| September 2026 | 7% |
| October 2026 | 8% |
| November 2026 | 8% |
| today | 8% |
Inside the practice
How the agent runs in CI
Of the repos whose workflows call a coding agent. Read from the workflow text, over all of a repo's agent workflows.
- Its tools are listed: 54%, 21 of 39
- Only members can trigger it: 41%, 16 of 39
- Named bots can trigger it: 21%, 8 of 39
- Triggered by pull_request_target: 15%, 6 of 39
- Anyone can trigger it: 13%, 5 of 39
- Its sandbox or its approvals are switched off: 13%, 5 of 39
- Its tool list allows every shell command: 10%, 4 of 39
Evidence
Observed in the repos only: no published study is quoted for it yet.
How it is detected
Looks for a workflow that calls a coding agent and lists the tools it may or may not use, without allowing every shell command. Read in workflow files. How the method counts
Related practices
More in Secure, the most adopted first.