Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    GitHub Actions Security Audit: Injection and Permissions

    by Saizul Amin

    1

    This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice.

    $9

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    GitHub Actions Security Audit: Injection and Permissions

    GitHub Actions Security Audit: Injection and Permissions

    Example session with this skill installed

    Run the GitHub Actions Security Audit skill on my project and give me a prioritised list of what to fix, with exact changes.

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

    Here is what the GitHub Actions Security Audit: Injection and Permissions skill produced.

    Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.

    Output

    CRITICAL -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:18 [build] prt.checkout_pr_code: privileged trigger checks out untrusted PR code (pwn request)
             -> split into pull_request (build, no secrets) + workflow_run that only reads artifacts
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:19 [build] action.unpinned: some-org/setup-tool@v2 is pinned by a mutable tag, not a commit SHA
             -> use some-org/setup-tool@<40-char-sha> # v2 (dependabot-and-pinning skill converts tags offline)
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:20 [build] action.unpinned: another-org/lint-action@main follows a branch; any push to it changes your workflow
             -> use another-org/lint-action@<40-char-sha> # main (dependabot-and-pinning skill converts tags offline)
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:23 [build] injection.run: script injection: `${{ github.event.pull_request.title }}` is attacker-controlled text inside run:
             -> move it to step env (e.g. TITLE: ${{ ... }}) and use "$TITLE" in the script
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:24 [build] injection.run: script injection: `${{ github.head_ref }}` is attacker-controlled text inside run:
             -> move it to step env (e.g. TITLE: ${{ ... }}) and use "$TITLE" in the script
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:29 [build] injection.script: untrusted `${{ github.event.comment.body }}` interpolated into github-script code
             -> read it from context.payload in the script, or pass it via env
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:34 [label] permissions.write_all: job grants permissions: write-all
             -> list only the scopes the job needs
    HIGH     -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:38 [label] prt.checkout_pr_code: privileged trigger fetches PR code in a run step
             -> do not fetch or execute PR code with secrets or a write token
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:9 secrets.workflow_env: secret in workflow-level env DEPLOY_TOKEN: every step and action in every job can read it
             -> pass the secret only to the step that needs it (step-level env or with:)
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:13 [build] permissions.missing: no permissions block: GITHUB_TOKEN gets the repository/org default (may be read-write)
             -> add top-level `permissions: contents: read` and per-job grants
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:14 [build] runner.self_hosted: self-hosted runner (triggered by pull requests; if the repo is or becomes public, forks run here)
             -> use GitHub-hosted runners for public repos, or ephemeral/JIT runners in a restricted group
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:16 [build] checkout.persist_creds: actions/checkout leaves GITHUB_TOKEN in .git/config for every later step (privileged trigger)
             -> add `with: persist-credentials: false` unless a later step must git push
    MEDIUM   -Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/github-actions-skills/tests/fixtures/workflows/insecure.yml:31 [build] action.docker_unpinned: docke
    

    What you do next

    1. Fix the highest-severity items first.
    2. Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
    3. Keep the skill installed and re-run it whenever the project changes.

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

    About this skill

    Audit GitHub Actions workflow YAML with a deterministic script - third-party actions pinned by tag or branch instead of a commit SHA, unpinned docker:// images, missing or write-all permissions, pull_request_target/workflow_run workflows that check out or run PR code (pwn requests), script injection from ${{ github.event.* }} and github.head_ref in run: and github-script, secrets in workflow-level env, secrets inherit, self-hosted runners on public repos and ACTIONS_ALLOW_UNSECURE_COMMANDS. Reports file:line, job and fix, as text or JSON with CI exit codes, and gives safe rewrites.

    Who it's for

    Use when the user asks to review, harden or "secure" .github/workflows, mentions pull_request_target, script injection, tj-actions style supply-chain attacks, OpenSSF Scorecard token-permissions or pinned-dependencies, or before making a repository public.

    What's inside

    • Tested, offline Python script(s): audit_workflows.py (deterministic results, standard library only unless noted)
    • Reference guides: hardening-patterns.md, checks.md
    • Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow; CI usage

    Why it's worth it

    Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.

    Works with every major AI agent

    Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.

    Requirements

    • Python 3.8+ for the bundled scripts
    • No API keys, no account, runs locally

    Open source: saizul/github-actions-skills on GitHub (MIT licence, by Saizul Amin).

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    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.

    Frequently Asked Questions

    Audit GitHub Actions workflow YAML with a deterministic script - third-party actions pinned by tag or branch instead of a commit SHA, unpinned docker:// images, missing or write-all `permissions`, `pull_request_target`/`workflow_run` workflows that check out or run PR code (pwn requests), script ...

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use GitHub Actions Security Audit: Injection and Permissions on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.