codeql-permissions-auditor

codeql-permissions-auditor is an agent for Claude Code from dryvist/claude-code-plugins. It costs 48 tokens per session (1,443 once invoked), scanned A, original, Apache-2.0.

An agent that reviews CodeQL security alerts in GitHub Actions workflows. CodeQL is GitHub's tool for finding security problems in code and automation files.

In plain words
What is it for?
It is for fixing workflow permission alerts, including jobs that call reusable workflows or use actions such as checkout, pull requests, or issues.
Why use it?
It helps identify which permissions a workflow job needs and add explicit limits, reducing overly broad access.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is uses: ./.github/workflows/_.yml # Original.

Part of the codeql-resolver plugin — 2 skills, 1 command, 3 agents shipped together

Good fit It is for fixing workflow permission alerts, including jobs that call reusable workflows or use actions such as checkout, pull requests, or issues.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dryvist/claude-code-plugins
agentmods
npx agentmods add agents/dryvist/claude-code-plugins/codeql-permissions-auditor

Made for: Claude Code.

Or install codeql-resolver, the plugin that ships this one along with the rest of its 2 skills, 1 command, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for codeql-permissions-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/dryvist/claude-code-plugins/codeql-permissions-auditor/github.svg)](https://agentmods.dev/agents/dryvist/claude-code-plugins/codeql-permissions-auditor)
Your own site
<a href="https://agentmods.dev/agents/dryvist/claude-code-plugins/codeql-permissions-auditor"><img src="https://agentmods.dev/badge/agents/dryvist/claude-code-plugins/codeql-permissions-auditor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codeql-permissions-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/dryvist/claude-code-plugins/codeql-permissions-auditor"><img src="https://agentmods.dev/badge/agents/dryvist/claude-code-plugins/codeql-permissions-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.01443
Opus 5.5 $0.00019 $0.00577
Sonnet 5.5 $0.00010 $0.00289
Haiku 4.5 $0.00005 $0.00144

Measured 24d ago against content hash 8a602ffef40b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codeql-permissions-auditor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

3. Script operations (curl, git commands) -> Usually `contents: read`
codeql-resolver/agents/codeql-permissions-auditor.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CodeQL Permissions Auditor

Fix "Workflow does not contain permissions" CodeQL alerts by analyzing and adding explicit permission blocks to GitHub Actions jobs.

When to invoke

  • Job without permissions. A CodeQL alert identifies a workflow job without an explicit permission block; inspect its steps and declare the minimum permissions.
  • Reusable workflow caller. A request asks to resolve a permissions alert on a reusable workflow call; inspect the callee and apply its caller contract.

Input

{
  "alerts": [
    {
      "number": 1,
      "location": ".github/workflows/ci-gate.yml",
      "line_number": 103,
      "message": "Actions job or workflow does not limit the permissions..."
    }
  ],
  "batch_size": 5
}

Workflow per Alert

1. Parse Alert Context

  • Extract workflow file path and approximate line number
  • Open the file and identify the job that needs fixing
  • Check if job calls reusable workflow (uses: ./.github/workflows/...) or runs steps

2. Analyze Permission Requirements

For reusable workflow calls:

  • Read the called workflow file (e.g., ./.github/workflows/_cclint.yml)
  • Extract all jobs within and their permission blocks
  • Union all permissions from nested jobs
  • Apply caller contract rule: "Caller must declare permissions for all jobs in callee"

For regular step jobs:

  • Scan steps for which actions/tools are used
  • Map each to required permissions:
    • actions/checkout -> contents: read
    • pull-requests operations -> pull-requests: write
    • issues operations -> issues: write
    • artifact operations -> actions: read or contents: read
    • Custom actions -> Inspect action.yml for required permissions

3. Determine Minimum Permissions

Apply hierarchy:

  1. Explicit permissions in reusable workflow -> Required
  2. GitHub actions used in steps -> Required
  3. Script operations (curl, git commands) -> Usually contents: read
  4. No operations at all -> Empty permissions: {}

Read the full file on GitHub · 214 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · +12 lines · +36 tokens per session 8a602ffef40b
  2. 1mo ago Changed · -1 lines 7c7e1c3c0694
  3. 2mo ago Changed · +1 lines b38987446fae
  4. 3mo ago First seen · 202 lines · 12 tokens per session scan A 756518f6d538

Subscribe to this mod's changes

codeql-permissions-auditor is an agent published in the GitHub repository dryvist/claude-code-plugins (3 stars, last pushed 15d ago), licensed Apache-2.0. It adds 48 tokens to every session and 1,443 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

codeql-permissions-auditor compared with agents from other repositories

codeql-permissions-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codeql-permissions-auditordryvist/claude-code-pluginsAgent315d agoApache-2.0A48Claude Code
monetization-experttravisjneuman/.claudeAgent115todayMITA18Claude Code
security-reviewermyclaude-sh/myclaude-creator-engineAgent257d agoMITA33Claude Code
perf-theory-testercomposio-community/awesome-claude-pluginsAgent2.0k27d agononeA22Claude Code
qa-testerDevZonayed/MochiAgent328d agoMITA60Claude Code
memory-keeperDiablorosso67/multi-ai-memoryAgent46mo agoMITA116Claude Code
agent-organizerqdhenry/Claude-Command-SuiteAgent1.4k9mo agononeA66Claude Code