- Home
- Skills
- DevOps & Cloud
- GitHub Actions Security & Speed Quick-Audit
Works with the AI Agents you already use
GitHub Actions Security & Speed Quick-Audit
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
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)
| Rule | Severity | Location | Finding | Actionable Fix |
|---|---|---|---|---|
GHA-SEC-001 | Critical | ci.yml:22 | Untrusted ${{ github.event.pull_request.title }} interpolated in run: | Pass via env: PR_TITLE and quote "$PR_TITLE" |
GHA-SEC-003 | High | ci.yml:14 | actions/checkout@v4 & 3rd-party actions not SHA-pinned | Pin to full 40-char commit SHA + version comment |
GHA-SEC-004 | High | ci.yml:1 | Missing top-level least-privilege permissions: block | Add permissions: { contents: read } |
GHA-SPD-001 | High | ci.yml:1 | No concurrency: group (cancel-in-progress: true) | Cancel superseded PR runs automatically |
GHA-SPD-002 | High | ci.yml:18 | npm ci runs without setup-node cache: 'npm' | Enable built-in npm cache (~2–3 min saved) |
GHA-SPD-005 | Medium | ci.yml:34 | docker build has no Buildx GHA layer cache | Switch 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 inrun:blocks, dangerouspull_request_target+ PR head checkouts, actions not pinned to 40-char commit SHAs, missing least-privilegepermissions:, and hardcoded credential patterns (auto-masked as[REDACTED]). - CI Speed & Runner Cost (
GHA-SPD-001–006): Missingconcurrency:withcancel-in-progress: true, missing Node/Python/Go/Cargo/Java caching, missingtimeout-minutesguard, unnecessaryfetch-depth: 0clones, 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 gatescripts/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 catalogtemplates/— Audit report scorecard & ready-to-paste PR optimization summaryexamples/— Worked SaaS CI transformation cutting a 16-minute workflow down to ~4 minutestests/— 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, zeroos.environreads, 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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.js
Git
Permissions
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.