CodeQL Permissions Auditor

CodeQL Permissions Auditor is an agent for Claude Code from dryvist/claude-code-plugins. It costs 12 tokens per session (1,329 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: allowed-tools 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 12 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,329 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.00012 $0.01329
Opus 5.5 $0.00005 $0.00532
Sonnet 5.5 $0.00002 $0.00266
Haiku 4.5 $0.00001 $0.00133

Measured 24d ago against content hash b38987446fae, 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 · 203 lines

How it starts

The opening of the file, as written. The whole thing — 203 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.

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: {}

4. Apply Fix

Edit the workflow file:

job-name:
  name: Display Name
  needs: changes                    # Original
  if: condition                     # Original
  permissions:                      # ← ADD THIS
    contents: read                  # Minimum
    pull-requests: write            # If needed
  uses: ./.github/workflows/_.yml   # Original
  with:                             # Original
    ...

Read the full file on GitHub · 203 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 · +1 lines b38987446fae
  2. 1mo 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 today), licensed Apache-2.0. It adds 12 tokens to every session and 1,329 once invoked, about $0.0000 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

Other agents, from other repositories

deep-research-patcher

Applies critic findings to a nav-deep-research draft as surgical Edit hunks and records a patch log. Tool-locked so it cannot regenerate the report. Spawned once at step 5 by the nav-deep-research skill.

qf-studio/navigator · 55 tokens

migration-specialist

Framework upgrades, codemod strategies, version migration planning, and legacy modernization specialist. Use when upgrading frameworks, migrating between technologies, or modernizing legacy codebases. Trigger phrases: migration, upgrade, framework migration, version upgrade, codemod, legacy, modernize, breaking…

travisjneuman/.claude · 67 tokens

monetization-expert

Expert in revenue models, pricing strategy, and business monetization.

travisjneuman/.claude · 18 tokens

review-rails

Rails conventions and architecture reviewer for PR audits. Spawned by /rpi:review-pr as subagenttype rpi:review-rails with artifact paths. Ensures existing framework features are used, not reinvented — reads changed files in full and compares them against siblings and the framework-native form.

hoblin/claude-ruby-marketplace · 64 tokens

qa-tester

Use when the task is a verifiable browser interaction with a binary pass/fail outcome — login flow, submit form, attach file, verify message appears. Returns a verdict + evidence. Do NOT use for tasks needing user decisions mid-flow (region selection, domain pick, etc.).

DevZonayed/Mochi · 60 tokens

memory-keeper

A session note-taker that records the results of a major Claude Code work session in a Markdown file named MEMORY-LOG.md.

Diablorosso67/multi-ai-memory · 116 tokens