check-updates

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

A command that checks deployed GitHub Actions workflows for outdated version pins and installed command-line tool versions. A SHA pin is a fixed identifier for a particular action revision.

In plain words
What is it for?
Use it to scan workflow files, compare pinned actions with their latest tags through GitHub, and review installed CLI versions.
Why use it?
It helps reveal when workflows are still using older action revisions or tool versions, including cases where the same action appears in multiple workflows.

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/check-updates
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 check-updates

README.md
[![agentmods](https://agentmods.dev/badge/commands/sbom-tool/gh-guard/check-updates.svg)](https://agentmods.dev/commands/sbom-tool/gh-guard/check-updates)
Your own site
<a href="https://agentmods.dev/commands/sbom-tool/gh-guard/check-updates"><img src="https://agentmods.dev/badge/commands/sbom-tool/gh-guard/check-updates.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 780 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.00019 $0.00780
Opus 5 $0.00010 $0.00390
Sonnet 5 $0.00004 $0.00156
Haiku 4.5 $0.00002 $0.00078

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

Security

Grade A, and why

check-updates 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 5d 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/check-updates.md · 87 lines

How it starts

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

/check-updates — SHA Pin Staleness Checker

Check deployed GitHub Actions workflow files for outdated SHA pins by comparing against the latest tags.

Workflow

Step 1: Find Deployed Workflows

Load templates/versions.json from the gh-guard plugin directory as the source of truth for expected versions. Then scan .github/workflows/*.yml for all uses: lines that reference SHA-pinned actions.

Extract each action reference into a list:

actions/checkout@de0fac2e...  (comment: v6.0.2)
dtolnay/rust-toolchain@efa25f...  (no version comment)

Step 2: Check Each Action for Updates

For each unique action, query the latest release or tag:

# Get latest release tag
gh api repos/OWNER/REPO/releases/latest --jq '.tag_name' 2>/dev/null

# Get the SHA for a tag
gh api repos/OWNER/REPO/git/ref/tags/TAG --jq '.object.sha' 2>/dev/null

Compare the pinned SHA against the latest tag's SHA.

Rate limiting: GitHub API has rate limits. Cache results for actions that appear in multiple workflows. If rate-limited, show what was checked and suggest re-running later.

Step 3: Check CLI Tool Versions

For workflows that install CLI tools (e.g., cargo install cargo-audit --version X.Y.Z):

  • Extract the pinned version
  • Check latest version on crates.io: cargo search cargo-audit --limit 1
  • Flag if a newer version exists

Step 4: Generate Report

## SHA Pin Status Report

### Actions

| Action | Pinned | Current | Latest | Status |
|--------|--------|---------|--------|--------|
| actions/checkout | de0fac2... | v6.0.2 | v6.0.2 | ✅ Up to date |
| dtolnay/rust-toolchain | efa25f7... | master | master | ✅ Up to date |
| ossf/scorecard-action | 4eaacf0... | v2.4.3 | v2.5.0 | ⚠️ Update available |

### CLI Tools

| Tool | Pinned | Latest | Status |
|------|--------|--------|--------|
| cargo-audit | 0.21.2 | 0.22.0 | ⚠️ Update available |

### Update Instructions

For each outdated action:
1. Verify the changelog: `gh api repos/OWNER/REPO/releases/latest --jq '.body' | head -20`
2. Get the new SHA: `gh api repos/OWNER/REPO/git/ref/tags/TAG --jq '.object.sha'`
3. Update the `uses:` line and version comment in the workflow
4. Update `templates/VERSIONS.md` if using gh-guard templates

Read the full file on GitHub · 87 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. 5d ago First seen · 87 lines · 19 tokens per session scan A 0b246e5b84f9

Subscribe to this mod's changes

check-updates is a command published in the GitHub repository sbom-tool/gh-guard (15 stars, last pushed 5mo ago), licensed MIT. It adds 19 tokens to every session and 780 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.