Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    GitHub Actions Security & Speed Quick-Audit

    1

    Catch GitHub Actions script injection, pull_request_target traps, and unpinned actions while cutting CI runtime and runner bills up to 75% with a read-only static analyzer.

    Free

    Security scanned
    GitHub Actions Security & Speed Quick-Audit

    GitHub Actions Security & Speed Quick-Audit

    Example session with this skill installed

    Audit our .github/workflows/ci.yml for GitHub Actions supply-chain vulnerabilities and tell me how to cut our 16-minute build time down without breaking tests. Show the scorecard before editing anything.

    • Read your context and instructions
    • Compiled the github actions security

    GitHub Actions Security & Speed Audit

    Overall Grade: F · Security Score: 15/100 · Speed Score: 25/100
    Estimated Time Saved: ~8–12 min/run (~65–75% faster CI, fewer billed runner minutes)

    RuleSeverityLocationFindingActionable Fix
    GHA-SEC-001Criticalci.yml:22Untrusted ${{ github.event.pull_request.title }} interpolated in run:Pass via env: PR_TITLE and quote "$PR_TITLE"
    GHA-SEC-003Highci.yml:14actions/checkout@v4 & 3rd-party actions not SHA-pinnedPin to full 40-char commit SHA + version comment
    GHA-SEC-004Highci.yml:1Missing top-level least-privilege permissions: blockAdd permissions: { contents: read }
    GHA-SPD-001Highci.yml:1No concurrency: group (cancel-in-progress: true)Cancel superseded PR runs automatically
    GHA-SPD-002Highci.yml:18npm ci runs without setup-node cache: 'npm'Enable built-in npm cache (~2–3 min saved)
    GHA-SPD-005Mediumci.yml:34docker build has no Buildx GHA layer cacheSwitch to docker/build-push-action with type=gha

    Hardened + Fast Workflow Patch (Preview)

    permissions:
      contents: read
    
    concurrency:
      group: ci-${{ github.workflow }}-${{ github.ref }}
      cancel-in-progress: true
    
    jobs:
      test:
        runs-on: ubuntu-latest
        timeout-minutes: 15
        steps:
          - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
          - uses: actions/setup-node@39370e3970a6d050c480ffad7ff0ed4d40700093 # v4.1.0
            with:
              node-version: 20
              cache: npm
          - run: npm ci && npm test
    

    Next Steps (Approval Required)

    Reply

    "Apply workflow optimizations" to patch .github/workflows/ci.yml and generate a ready-to-paste PR summary explaining every security fix and speed win.

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

    About this skill

    Harden Your GitHub Actions & Cut CI Wait Times by Up to 75%

    GitHub Actions Security & Speed Quick-Audit combines an indentation-aware, zero-dependency Python static analyzer (scripts/audit_workflows.py) with senior DevOps supply-chain and CI optimization playbooks.

    What It Audits (11 High-Signal Rules)

    • Supply-Chain Security (GHA-SEC-001–005): Untrusted expression script injection in run: blocks, dangerous pull_request_target + PR head checkouts, actions not pinned to 40-char commit SHAs, missing least-privilege permissions:, and hardcoded credential patterns (auto-masked as [REDACTED]).
    • CI Speed & Runner Cost (GHA-SPD-001–006): Missing concurrency: with cancel-in-progress: true, missing Node/Python/Go/Cargo/Java caching, missing timeout-minutes guard, unnecessary fetch-depth: 0 clones, Docker builds missing Buildx GHA layer cache, and over-provisioned macOS/Windows runners on lightweight jobs.

    How to Use

    Ask your AI agent naturally in any GitHub repository:

    • "Audit our .github/workflows/ for security vulnerabilities and slow steps."
    • "Why is our GitHub Actions CI taking 15+ minutes? Give me a speed + security scorecard and safe PR patches."
    • "Check our workflows for script injection and unpinned third-party actions."

    Or run the read-only analyzer directly:

    python3 scripts/audit_workflows.py --path . --format markdown
    

    What's Inside (13 Files)

    • SKILL.md — Deterministic 4-step workflow with A–F security & speed grading and explicit approval gate
    • scripts/audit_workflows.py — Pure Python 3 stdlib static analyzer (no PyYAML required, JSON/Markdown output, estimated minutes saved)
    • references/ — Supply-chain hardening guide, CI speed & runner cost playbook, and complete 11-rule catalog
    • templates/ — Audit report scorecard & ready-to-paste PR optimization summary
    • examples/ — Worked SaaS CI transformation cutting a 16-minute workflow down to ~4 minutes
    • tests/ — Vulnerable & hardened workflow fixtures + runnable unit tests

    Security & Privacy Guarantee

    • 100% read-only by default — never modifies workflow files without your explicit approval.
    • Zero network calls, zero subprocess, zero os.environ reads, and automatic [REDACTED] masking.

    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.

    Static analysis of local .github/workflows/*.yml files; does not query live GitHub billing APIs or resolve external private reusable workflows.

    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

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 2 days ago

    • Free with an Agensi account

    Software
    Python 3.9+ (stdlib only)Node.jsGit

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Bundled analyzer is 100% read-only with zero network or env-var access. Write Files is only used after explicit user approval to patch workflow YAML.

    Listed2 days ago

    What's inside

    Frequently Asked Questions

    The skill performs a deterministic scan of your .github/workflows directory to identify security vulnerabilities like unpinned actions and unoptimized runner configurations that inflate your monthly billing. Unlike generic AI prompts, it uses a specialized rule engine to ensure patches don't break your CI/CD pipelines or leak sensitive data.

    The skill provides an Executive Scorecard and a prioritized remediation plan; it will only apply patches and generate PR-ready code after you review and provide explicit approval for each change. It never modifies your workflows or infrastructure without your consent.

    No, the analyzer runs locally within your environment using a standard Python library and does not require external network access or access to your .env files. It identifies potential secret leaks by analyzing YAML structure and patterns without ever reading or echoing your actual secret values.

    This skill is designed for any AI agent or platform that supports Python-based tools and has access to your file system. It is fully compatible with standard GitHub Actions syntax and requires a Python 3 environment to execute its analysis engine.

    The skill focuses exclusively on the configuration of your GitHub Actions workflows and cannot modify external cloud IAM policies or organization-level GitHub settings. Additionally, it cannot verify the integrity of private third-party actions that are not accessible within the current repository context.

    New in DevOps & Cloud

    Free