Docker and GitHub Actions Hardening Audit

    1

    Audit and fix supply-chain flaws, root containers, and GitHub Actions privilege escalations.

    $9

    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

    Docker and GitHub Actions Hardening Audit

    Example session with this skill installed

    Audit my Dockerfile and GitHub workflows for security flaws and suggest fixes.

    • Read your context and instructions
    • Compiled the docker and github

    I have audited your repository for CI and Docker hardening flaws. The scan identified 3 High-severity issues and 1 Medium-severity issue.

    Security Audit Report

    FileSeverityRule IDFindingProposed Fix
    DockerfileHighD1Base image node:20 is unpinned.FROM node:20-slim@sha256:d32f...
    DockerfileHighD2No USER defined (runs as root).Add RUN useradd -u 1001 app && USER app
    .github/workflows/deploy.ymlHighW1actions/checkout@v4 is not pinned to SHA.actions/checkout@b4ff... # v4
    .github/workflows/deploy.ymlMediumW3Missing permissions block (defaults to wide).Add permissions: contents: read

    Proposed Changes for Dockerfile

    
    # Before
    FROM node:20
    WORKDIR /app
    COPY . .
    RUN npm install
    CMD ["node", "index.js"]
    
    # After
    FROM node:20-slim@sha256:d32f62e47a6b22f6d773468d6f5f3e9b5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f5f
    WORKDIR /app
    COPY . .
    RUN npm install
    RUN useradd -m appuser
    USER appuser
    CMD ["node", "index.js"]
    

    Proposed Changes for deploy.yml

    
    # Add to top of file
    permissions:
      contents: read
    
    # Update step
    - name: Checkout
      uses: actions/checkout@b4ffaa5b94d3b9639121b589b2787dd7653a76af # v4
    

    Next steps

    1. Approve these changes to apply the fixes to your files.
    2. I will rerun scripts/audit.py to confirm all issues are resolved.
    3. Commit the changes to your security-hardening branch.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Supply chain attacks and privilege escalation in CI/CD pipelines often go unnoticed until a breach occurs. This skill audits Dockerfiles and GitHub Actions workflows to identify and remediate security flaws like unpinned dependencies and root-run containers.

    What it does

    • Supply chain auditing finds unpinned Docker images and GitHub Actions that should use commit SHAs.
    • Privilege analysis detects root-user execution in containers and overly broad write-all permissions in workflows.
    • Injection prevention identifies dangerous curl | sh patterns and unsafe use of GitHub event context in shell scripts.
    • Secret hygiene flags sensitive data leaked in ENV or ARG instructions.
    • Automated remediation proposes and applies precise fixes for identified vulnerabilities upon approval.

    How it works

    1. Scan the repository using a dedicated audit script to map all Dockerfiles and YAML workflows.
    2. Triaging findings by severity (High, Medium, Low) while filtering out false positives in comments.
    3. Drafting exact replacement lines for every confirmed flaw based on a standardized fix table.
    4. Execution of file edits only after user confirmation, followed by a post-remediation scan to verify the delta.

    Frameworks & tools

    This skill uses Python for scanning logic and targets Docker, GitHub Actions, and POSIX shell scripts within CI environments.

    Why this beats prompting it yourself

    Generic prompts often miss subtle risks like pull_request_target abuse or fail to provide the actual commit SHAs needed for true pinning. This skill follows a specific security rulebook and verifies its work with a secondary scan.

    Use cases

    • Audit a new repository before its first production deployment.
    • Harden legacy CI pipelines against supply chain attacks.
    • Enforce non-root container standards across a microservices mono-repo.
    • Secure GitHub Actions permissions to follow the principle of least privilege.

    Known limitations

    Requires an internet connection to look up valid commit SHAs for pinning. It cannot verify the safety of self-hosted runners beyond checking their configuration in public repos.

    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.

    Requires internet to fetch real commit SHAs. Cannot guarantee total pipeline safety, only checks against the defined rule set. Requires Python to run the audit script.

    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 today

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    This skill performs a deep-tissue security audit of your CI/CD pipeline, identifying risks like unpinned Docker dependencies, root-access containers, and overly permissive GitHub Actions tokens that typical scanners often miss.

    The skill is designed for any AI agent capable of file system access and terminal execution; it requires a Python environment to run its proprietary scanning and remediation logic.

    Yes, the skill includes an automated remediation phase where it drafts specific code replacements and applies them to your files only after you have reviewed and approved the changes.

    The skill requires internet access to fetch the most recent and secure commit SHAs for your dependencies to ensure your supply chain is pinned to verified versions.

    You receive the core audit and remediation logic, a standardized security fix table, and documentation on how to integrate the skill into your agent's existing DevOps workflow.

    This skill focuses on repository-level configurations; while it can audit how you call self-hosted runners in your workflows, it does not scan the underlying infrastructure or OS of the runner itself.

    New in DevOps & Cloud