github-actions-security-hardening

github-actions-security-hardening is a skill for Claude Code from chf3198/copilot-governance. It costs 33 tokens per session (604 once invoked), scanned A, original, MIT.

A security review and hardening process for GitHub Actions, the automation workflows that run in a repository. It checks permissions, dependencies, secrets, cloud credentials, code ownership, and the security of build runners.

In plain words
What is it for?
Use it to review repository or organization workflows, enforce least-privilege tokens, pin actions to commit versions, prefer OIDC credentials, check CODEOWNERS coverage, and assess hosted or self-hosted runners.
Why use it?
It reduces risks from overly broad tokens, untrusted workflow code, leaked secrets, unsafe third-party actions, and weak runner controls. It can audit, plan, remediate, or verify within stated approval limits.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to review repository or organization workflows, enforce least-privilege tokens, pin actions to commit versions, prefer OIDC credentials, check CODEOWNERS coverage, and assess hosted or self-hosted runners.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chf3198/copilot-governance/github-actions-security-hardening
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 chf3198/copilot-governance --skill github-actions-security-hardening
Clone the repo
git clone --depth 1 https://github.com/chf3198/copilot-governance

Made for: Claude Code.

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 github-actions-security-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/chf3198/copilot-governance/github-actions-security-hardening/github.svg)](https://agentmods.dev/skills/chf3198/copilot-governance/github-actions-security-hardening)
Your own site
<a href="https://agentmods.dev/skills/chf3198/copilot-governance/github-actions-security-hardening"><img src="https://agentmods.dev/badge/skills/chf3198/copilot-governance/github-actions-security-hardening/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 github-actions-security-hardening

Your own site · 80×15
<a href="https://agentmods.dev/skills/chf3198/copilot-governance/github-actions-security-hardening"><img src="https://agentmods.dev/badge/skills/chf3198/copilot-governance/github-actions-security-hardening.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00033 $0.00604
Opus 5.5 $0.00013 $0.00242
Sonnet 5.5 $0.00007 $0.00121
Haiku 4.5 $0.00003 $0.00060

Measured 3mo ago against content hash 0d2f4084fb82, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-actions-security-hardening 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 3mo 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-security-hardening/SKILL.md · 74 lines

How it starts

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

GitHub Actions Security Hardening

Purpose

Reduce CI/CD and workflow supply-chain risk while preserving delivery velocity.

Core controls

  1. GITHUB_TOKEN least privilege (default read, elevate per-job only when required).
  2. Third-party actions pinned to full commit SHA where policy requires.
  3. Secrets hygiene (least privilege, rotation, masking, no plaintext leakage).
  4. OIDC preferred over long-lived cloud credentials.
  5. CODEOWNERS coverage for .github/workflows/.
  6. Dependency and vulnerability monitoring for Actions dependencies.
  7. Runner strategy hardening (hosted preferred for untrusted PRs; strict controls for self-hosted).
  8. Optional: block or limit Actions ability to create/approve PRs where policy requires.

Hard constraints

  • No auto-remediation that broadens permissions.
  • No direct write changes to production deployment workflows without explicit approval trail.
  • If workflow trust boundaries are unclear, return NO_CHANGE.

Output contract

ACTIONS_SECURITY_REPORT
mode: <audit|plan|remediate|verify>
scope: <repo|org>
runner: <hosted|self-hosted|mixed>
policy_profile: <strict|standard|light>

checks:
- id: A1
  control: <token-permissions|pinning|oidc|...>
  result: <pass|fail|partial>
  evidence: <file/setting/observation>
  risk: <low|medium|high>

actions:
1) priority: <P1|P2|P3>
   change: <specific remediation>
   verification: <objective check>

decision:
- <apply|defer|NO_CHANGE>

missing_evidence:
- <none or required artifacts>

Invocation policy

Run in pre-merge for workflow/security-sensitive changes and in periodic governance audits.

Repo workflow inventory

Workflow Trigger Permissions Status
.github/workflows/lint.yml PR/push to main default read ✅ active
.github/workflows/label-lint.yml issues events issues:write, contents:read ✅ active (ADR-010)

label-lint.yml enforces ADR-010 rules 1–4 on every issue event. Any violation posts an explanatory comment and fails the check. See research/adr/010-ticket-status-role-model.md.

Read the full file on GitHub · 74 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. 3mo ago First seen · 74 lines · 33 tokens per session scan A 0d2f4084fb82

Subscribe to this mod's changes

github-actions-security-hardening is a skill published in the GitHub repository chf3198/copilot-governance (2 stars, last pushed 7d ago), licensed MIT. It adds 33 tokens to every session and 604 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

github-actions-security-hardening compared with skills from other repositories

github-actions-security-hardening next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-actions-security-hardeningchf3198/copilot-governanceSkill27d agoMITA33Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.7kyesterdayMITA69Claude Code
webhook-managementhoangsonww/Claude-Code-Agent-MonitorSkill1.2k3d agoMITA56Claude Code, Codex
monorepo-managementwshobson/agentsSkill43ktodayMITC54Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
update-github-workflowstarlepp/symfony-flex-backendSkill286yesterdayMITA41Claude Code, Codex
deployment-engineerrmyndharis/antigravity-skillsSkill2.2ktodayMITA73Claude Code, Codex