# Github actions hardening

> Github actions hardening is an open-source agent skill for developer tools. Security hardening reviewer for GitHub Actions workflow files (.github/workflows/*.yml). It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/github/awesome-copilot/tree/main/skills/github-actions-hardening
- **Repository:** https://github.com/github/awesome-copilot
- **GitHub stars:** 41,254
- **License:** MIT
- **Skill name:** github-actions-hardening
- **Collection:** https://github.com/github/awesome-copilot
- **Categories:** developer tools, security
- **Listing updated:** 2026-11-17

## About

Security hardening reviewer for GitHub Actions workflow files (.github/workflows/*.yml). Reasons about the Actions threat model that pattern matchers and general code linters miss — untrusted-input script injection, privileged triggers running fork code, mutable action references, and over-scoped tokens. Use this skill when asked to review, audit, harden, or secure a GitHub Actions workflow, when writing a new workflow, or for any request like "is this workflow safe?", "review my CI for security issues", "why is pull_request_target dangerous here?", "pin my actions", or "lock down GITHUB_TOKEN permissions". Covers script injection via ${{ }} interpolation, pull_request_target / workflow_run privilege escalation, SHA-pinning of third-party actions, least-privilege permissions, GITHUB_ENV/GITHUB_OUTPUT injection, secret exposure, OIDC over long-lived credentials, and self-hosted runner exposure on public repositories.

## When your agent uses it

> Security hardening reviewer for GitHub Actions workflow files (.github/workflows/*.yml). Reasons about the Actions threat model that pattern matchers and general code linters miss — untrusted-input script injection, privileged triggers running fork code, mutable action references, and over-scoped tokens. Use this skill when asked to review, audit, harden, or secure a GitHub Actions workflow, when writing a new workflow, or for any request like "is this workflow safe?", "review my CI for security issues", "why is pull_request_target dangerous here?", "pin my actions", or "lock down GITHUB_TOKEN permissions". Covers script injection via ${{ }} interpolation, pull_request_target / workflow_run privilege escalation, SHA-pinning of third-party actions, least-privilege permissions, GITHUB_ENV/GITHUB_OUTPUT injection, secret exposure, OIDC over long-lived credentials, and self-hosted runner exposure on public repositories.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/github/awesome-copilot/tree/HEAD/skills/github-actions-hardening)
- [License: MIT](https://github.com/github/awesome-copilot/tree/HEAD/skills/github-actions-hardening)

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/github-actions-hardening` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/github-actions-hardening &&
cp -R "$tmp/skills/github-actions-hardening" ~/.claude/skills/github-actions-hardening &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/github-actions-hardening` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/github-actions-hardening` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/github-actions-hardening &&
cp -R "$tmp/skills/github-actions-hardening" ~/.agents/skills/github-actions-hardening &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/github-actions-hardening` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/github-actions-hardening` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/github-actions-hardening &&
cp -R "$tmp/skills/github-actions-hardening" ~/.cursor/skills/github-actions-hardening &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/github-actions-hardening` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/github/awesome-copilot.git --path skills/github-actions-hardening
```

Or copy the folder to `~/.gemini/skills/github-actions-hardening` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/github-actions-hardening`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/github-actions-hardening &&
cp -R "$tmp/skills/github-actions-hardening" ~/.copilot/skills/github-actions-hardening &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/github-actions-hardening` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/github/awesome-copilot.git
```

Then copy `awesome-copilot/skills/github-actions-hardening` into your agent's skills folder as `github-actions-hardening`. Agents that support SKILL.md read one folder per skill.

## FAQ

### How do I install Github actions hardening in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/github-actions-hardening to use it in all your projects, or to .claude/skills/github-actions-hardening in one project.

### Does Github actions hardening run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Github actions hardening?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Github actions hardening?

The closest alternatives to Github actions hardening are Rea changelog update, Code review, Gem devops guidelines, Spring security and Create github issues feature from implementation plan.

## Alternatives

- [Rea changelog update](https://ai-powered.com/skills/rea-changelog-update): Rea changelog update is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-mattpocock): Code review is an open-source agent skill for developer tools.
- [Gem devops guidelines](https://ai-powered.com/skills/gem-devops-guidelines): Gem devops guidelines is an open-source agent skill for cloud and infrastructure.
- [Spring security](https://ai-powered.com/skills/spring-security): Spring security is an open-source agent skill for security.
- [Create github issues feature from implementation plan](https://ai-powered.com/skills/create-github-issues-feature-from-implementation-plan): Create github issues feature from implementation plan is an open-source agent skill for developer tools.
- [SQL code review](https://ai-powered.com/skills/sql-code-review): SQL code review is an open-source agent skill for databases.
- [Secret scanning](https://ai-powered.com/skills/secret-scanning): Secret scanning is an open-source agent skill for security.
- [PR screenshots](https://ai-powered.com/skills/pr-screenshots): PR screenshots is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/github-actions-hardening
