github-actions

A set of rules for configuring GitHub Actions, GitHub's service for running automated jobs when repository events occur.

In plain words
What is it for?
Writing or editing workflow YAML files, choosing runners, handling public-repository pull requests, and setting up tools when the runner has no administrator access.
Why use it?
It helps keep workflows on the intended self-hosted machines, avoid unnecessary hosted-runner charges, and protect those machines from code in forked pull requests.

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

Made for: Claude Code, Codex.

Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,702 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00096 $0.02702
Opus 5 $0.00048 $0.01351
Sonnet 5 $0.00019 $0.00540
Haiku 4.5 $0.00010 $0.00270

Measured yesterday against content hash c2b671af796f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

github-actions scanned grade B with 2 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 yesterday.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

## The runner has no sudo — make tooling hermetic

Makes network callslowCapability

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

`pipx`, `cargo`, `bun` or `actionlint` on PATH. It *does* have git, curl, node,
modules/agents/skills/github-actions/SKILL.md · 219 lines

How it starts

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

GitHub Actions conventions

Default: jobs run on taffy's self-hosted pool. GitHub-hosted runners are billed per minute and are the exception, taken deliberately and with a comment saying why.

This exists because the account drifted to $1.02/day on hosted Linux minutes while nominally "using self-hosted runners" — 61% of it one repo whose ci.yml had never been migrated. Silent drift back to paid runners is the failure mode every rule below is shaped against.

The two runs-on forms

Copy one of these. Do not invent a third.

Private repo:

    runs-on: >-
      ${{ vars.CI_FALLBACK == 'true'
      && 'ubuntu-latest'
      || fromJSON('["self-hosted", "linux", "x64", "taffy"]') }}

Public repo whose workflow has a pull_request trigger — a fork PR runs arbitrary code and must never reach taffy:

    runs-on: >-
      ${{ ((github.event_name == 'pull_request'
      && github.event.pull_request.head.repo.full_name != github.repository)
      || vars.CI_FALLBACK == 'true')
      && 'ubuntu-latest'
      || fromJSON('["self-hosted", "linux", "x64", "taffy"]') }}

A public workflow with no pull_request trigger (release, nightly sync) needs no guard — only people with write access can fire it.

Two traps in that guard, both of which shipped broken once:

  • Compare repo names; never use github.event.pull_request.head.repo.fork. That flag asks "is the head repo a fork of anything", not "did this PR come from elsewhere". DJRHails/agent-browser and pi-interactive-subagents are themselves forks of their upstreams, so the flag is permanently true there and routed every job to the billed runner — a silent, total no-op of the migration that only showed up by reading .labels on a finished job.
  • github.event_name == 'pull_request' && is load-bearing. On push, github.event.pull_request is null, so head.repo.full_name is null, and null != 'DJRHails/repo' is true — without the event check, every push would route to hosted.

Read the full file on GitHub · 219 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. yesterday First seen · 219 lines · 96 tokens per session scan B c2b671af796f

Subscribe to this mod's changes

github-actions is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed 7d ago), licensed MIT. It adds 96 tokens to every session and 2,702 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

autopilot-batch

Fan out a batch of autopilot-queued issues to parallel background worktree subagents — each runs /autopilot at the build model from its 'model:' label — with a gating review at Opus 5 or above and never below the build (Opus reviews Sonnet and Opus builds, Fable reviews Fable builds).

joshukraine/dotfiles · 75 tokens

todoist-cli

Manage Todoist tasks, projects, labels, filters, sections, comments, reminders, and workspaces via the td CLI. Use when the user wants to view, create, update, complete, or organize Todoist items, or mentions tasks, inbox, today, upcoming, projects, labels, or filters.

joshukraine/dotfiles · 68 tokens

autopilot

Carry a well-scoped GitHub issue through the full dev loop autonomously, stopping at a per-run tier boundary (PR-ready, or merge+deploy for small reversible changes).

joshukraine/dotfiles · 40 tokens

qa-handoff

Generate a hands-on QA testing guide as a self-contained HTML page — for Rails apps or static (Hugo) sites. --publish uploads the HTML to the project's configured QA host.

joshukraine/dotfiles · 41 tokens

walkthrough

Generate a hands-on browser walkthrough of a PR's user-facing changes to exercise before review; --publish posts the final version to the PR for QA.

joshukraine/dotfiles · 33 tokens

dustoff

Assess a project that's been dormant for months and produce a prioritized re-entry plan — lifecycle stage, what's stale or broken, and how far the project's tooling has drifted from current conventions — delegating every fix to the skill that owns it, and optionally capturing the plan as a tracking issue that survives…

joshukraine/dotfiles · 64 tokens