Introduction¶
Integrating Claude Code Action, OpenAI Codex, Gemini CLI, or GitHub AI Inference into CI is becoming increasingly common: using Agents to automatically review PRs, modify code, and run inference. Such steps often touch repository permissions, secrets, and context derived from externally triggerable GitHub events. If attacker-controlled input is fed directly or indirectly into the Agent’s prompt, or if sandbox and tool permissions are configured too broadly, static analysis of the workflow YAML can easily miss paths such as “environment variable intermediary.”
Below is an introduction to the agentic-actions-auditor provided by Trail of Bits in the skills marketplace: a set of static audit guidelines for GitHub Actions that teaches Agents how to discover workflows, identify AI Action steps, and report risks related to prompt injection and sandbox configuration. It is an analytical guide, not a tool for automatically modifying files, nor does it perform runtime exploit testing.
What is this¶
agentic-actions-auditor is a loadable Skill (in SKILL.md format) for environments like Claude Code / Codex. It belongs to the Trail of Bits Skills Marketplace, with the plugin directory located at plugins/agentic-actions-auditor/.
The official description summarizes it as: static security analysis of GitHub Actions workflows that invoke AI coding Agents, covering integrations such as Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference; detecting paths where attacker-controlled input reaches AI Agents running in CI/CD, including environment variable intermediaries, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists.
The Skill declares the allowed tools as: Read, Grep, Glob, Bash (Bash is used solely for fetching remote repository workflows via gh api, and the fetched YAML must not be executed as shell code).
Core Features¶
Audit Scope and Targets for Identification¶
According to the official “Known AI Action References” table, match the following Actions by the prefix before @ in the uses: field for each job step (and job-level uses: that requires attention) (ignore version/ref):
| Action Reference | Type |
|---|---|
anthropics/claude-code-action |
Claude Code Action |
google-github-actions/run-gemini-cli |
Gemini CLI |
google-gemini/gemini-cli-action |
Gemini CLI (legacy/archived) |
openai/codex-action |
OpenAI Codex |
actions/ai-inference |
GitHub AI Inference |
In addition to the main workflow, it follows uses: to track composite actions and reusable workflows to ensure AI steps are not hidden in referenced files.
Methodology Key Points¶
The audit proceeds step-by-step (based on the Audit Methodology in the materials):
- Analysis Mode: If the user provides a GitHub repository URL or
owner/repo(optional@ref), use remote mode; otherwise, use Glob to scan.github/workflows/*.ymland*.yamlin the local repository root (do not scan subdirectories, vendor folders, or test fixtures). - Discover Workflows: Count the number of files; if no files exist, stop and report.
- Identify AI Action Steps: Match
uses:against the table above. - Collect Security-Relevant Configurations: Trigger events,
env:, prompt-related fields, sandbox and tool permissions, user allowlists, etc. - Detect Attack Vectors: Focus on the data flow from GitHub event context →
env:→ Agent prompt, as well as direct${{ }}injection and dangerous sandbox entries.
When fetching workflows remotely, the official requirement is to use gh api in two steps: first list the directory, then fetch the file content by decoding base64; if a ref is specified, every API call must include ?ref={ref}. gh auth status is not required beforehand; if a failure occurs, prompt for authentication or permission issues.
Common Misjudgments (To Refute During Audit)¶
The Skill explicitly lists four types of self-reassuring reasons that should not be accepted during the audit, for example:
- Only maintainer PRs so it’s safe — ignoring externally triggerable events like
pull_request_target,issue_comment. allowed_toolsis restricted — restricted tools can still be abused (e.g., leaking environment via subshells).- No
${{ }}in the prompt — the classic env var intermediary: data enters the prompt viaenv:, and the YAML looks clean on the surface. - The sandbox is sufficient —
danger-full-access,Bash(*),--yolo, etc., disable protections; improper configuration may still allow reading secrets or mounted files.
What It Definitely Does Not Do¶
- Workflows without AI Agents: should switch to generic Actions security tools.
- Auditing composite/reusable files individually without caller workflow context: not applicable; should use this Skill within the workflow that references them.
- Non-GitHub CI (Jenkins, GitLab CI, CircleCI, etc.).
- Automatically modify workflows; it only reports findings.
Installation and Activation¶
The Skill is distributed via the trailofbits/skills marketplace. After installing the marketplace, simply install agentic-actions-auditor from the plugin menu.
Claude Code:
/plugin marketplace add trailofbits/skills
Then browse and install the corresponding plugin via /plugin menu.
Codex:
codex plugin marketplace add trailofbits/skills
codex plugin list
codex plugin add <plugin-name>@trailofbits
(Replace <plugin-name> with the plugin name in the marketplace; agentic-actions-auditor is under the Code Auditing category.)
For local development, execute in the parent directory of the skills repository:
/plugins marketplace add ./skills
ChatGPT Workspace can import via the .claude-plugin/marketplace.json in the repository; for Cursor-specific installation methods, refer to your current environment documentation, as the official page for this Skill does not list separate Cursor steps.
Skill本体路径 (Skill Body Path):
https://github.com/trailofbits/skills/tree/main/plugins/agentic-actions-auditor/skills/agentic-actions-auditor
Typical Usage¶
In an Agent conversation where this Skill is enabled, simply initiate an audit according to the scenario, for example:
- “Audit the security configuration of AI Agents in this repository’s GitHub Actions.”
- “Check the workflow of
owner/repoto see if external input can reach the prompt of Claude/Codex.” - “Review CI/CD configurations that invoke Claude Code Action” — consistent with the official “When to Use” statement.
Local Mode: The Agent uses Glob to find YAML files under .github/workflows/, reads the content, and generates a report according to the methodology.
Remote Mode: Provide owner/repo, owner/repo@ref, or https://github.com/owner/repo (and forms like tree/main/...). The Agent uses commands like the following to fetch files (the example lists the directory):
gh api repos/{owner}/{repo}/contents/.github/workflows --paginate --jq '.[].name'
Single file content:
gh api repos/{owner}/{repo}/contents/.github/workflows/{filename} --jq '.content | @base64d'
Upon completion, you should see a summary of the number of workflows, AI Action instances, and findings; if there are no workflows, the format is similar to: “Analyzed 0 workflows, 0 AI action instances, 0 findings in owner/repo”.
Use Cases and Notes¶
Suitable for:
- Repository or organization already using or planning to use the above AI Actions in CI.
- Security review, self-check before open source contribution: checking if triggers are exposed to fork PRs, issue comments, etc.;
pull_request_targetand base branch context. - Evaluating sandbox, tool permissions,
allowed_usersand other agentic configurations, rather than just looking at prompt strings.
Limitations:
- Static analysis guidelines; cannot replace runtime prompt injection testing.
- Remote analysis depends on
ghauthentication and token permissions for private repositories. - Fetched YAML is only for data analysis; the Skill prohibits piping it to an interpreter or using
evalvia Bash.
Conclusion¶
agentic-actions-auditor brings “running Agents in CI” back from a functional issue to a data flow and configuration issue: who can trigger the workflow under which events, how external input enters the prompt, and whether the sandbox is effectively dead in name only. If teams are implementing Claude, Codex, Gemini, or GitHub AI Inference in their pipelines, they can add this step of static audit to their code review process.
Official Skill Directory:
https://github.com/trailofbits/skills/tree/main/plugins/agentic-actions-auditor/skills/agentic-actions-auditor
Marketplace Overview and Installation Instructions:
https://github.com/trailofbits/skills