Kay van Dijk
Orders from strangers
An agent step in GitHub Actions can take orders from someone who cannot push. It runs when an issue opens, when someone comments, or on pull_request_target. Anyone who opens the issue can write the text. If that text is in the prompt, they are steering the agent. Add write permissions, an extra secret, or turn the sandbox off, and a stranger's text is steering something with real power. Reviews and discussions are the same kind of event.
tattlr scan looks at what an agent already did. I wrote tattlr workflows to look at the workflow file before anything runs. It is on main. CHANGELOG.md lists it under Unreleased. The newest tag is v0.3.0, and this command is not in it. It is not in a tagged release yet.
It takes one path. No path means the current folder. You can pass a repo, a folder of workflow files, or one file. In a repo it reads .github/workflows. The README examples are these.
tattlr workflows
tattlr workflows path/to/repo
tattlr workflows --fail-on high
tattlr workflows --format sarif
tattlr workflows --format markdownText is the default. --format also takes json, and md means markdown. --fail-on high exits 1 when a finding is high or critical.
What it flags
It looks for Claude Code, Codex and Gemini CLI actions, and for claude -p, codex exec or gemini -p in a script. cursor-agent -p counts too. Push, schedule and manual runs are left alone.
workflow-untrusted-prompt means text an outsider wrote ended up in the prompt. An issue body, a comment, or a pull request title will do. The finding is high. It is critical when the step is also open to anyone.
workflow-agent-open means the agent runs for anyone, not just people with write access. On an action, allow-users is "*". On a script, nothing checks who started the run. High.
workflow-agent-write means the job can write, or it holds a secret that is not the model key, and outsiders can already reach the step. An npm token counts. The key the agent needs to start does not count. High, and critical when the prompt is untrusted and the step is open. Write and secrets only count once outsiders can reach the step.
workflow-agent-sandbox-off means the sandbox or the prompts are off, and outsiders can reach the step. --dangerously-skip-permissions and --yolo are the usual flags. High. It only counts once they can reach the step.
workflow-agent-trigger is the low note. The agent is on one of those events, and none of the four above fired. A stock @claude workflow gets this one note and nothing else. The actions only answer people with write access by default. Keep it that way.
The old labeler
The README says how the old Codex issue labeler went wrong. Any issue started it. allow-users was "*". The title and the body went straight into the prompt. A copy of that labeler comes out critical. The block below is a short example of that pattern, so you can see the shape.
on: issues
jobs:
gather-labels:
steps:
- uses: openai/codex-action@main
with:
allow-users: "*"
prompt: |
${{ github.event.issue.title }}
${{ github.event.issue.body }}Keep outsider text out of the prompt. Do not set allow-users to "*". Leave the permissions read-only. Pass only the model key, not the other secrets. Keep the sandbox on. Run tattlr workflows --fail-on high in CI.
The page on this site is https://kayorama.nl/tattlr. The repo is https://github.com/kaygaaf/tattlr.
