harden-github-actions

harden-github-actions is a skill for Claude Code from jrjsmrtn/project-orchestration-skills. It costs 101 tokens per session (6,269 once invoked), scanned B, original, MIT.

Security instructions for GitHub Actions, the service GitHub uses to run automated build and deployment jobs. They cover locking actions to exact versions, limiting permissions, checking installed tools, and creating build-origin records.

In plain words
What is it for?
Use them when creating or reviewing files in `.github/workflows/`, checking CI supply-chain risks, or preparing a repository for a security review.
Why use it?
They reduce the chance that a changed or compromised dependency in a workflow can alter builds or access more of the repository than needed. They also help identify gaps before a repository becomes public.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the project-orchestration-skills plugin — 13 skills shipped together

Good fit Use them when creating or reviewing files in .github/workflows/, checking CI supply-chain risks, or preparing a repository for a security review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jrjsmrtn/project-orchestration-skills/harden-github-actions
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.

Any agent
npx skills add jrjsmrtn/project-orchestration-skills --skill harden-github-actions
Clone the repo
git clone --depth 1 https://github.com/jrjsmrtn/project-orchestration-skills

Made for: Claude Code.

Or install project-orchestration-skills, the plugin that ships this one along with the rest of its 13 skills.

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 harden-github-actions

README.md
[![agentmods](https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/harden-github-actions/github.svg)](https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/harden-github-actions)
Your own site
<a href="https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/harden-github-actions"><img src="https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/harden-github-actions/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 harden-github-actions

Your own site · 80×15
<a href="https://agentmods.dev/skills/jrjsmrtn/project-orchestration-skills/harden-github-actions"><img src="https://agentmods.dev/badge/skills/jrjsmrtn/project-orchestration-skills/harden-github-actions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,269 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00101 $0.06269
Opus 5.5 $0.00040 $0.02508
Sonnet 5.5 $0.00020 $0.01254
Haiku 4.5 $0.00010 $0.00627

Measured 15d ago against content hash 4d43cc33bfd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

harden-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 15d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/check-action-pins.sh, scripts/check-dco.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

A CI job runs third-party code (actions, installed tools) with a `GITHUB_TOKEN` and often OIDC. A mutable action tag (`@v4`) can be repointed to malicious code; an over-privileged token can push commits, publish packages

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

A CI job runs third-party code (actions, installed tools) with a `GITHUB_TOKEN` and often OIDC. A mutable action tag (`@v4`) can be repointed to malicious code; an over-privileged token can push commits, publish packages
skills/harden-github-actions/SKILL.md · 449 lines

How it starts

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

Harden GitHub Actions

Harden GitHub Actions CI/CD workflows against supply-chain attack: pin what runs, minimise what it can do, and verify what it fetches.

GitHub-specific by design. Unlike most orchestration skills, this one is deliberately bound to one forge. The hardening controls below are not portable concepts wearing GitHub syntax — they are properties of the GitHub Actions execution model itself: third-party actions resolved by mutable git ref, an ambient GITHUB_TOKEN with repository-wide default scopes, and OIDC-backed SLSA provenance. It has a sibling, harden-gitlab-ci, which is not a translation of this skill: GitLab's risks sit in different places (include:/CI-Catalog components, and a CI_JOB_TOKEN that defaults to own-project-only — so there the work is keeping it scoped, the opposite posture from here). Forgejo Actions is Actions-compatible in shape but resolves actions against its instance's configured registry, so pinning guidance does not transfer unchanged (roadmap H9).

When to Use

  • When adding GitHub Actions workflows to a project (after setup-git-hooks)
  • When auditing existing .github/workflows/ before making a repository public
  • When a supply-chain review (or the supply-chain skill) flags CI hardening gaps
  • When standardising CI hardening across GitHub projects

Not for: GitLab CI — use harden-gitlab-ci. Not for Forgejo/Gitea Actions — the controls do not carry over unchanged. Say so rather than approximating.

This skill hardens CI workflows. validate-quality-config only reads CI to confirm parity with local hooks — it does not check pinning, permissions, or provenance. The two are complementary.

Required Inputs

  1. Workflow files — the project's .github/workflows/*.yml
  2. Release model — does the project publish artifacts/images/packages (needs provenance + signing), or is it internal-only?
  3. Repository visibility — public or private (affects Scorecard publish_results and OSSF publishing)

Read the full file on GitHub · 449 lines

Files

What ships with it

2 files 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. 15d ago Changed · -99 lines 4d43cc33bfd0
  2. 16d ago Changed · +242 lines 80dc9d1c88b2
  3. 26d ago Changed 7590ff58d64b
  4. 2mo ago Changed c4d03aec745c
  5. 3mo ago First seen · 306 lines · 101 tokens per session scan B 55e48c331b47

Subscribe to this mod's changes

harden-github-actions is a skill published in the GitHub repository jrjsmrtn/project-orchestration-skills (19 stars, last pushed 2d ago), licensed MIT. It adds 101 tokens to every session and 6,269 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

harden-github-actions compared with skills from other repositories

harden-github-actions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
harden-github-actionsjrjsmrtn/project-orchestration-skillsSkill192d agoMITB101Claude Code
dev-envflipbook-labs/flipbookSkill127yesterdayMITA121Claude Code
releaseflipbook-labs/flipbookSkill127yesterdayMITA78Claude Code
architecture-decision-record-maintainer-skillarchitecture-decision-record/architecture-decision-recordSkill18kyesterdaynoneA92Claude Code, Codex
architecture-decision-record-skillarchitecture-decision-record/architecture-decision-recordSkill18kyesterdaynoneA108Claude Code, Codex
factory-releasetikalk/adlc-team-skillsSkill147todayMITA72Claude Code, Codex
cpv-publish-to-marketplaceEmasoft/claude-plugins-validationSkill4yesterdayMITA39Claude Code