github-actions

Guidance for building GitHub Actions workflows, which are automated jobs that run tasks such as testing, building, and releasing code. It focuses on security, dependency caching, reusable workflows, and build artifacts.

In plain words
What is it for?
Use it when setting up GitHub Actions CI/CD, including matrix builds, dependency caching, artifact handling, reusable workflows, and restrictive permissions.
Why use it?
It helps reduce supply-chain and permission risks in automation while keeping repeated builds efficient and easier to maintain.

Skill for Claude CodeCodex

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 skills/neverinfamous/memory-journal-mcp/github-actions
Any agent
npx skills add neverinfamous/memory-journal-mcp --skill github-actions
Clone the repo
git clone --depth 1 https://github.com/neverinfamous/memory-journal-mcp

Made for: Claude Code, Codex.

Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,084 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.00121 $0.02084
Opus 5 $0.00060 $0.01042
Sonnet 5 $0.00024 $0.00417
Haiku 4.5 $0.00012 $0.00208

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

Security

Grade A, and why

github-actions 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 2d 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.

skills/github-actions/SKILL.md · 263 lines

How it starts

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

GitHub Actions CI/CD Engineering Standards

This skill codifies 2026 GitHub Actions best practices — secure supply chains, efficient caching, reusable workflows, and hardened permission models.

1. Security: SHA Pinning (Mandatory)

Pin Every Third-Party Action to a Commit SHA

# ✅ Good: SHA-pinned (immutable, auditable)
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.2.2
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde8c81c89c3166c0 # v4.2.0

# ❌ Bad: Tag-pinned (mutable, vulnerable to supply chain attacks)
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
  • ALWAYS pin to full-length commit SHAs — tags are mutable and can be hijacked
  • ALWAYS add a trailing comment with the version for human readability
  • Use tools like step-security/harden-runner or pin-github-action CLI to automate SHA resolution
  • Resolve SHA Manually: See templates.md for the gh api command to resolve SHAs.
  • Audit quarterly — review all pinned SHAs when updating workflow dependencies

Permission Hardening

# Set restrictive defaults at the workflow level
permissions:
  contents: read

jobs:
  build:
    runs-on: ubuntu-latest
    # Grant specific permissions per-job
    permissions:
      contents: read
      packages: write
  • ALWAYS set permissions: at the workflow level — use read-all or specify individually
  • NEVER use permissions: write-all — it grants maximum privileges
  • Grant write only where needed — per-job, not per-workflow

2. Workflow Structure

Standard CI Template

See templates.md for a complete, production-ready CI workflow template.

Key Structural Rules

  • ALWAYS set concurrency with cancel-in-progress: true to prevent stale runs
  • Use needs: to create a dependency chain: lint → test → build → deploy
  • Use .node-version or .python-version files — never hardcode versions in workflows
  • Use --frozen-lockfile — never let CI modify the lock file

Read the full file on GitHub · 263 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago First seen · 263 lines · 121 tokens per session scan A 4b90e3e6aa5c

Subscribe to this mod's changes

github-actions is a skill published in the GitHub repository neverinfamous/memory-journal-mcp (20 stars, last pushed 1mo ago), licensed MIT. It adds 121 tokens to every session and 2,084 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

mykg-github-pages

Set up and maintain the GitHub Pages site for the mykg repo (SenolIsci/mykg) — a purpose-built pages/ folder (landing page adapted from README.md, blog posts, diagrams), built by a GitHub Actions workflow that runs Jekyll and deploys the result to a gh-pages branch. Use whenever the user wants to publish project…

SenolIsci/mykg · 228 tokens

gate-probe

Prove a gate before trusting it. Inventory violations, plant a defect, verify RED, restore GREEN, prevent idle scans, and confirm automatic wiring.

wlsdks/ontology-atlas · 34 tokens

kindex-capture

Capture a specific piece of knowledge, constraint, or decision to the Kindex knowledge graph. Use when the user says "remember this", "add this to kindex", or "this is important".

jmcentire/kindex · 45 tokens

kindex-learn

Extract knowledge from the current conversation and add it to the Kindex graph. Use at session end or after producing valuable discoveries, decisions, or insights.

jmcentire/kindex · 35 tokens

kindex-prime

Load relevant context from the Kindex knowledge graph at session start. Orients Claude with project knowledge, active constraints, and watches.

jmcentire/kindex · 31 tokens

deployment-cicd

Production-ready CI/CD pipelines, container images, and release patterns. Use when designing a CI pipeline, writing Dockerfiles, choosing between blue-green / canary / rolling, setting up semantic versioning, defining a rollback playbook, or migrating from manual deploys to GitOps. Stack-agnostic; recipes target…

kouroshez/coding-os · 101 tokens