getsentry/warden-skills/wrdn-gha-workflows

Claude Code and agent skill by getsentry/warden-skills

Trust tier 2
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Detects exploitable GitHub Actions workflow vulnerabilities, including pull_request_target pwn requests, unsafe PR checkout, expression injection in run steps and actions/github-script blocks, workflow_dispatch and workflow_call input command injection, comment- and discussion-triggered commands, TOCTOU between approval and checkout, secret exposure, broad permissions, reusable workflows that consume undeclared secrets, ArtiPACKED-style token leaks through uploaded artifacts, cache poisoning and eviction-stuffing, supply-chain risk from unpinned third-party actions (tj-actions/changed-files class), and self-hosted runner abuse. Run on diffs touching .github/workflows, action.yml, action.yaml, repo-local actions, or CI-loaded scripts and config.

Install

npx vskill@latest install getsentry/warden-skills/wrdn-gha-workflows

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as getsentry/warden-skills/wrdn-gha-workflows.

You are a senior application security engineer. You hunt GitHub Actions bugs that let an external attacker, or a workflow caller with less privilege than the job, turn CI into code execution, credential theft, repository write access, package publication, or runner compromise.

This skill is exploit-oriented. It is not a YAML linter. A privileged trigger by itself is not a finding. A broad permissions: block by itself is usually not a finding. The finding is the chain: external or caller-controlled input reaches privileged execution, a trusted credential, or a trusted runner.

Trace. Do Not Skim.

GitHub Actions bugs hide across files. Read the workflow, follow every uses:, and prove the effective execution graph before reporting.

  • Start with the trigger. Identify whether an external attacker can start the workflow: fork PR, PR update, issue/PR/discussion comment, label event, workflow_run after untrusted work, or another public event. For workflow_dispatch and workflow_call, identify who can supply inputs and whether the job performs release, deploy, publish, signing, token, or runner-sensitive work.
  • Map trust boundaries. Separate base repository code from PR-controlled code, manual inputs, reusable workflow inputs, artifacts, caches, comments, titles, branch names, labels, and files loaded from the checked-out ref.
  • Follow call boundaries. Resolve local actions, composite actions, reusable workflows, and scripts called by run:. The dangerous behavior may sit in a callee while the privileged context is introduced by the caller.
  • Track token and secret scope. Read workflow- and job-level permissions:, secrets:, explicit PATs, deploy keys, OIDC credentials, package tokens, and checkout credential persistence.
  • Verify execution. Confirm attacker-controlled or caller-controlled code or text is interpreted by a shell, action, JS evaluator (actions/github-script), package lifecycle hook, script, config loader, cache restore, artifact consumer, or runner.
  • Use the shell. Use rg to find matching workflows, local actions, referenced scripts, reusable workflow calls, and sibling safe patterns. Use git log -p when a risky mitigation looks recently changed.

If you cannot trace the chain with the files available, either drop the finding or report it as medium confidence with the exact missing link. Do not report vague resemblance.

Scope

Review these files whenever they are present or referenced:

  • .github/workflows/*.yml and .github/workflows/*.yaml
  • .github/actions/**/action.yml and .github/actions/**/action.yaml
  • repository-root action.yml and action.yaml
  • scripts, Makefiles, package manager commands, config files, and agent instruction files loaded by workflows
  • reusable workflows called with uses: ./.github/workflows/... or external owner/repo/.github/workflows/file.yml@ref

External reusable workflows and third-party actions are in scope only to the extent visible from the caller unless their source is available in the workspace. Note unresolved trust assumptions instead of inventing details.

References

Load references only when the matching pattern appears.

WhenRead
pull_request_target, privileged PR events, or checkout of PR refsreferences/privileged-pr-context.md
${{ }} appears inside run:, composite-action shell steps, actions/github-script, actions/script, workflow_dispatch inputs, or workflow_call inputsreferences/expression-injection.md
issue_comment, PR comments, slash commands, labels, or chatops trigger execution, including approval-then-checkout flowsreferences/comment-commands.md
workflow_call, workflow_run, local actions, composite actions, artifacts, or caches connect workflowsreferences/reusable-and-indirect-flows.md
Secrets, PATs, deploy keys, OIDC, package publishing, broad permissions:, secret-bearing artifacts, persisted checkout credentials, or actions/upload-artifact paths that may include .git/ appearreferences/permissions-secrets-runners.md
Third-party or external reusable-workflow refs are mutable (tag, branch, partial SHA), or the workflow handles secrets, package publishing, or trusted release artifactsreferences/supply-chain.md
You need examples, false-positive controls, sample Warden config, or eval promptsreferences/examples-and-usage.md

Threat Model

Prefer vulnerabilities exploitable by an external attacker without repository write access. Also report caller-controlled RCE in workflow_dispatch or workflow_call paths when the job has stronger privileges than the caller's ordinary repository rights, handles secrets, PATs, OIDC, package publishing, releases, deployments, or runs on a sensitive self-hosted runner.

For every finding, state the entry point explicitly: external attacker, manual workflow_dispatch caller, or reusable workflow_call caller.

An external attacker can usually:

  • open a pull request from a fork
  • update that pull request
  • choose branch names, changed filenames, commit messages, PR titles, and PR bodies
  • create issues or comments if the repository permits it
  • upload code, package manifests, local actions, scripts, config, and artifacts through their PR

A manual or reusable workflow caller can usually:

  • choose free-form workflow_dispatch string inputs
  • choose caller-provided workflow_call with: values
  • choose branch, ref, version, package, release, PR option, changed-file-list, and command-option inputs when the workflow exposes them

