github-actions-security-cheat-sheet

Reference security patterns for hardening GitHub Actions workflows.

3|3|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill github-actions-security-cheat-sheet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-actions-security-cheat-sheet
Source: https://github.com/adaptive-enforcement-lab/claude-skills/tree/main/plugins/secure/skills/github-actions-security-cheat-sheet
Command: npx skills add https://github.com/adaptive-enforcement-lab/claude-skills --skill github-actions-security-cheat-sheet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The GitHub Actions Security Cheat Sheet provides a concise, ready-to-use reference of proven security patterns to harden workflows, reducing misconfigurations and security debt.

Core Features & Use Cases

  • Action pinning guidance: Learn to pin actions to immutable SHAs and include version comments to prevent supply chain drift.
  • Minimal permissions and secrets best practices: Enforce minimal workflow and job permissions, use OIDC where possible, and avoid storing credentials.
  • Runner hardening and workflow hardening patterns: Apply safe runner configurations and workflow-level protections to reduce blast radius.
  • Use cases include securing CI/CD pipelines across teams, onboarding new repos with security baselines, and auditing existing workflows for compliance.

Quick Start

Open the cheat sheet and start by pinning actions to SHA sums and setting minimal permissions in your workflows.

Frequently Asked Questions about github-actions-security-cheat-sheet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I secure GitHub Actions workflows?

To secure GitHub Actions workflows, apply patterns like pinning actions to immutable SHAs, enforcing minimal job permissions, using OIDC for cloud access, and hardening runners to reduce your pipeline's blast radius.

What does pinning GitHub Actions to a SHA do?

Pinning GitHub Actions to an immutable SHA prevents supply chain drift by ensuring the action's code cannot be silently updated, and adding a version comment helps track the pinned release for maintainability.

How do I use OIDC instead of stored secrets in CI/CD pipelines?

Using OIDC in CI/CD pipelines lets you request short-lived tokens directly from your cloud provider instead of storing long-lived credentials as GitHub secrets, minimizing credential exposure and access risk.

Can I audit existing GitHub Actions workflows for security compliance?

Yes, you can audit existing GitHub Actions workflows for compliance by checking them against security patterns like minimal permissions, action pinning, OIDC usage, and safe runner configurations to identify misconfigurations.

What are the best practices for GitHub Actions secret management?

GitHub Actions secret management best practices include enforcing minimal workflow permissions, avoiding stored credentials by using OIDC where possible, and restricting secret access to only the jobs that require them.

When should I apply workflow hardening patterns for CI/CD?

You should apply workflow hardening patterns when onboarding new repositories with security baselines, securing CI/CD pipelines across teams, or reducing the blast radius of compromised runners in production environments.