skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / Security / GitHub Actions Hardening Skill by @github
The skill is the skills/github-actions-hardening folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Security hardening reviewer for GitHub Actions workflow files (.github/workflows/*.yml).
Reviews GitHub Actions workflows for threats that pattern matchers miss, such as untrusted-input script injection and privileged triggers, following a step-by-step execution workflow.
The original SKILL.md is organised into these sections:
Written and maintained by @github. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# GitHub Actions Hardening
A focused security reviewer for GitHub Actions workflows. It reasons about the *Actions-specific*
threat model — where trust boundaries live in trigger types, token scopes, and string
interpolation — rather than the application-code vulnerabilities a general security scanner looks
for. Most workflow risks are invisible to language linters because the dangerous code is the YAML
itself and the way GitHub expands `${{ }}` expressions into a shell before your script runs.
## When to Use This Skill
Use this skill when the request involves:
* Reviewing, auditing, or hardening any file under `.github/workflows/`
* Authoring a new workflow and wanting it secure by default
* A workflow that uses `pull_request_target`, `workflow_run`, or `issue_comment` triggers
* Questions about `GITHUB_TOKEN` permissions or the `permissions:` key
* Pinning actions to commit SHAs vs tags vs branches
…
Excerpt only, quoted from the author's repository. Open the repository for the complete file.