verify

verify is a command for coding agents from sbom-tool/gh-guard. It costs 12 tokens per session (880 once invoked), scanned A, original, MIT.

A command that checks generated supply-chain security configuration files, including GitHub workflows, dependency policies, and release scripts.

In plain words
What is it for?
It scans for expected files, validates YAML, checks workflow structure and permissions, and verifies that action references use fixed commit hashes.
Why use it?
It catches invalid syntax, missing safeguards, inconsistent settings, and unpinned workflow actions before deployment.

Command

Part of the gh-guard plugin — 14 skills, 5 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sbom-tool/gh-guard/verify
Clone the repo
git clone --depth 1 https://github.com/sbom-tool/gh-guard

Or install gh-guard, the plugin that ships this one along with the rest of its 14 skills, 5 commands.

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 verify

README.md
[![agentmods](https://agentmods.dev/badge/commands/sbom-tool/gh-guard/verify.svg)](https://agentmods.dev/commands/sbom-tool/gh-guard/verify)
Your own site
<a href="https://agentmods.dev/commands/sbom-tool/gh-guard/verify"><img src="https://agentmods.dev/badge/commands/sbom-tool/gh-guard/verify.svg" alt="Measured on agentmods" 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 880 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00012 $0.00880
Opus 5 $0.00006 $0.00440
Sonnet 5 $0.00002 $0.00176
Haiku 4.5 $0.00001 $0.00088

Measured 3d ago against content hash 5c4db04c9775, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

verify scanned grade A with 0 findings 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 3d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/verify.md · 105 lines

How it starts

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

/verify — Post-Generation Validation

Verify that generated supply chain security configs are syntactically valid, internally consistent, and ready to deploy.

Workflow

Step 1: Find Generated Files

Scan for gh-guard artifacts:

  • .github/workflows/*.yml — all workflow files
  • deny.toml — cargo-deny configuration
  • rust-toolchain.toml — toolchain pinning
  • .github/dependabot.yml — Dependabot config
  • SECURITY.md — security policy
  • scripts/release.sh — release script
  • osv-scanner.toml — OSV scanner config

Report which files are present.

Step 2: YAML Syntax Validation

For each YAML file found:

  1. Sanitize GitHub Actions ${{ }} expressions (replace with safe placeholders)
  2. Validate YAML structure using python3 -c 'import yaml; yaml.safe_load(...)' or yq
  3. Report: valid / invalid with error location

Step 3: Workflow Structure Validation

For each GitHub Actions workflow, check:

Required fields:

  • name: is present
  • on: trigger is defined
  • permissions: is set at workflow level
  • Each job has runs-on:

SHA pinning:

  • All uses: lines reference a full 40-char SHA (not a tag like @v4)
  • Exception: SLSA generator (slsa-github-generator) must use @tag
  • Version comments are present (e.g., # v6.0.2)

Security practices:

  • persist-credentials: false on checkout steps
  • fetch-depth: 0 in publish workflow (for ancestry verification)
  • --locked flag on cargo install commands

Step 4: cargo-deny Validation

If deny.toml exists:

  1. Run cargo deny check --hide-inclusion-graph 2>&1 (if cargo-deny is installed)
  2. Report any license violations, banned crates, or advisory findings
  3. If not installed, check TOML syntax validity only

Step 5: Cross-File Consistency

Check relationships between files:

  • CI gate job: Does the CI workflow have a gate job with if: always() and needs: referencing all other jobs?
  • MSRV consistency: Does rust-toolchain.toml channel match the MSRV used in CI workflow?
  • Publish workflow references: If publish workflow references an environment name, note it for user to create
  • Fuzz targets: If fuzz workflow exists, does it reference targets that match fuzz/Cargo.toml [[bin]] entries?
  • Dependabot ecosystems: Does dependabot.yml cover both github-actions and cargo?

Read the full file on GitHub · 105 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. 3d ago First seen · 105 lines · 12 tokens per session scan A 5c4db04c9775

Subscribe to this mod's changes

verify is a command published in the GitHub repository sbom-tool/gh-guard (15 stars, last pushed 5mo ago), licensed MIT. It adds 12 tokens to every session and 880 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.