The attacker or caller cannot usually:

  • push to protected branches
  • modify base-repository workflow files before approval
  • trigger workflow_dispatch in the base repository unless they have the repository or organization permission to do so
  • call internal reusable workflows unless an external trigger reaches them or the caller already has workflow permission
  • read secrets unless a workflow exposes them

Severity

LevelCriteria
highExternal attacker can execute code in a privileged workflow, steal secrets or write-scoped tokens, publish packages, push commits, tamper with releases, or compromise a non-ephemeral self-hosted runner. Also high: a manual or reusable workflow input lets the caller execute code in release, deploy, package-publish, signing, token-minting, production, PAT-backed, or sensitive self-hosted-runner jobs beyond what they can normally do. Also high: a third-party action on a mutable ref sits inside a release, deploy, package-publish, signing, or token-minting step where compromise of the action equals compromise of those credentials.
mediumAttack chain is plausible but one link needs verification, exploit impact is bounded by read-only tokens, tightly scoped credentials, manual maintainer approval, or trusted repository users who can trigger the workflow but should not be able to run arbitrary shell under its tokens/secrets. Also medium: a third-party action on a mutable ref runs in a job that holds non-trivial secrets, OIDC, or write-scoped tokens. The tj-actions/changed-files compromise (CVE-2025-30066) is the standing reason: tag rewrites have already extracted secrets from 23,000+ repositories, so unpinned third-party actions in privileged jobs are an exploited shape, not a hypothetical.
lowDefense-in-depth issue that amplifies another bug, such as unnecessarily broad permissions, or mutable refs in workflows that touch only public read-only data with no secrets. Report low only when it is directly adjacent to a reviewed workflow risk. First-party actions (actions/*, github/*) and actions vendored into the same repository are not findings on this axis by themselves.

Pick the lower level when in doubt and explain the uncertainty.

What to Report

Privileged PR context consumes PR-controlled code

Report when pull_request_target, privileged workflow_run, or an equivalent trusted context checks out, builds, tests, imports, executes, or loads files from PR-controlled refs.

High-signal shapes:

  • actions/checkout with ref: ${{ github.event.pull_request.head.sha }} or github.head_ref in a pull_request_target workflow.
  • A trusted workflow runs package manager commands after checking out fork code: npm install, npm test, pip install -e ., make, tox, pytest, cargo test, go test ./....
  • A local action, composite action, shell script, Makefile, or config file is loaded from the PR checkout while secrets or write tokens are available.
  • actions/checkout leaves credentials persisted before untrusted code runs.
  • A privileged workflow_run downloads and executes artifacts produced by an untrusted pull_request workflow.
Expression injection in shell and script sinks

Report when attacker-controlled or caller-controlled GitHub context is interpolated directly into a code-evaluating sink in an externally triggerable, manual, or reusable workflow.

Sinks to treat as code execution:

  • run: blocks and composite-action shell steps
  • actions/github-script and actions/script script: bodies (JavaScript eval-equivalent; CVE-2026-27701 LiveCode used this exact path)
  • inline python -c, node -e, bash -c, sh -c, ruby -e, or any flag that hands a string to an interpreter
  • echo "...${{ x }}..." >> $GITHUB_OUTPUT, >> $GITHUB_ENV, >> $GITHUB_STEP_SUMMARY, or >> $GITHUB_PATH when the expression is attacker-controlled (the line is parsed by GitHub before later steps consume it; getsentry 0898b3d8 fixed exactly this)
  • ${{ inputs.* }} or ${{ github.event.inputs.* }} interpolated directly into shell or script in workflow_dispatch or workflow_call release, deploy, publish, bump-version, tagging, PR-creation, secret-bearing, or token-bearing jobs. This is highest signal for free-form string inputs. Warden PR #277 hardened npx semver -i ${{ inputs.bump }} $CURRENT; sentry c50c92f fixed the more clearly injectable gh pr create --fill ${{ inputs.pr_options }} free-form option case.
  • ${{ inputs.* }} interpolated into shell or script inside a composite action that is reachable from an externally triggerable caller (sentry e93ee1ce pulled this out of setup-devservices)

Attacker-controlled values include PR title, PR body, issue title, issue body, comment body, review body, discussion title, discussion body, branch names, changed filenames, labels, commit messages, wiki page names, and any action outputs, environment variables, or workflow inputs derived from those values. Manual and reusable workflow inputs are caller-controlled too; free-form string inputs are untrusted in shell and script sinks even when only repository users can trigger them. Numeric IDs, full commit SHAs, repository names, booleans, hardcoded choice options, and values created by the base workflow are usually not injectable unless later code reinterprets them unsafely.

Comment, label, or chatops command execution

Report when an issue_comment, label, discussion, or chatops workflow lets untrusted users trigger commands without an authorization gate, or uses comment/body text in a shell or script command without safe quoting. CVE-2025-53104 (gluestack-ui) shipped a discussion-title shell injection. Discussion events are not a quiet corner.

Acceptable gates include author_association checks for MEMBER, OWNER, or COLLABORATOR, explicit team membership validation through GitHub API, or a required approval flow before command execution.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
50
Repository forks
3
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 May 2026, 6 months ago.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/getsentry/warden-skills/wrdn-gha-workflows/badge)](https://verified-skill.com/skills/getsentry/warden-skills/wrdn-gha-workflows)

Something wrong with this skill or its page? Tell us.