- Home
- Skills
- DevOps & Cloud
- GitHub Actions & CI/CD Security Hardener
GitHub Actions & CI/CD Security Hardener
Hardens GitHub Actions workflows against pull_request_target exploits, script injection, unpinned actions, and excessive token permissions.
$7
Works with the AI Agents you already use
GitHub Actions & CI/CD Security Hardener
Example session with this skill installed
Prevent CI/CD supply-chain compromise and secret exfiltration from fork PRs.
This skill directs your AI coding agent to:
- Detect and split dangerous pull_request_target + untrusted head checkouts
- Move all github.event.* interpolations out of run: blocks into env: variables
- Enforce least-privilege GITHUB_TOKEN permissions, persist-credentials: false, SHA-pinned actions, and job timeouts/concurrency.
- Read your context and instructions
- Compiled the github actions
Audit .github/workflows/pr-comment.yml for security vulnerabilities before we enable it on public PRs.
Connects securely to your tools. The creator never sees your data.
About this skill
GitHub Actions workflows are often porous, leaking secrets via script injection or over-privileged tokens. This skill audits your CI/CD configurations to eliminate common attack vectors and enforce security best practices.
What it does
- Removes Injection Risks by identifying and fixing untrusted input interpolation in shell scripts.
- Enforces Least-Privilege by restricting
GITHUB_TOKENpermissions to the minimum required scope. - Secures PR Workflows by separating untrusted build steps from privileged repository actions.
- Pins Dependencies by converting tag-based
uses:declarations to immutable commit SHAs. - Optimizes Execution by adding concurrency controls and timeouts to prevent runner exhaustion.
How it works
- Analyze your
.github/workflowsdirectory for misconfigured triggers and permissions. - Sanitize shell blocks by mapping GitHub context variables to environment variables.
- Harden the
GITHUB_TOKENby moving write permissions from global to job-specific levels. - Pin third-party actions to 40-character commit SHAs for supply chain security.
Frameworks & tools
The skill works with YAML-based GitHub Actions workflows and supports shell scripting environments including Bash and POSIX-compliant runners.
Why this beats prompting it yourself
Generic prompts often miss the nuances of pull_request_target exploits or forget to disable credential persistence. This skill uses a specific security checklist focused on the "pwn request" vector and script injection patterns that manual audits overlook.
Use cases
- Audit a public repository for
pull_request_targetvulnerabilities. - Lock down CI/CD supply chains by pinning all actions to commit SHAs.
- Refactor shell scripts to prevent injection from PR titles or comments.
- Implement job-level permission scoping across a complex workflow file.
Known limitations
This skill focuses on GitHub Actions YAML files only and does not audit custom Javascript actions or external CI systems like GitLab or Jenkins.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Focuses on GitHub Actions YAML files. Does not audit custom JavaScript actions or external CI systems like GitLab or Jenkins.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
Permissions
No special permissions declared or detected