GitHub Actions & CI/CD Security Hardener

    1

    Hardens GitHub Actions workflows against pull_request_target exploits, script injection, unpinned actions, and excessive token permissions.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    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_TOKEN permissions 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

    1. Analyze your .github/workflows directory for misconfigured triggers and permissions.
    2. Sanitize shell blocks by mapping GitHub context variables to environment variables.
    3. Harden the GITHUB_TOKEN by moving write permissions from global to job-specific levels.
    4. 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_target vulnerabilities.
    • 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Listed7 days ago

    What's inside

    Frequently Asked Questions

    The skill audits your YAML configurations to identify 'pwn request' vectors, pins actions to immutable commit SHAs, and refactors shell scripts to prevent untrusted input from leaking repository secrets.

    This skill is designed for use with any AI agent that has file-system or repository access, such as AutoGPT, BabyAGI, or specialized coding assistants capable of reading and editing YAML files.

    No, this skill is specifically tuned for GitHub Actions workflows; it does not currently support GitLab CI, Jenkins, or CircleCI configurations.

    The skill identifies instances where GitHub context variables are interpolated directly into shell scripts and replaces them with secure environment variable mappings to block script injection.

    Yes, the skill is updated regularly to include the latest GitHub security advisories and best practices, such as newly identified vulnerabilities in the 'pull_request_target' trigger.

    The purchase includes the core logic for the security audit and hardening processes, along with a guide on how to integrate the skill into your existing AI agent's workflow.

    New in DevOps & Cloud