Menu

1 / 4

GitHub Agentic Workflows: A PR Reviewer That Can't Write

DEV Community: security·Mudassir Khan·8 days ago
#be03OLf6
#devtosecurity#devto#dev#agent#safe
Reading 0:00
15s threshold

GitHub just made Agentic Workflows generally available , which means you can describe a repository automation in Markdown and let an agent run it, with read only defaults and declared safe outputs. That combination is the part worth your attention. A PR reviewer reads text written by strangers, and any text it reads can try to give it orders. The question isn't whether your agent can be talked into something. The question is what it can actually do once it has been.

TL;DR

Treat the agent as untrusted: read only token, narrow tools, and no direct write path to your repository.

Declare every write as a safe output with a hard limit. One comment per run is a much easier thing to reason about than "the bot has write access".

Test the failure, not the demo. Plant an injection in a fixture PR and prove the workflow refuses to act on it.

This is the build I'd start with: a reviewer that can post one comment and nothing else.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.