/everything-copilot-cli:gha-security-reviewfrom everything-copilot-cli
Reviews GitHub Actions workflows for exploitable vulnerabilities including pwn-request patterns, expression injection, credential escalation, config poisoning, and supply chain risks. Reports only HIGH and MEDIUM confidence findings with concrete attack paths.
Ships in everything-copilot-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review GitHub Actions workflows like an attacker would. Only report issues that can be reached from a realistic external trigger.
.github/workflows/*.yml or .github/workflows/*.yaml changes before merge| Instead of gha-security-review | Use |
|---|---|
| Broad application security review | security-scan |
| General repository trust scorecard | evaluate-repository |
| Threat modeling a system architecture | threat-model-analyst |
Assume an attacker does not have repository write access.
They can:
They cannot:
workflow_dispatch manuallyIf exploitation requires write access, do not report it as an in-scope finding.
Review:
.github/workflows/*.yml or .github/workflows/*.yamlaction.yml or action.yaml.github/actions/AGENTS.md, CLAUDE.md, Makefile, and shell scriptsStart by listing relevant files:
git --no-pager ls-files --cached --others --exclude-standard |
Select-String "^(\\.github/(workflows|actions)/.+|scripts/.+|.+\\.sh|action\\.ya?ml|Makefile|AGENTS\\.md|CLAUDE\\.md)$" |
ForEach-Object { $_.Line }
For each workflow, identify which external triggers matter:
pull_request_targetpull_requestissue_commentworkflow_callpushscheduleworkflow_dispatchOnly continue down exploit paths that fit the threat model above.
Look for pull_request_target combined with checkout or execution of fork-controlled code.
git --no-pager grep -n "pull_request_target|actions/checkout|github.event.pull_request.head" -- ".github/workflows"
Report when all three are true:
run: step or action executes attacker-controlled codeLook for attacker-controlled ${{ ... }} expressions inside run: blocks.
git --no-pager grep -n "\${{.*}}" -- ".github/workflows"
Safe patterns to not report:
${{ }} in if: conditions${{ }} in with: inputs${{ secrets.* }} by itselfReview issue_comment workflows that parse slash commands or bot commands.
Check:
author_association is validatedrun: block unsafelyLook for elevated credentials exposed to untrusted execution contexts:
Flag workflows that load attacker-controlled config from PR code:
AGENTS.mdCLAUDE.md.cursorrulesMakefileCheck for:
permissions: blocksPrefer findings that point to a narrower trust shape:
permissions:
contents: read
id-token: write # only when the job actually uses OIDC federation
Flag workflows that hand out repository write or cloud credentials broadly when the job only needs read access or short-lived federated credentials.
Workflows that collect changed files and feed them into shell commands can become exploitable when attacker-controlled filenames are interpolated into command strings.
Check for diff-driven file handling first:
$workflowFiles = git --no-pager ls-files --cached --others --exclude-standard |
Select-String "^(\\.github/(workflows|actions)/.+|scripts/.+|.+\\.sh)$" |
ForEach-Object { $_.Line }
if ($workflowFiles) {
Select-String -Path $workflowFiles -Pattern "git diff --name-only|git diff-tree|GITHUB_OUTPUT|xargs|for file in|while read"
}
Prefer these patterns:
git diff --name-only -z ... | while IFS= read -r -d '' file; do ...; done$GITHUB_OUTPUT or environment files, rather than
constructing one shell command that embeds filenames directly. When a filename must cross a
workflow boundary, encode it safely first (for example JSON, Base64, or another structured
representation that preserves control characters)CMD=("tool" "$file"); "${CMD[@]}"Do not trust:
git diff --name-only output pasted directly into run: command strings$GITHUB_OUTPUT or $GITHUB_ENV without control-character-safe encodingxargs or for loops that split on whitespace when filenames may contain special charactersAfter you find an exploitable pattern, check whether the workflow keeps its protective controls current:
A minimal update workflow can look like:
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
Treat missing pin maintenance as a hardening gap, not just a style issue.
Every HIGH-confidence report should include:
If any link in that chain is weak, downgrade to MEDIUM or drop the finding.
Use this structure:
## GHA Security Review
### HIGH
- **Pwn request** in `.github/workflows/release.yml`
- Entry point: fork PR triggers `pull_request_target`
- Payload: attacker modifies local action in PR branch
- Execution: workflow checks out PR head and runs local action
- Impact: repository write token theft
- PoC sketch: ...
### MEDIUM
- **Expression injection** in `.github/workflows/comment.yml`
- Needs verification: attacker-controlled comment body appears in `run:`
### No finding
- Workflow uses `pull_request` only and actions are pinned to full SHA
| Confidence | Meaning | Action |
|---|---|---|
| HIGH | Full attack path confirmed | Report with all five elements |
| MEDIUM | Meaningful path but one link still needs proof | Report as needs verification |
| LOW | Theoretical, mitigated, or outside the threat model | Do not report |
| Rationalization | Reality |
|---|---|
| "It only runs in CI, not production." | CI often holds the credentials that production trusts. |
"The workflow uses pull_request_target, but that's normal." | It is only safe when fork-controlled code never becomes executable. |
| "Expressions are everywhere in Actions YAML." | Expressions are dangerous specifically when attacker-controlled data reaches run: shell context. |
pull_request_target plus fork checkout${{ }} inside run:agent-owasp-check - audit broader agent trust-boundary and tool-governance risksagent-supply-chain - verify integrity and pinning for build or plugin artifactspr-security-review - review application-code diffs for classic security issuesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cliOther plugins' skills for the same job