Menu

Why zizmor and CodeQL Miss Prompt Injection via env: in AI GitHub Actions
πŸ“°

Why zizmor and CodeQL Miss Prompt Injection via env: in AI GitHub Actions

DEV Community: devsecopsΒ·Staros EugeneΒ·4 days ago
#6VHmvDML
#devtodevsecops#devto#dev#github#actions
Long article (526 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Starting tomorrow (December 2, 2026), GitHub blocks pull_request_target by default in public repositories unless an Actions policy explicitly allows it.

For teams that re-allow it β€” or run anthropics/claude-code-action , openai/codex-action , google-github-actions/run-gemini-cli , or gh-aw on issues and pull requests β€” there is a subtle blind spot in standard CI security scanners.

The env: Intermediary Blind Spot

To satisfy shell-injection rules in zizmor and CodeQL, developers commonly move ${{ github.event.issue.body }} or ${{ github.event.pull_request.body }} out of run: blocks into an env: variable:

- uses : anthropics/claude-code-action@v1 env : ISSUE_BODY : ${{ github.event.issue.body }} with : prompt : | Triage this issue : $ISSUE_BODY allowed_tools : "Bash(*)"

Enter fullscreen mode

Exit fullscreen mode

When you scan this workflow with zizmor (1.33.1) or CodeQL ( codeql/[email protected] ):

Both report zero dataflow findings.

That is not a bug in either scanner.…

Continue reading β€” create a free account

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