pipeline-security

pipeline-security is a skill for Claude Code from sawrus/agent-guides. It costs 27 tokens per session (699 once invoked), scanned A, original, MIT.

A guide to securing automated software build and deployment pipelines, the systems that test code and release it to production.

In plain words
What is it for?
Use it to configure OIDC authentication, keyless signing, software bills of materials, provenance checks, secure runners, and deployment admission policies.
Why use it?
It helps replace long-lived cloud keys, limit pipeline permissions, verify where artifacts came from, and block untrusted releases.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to configure OIDC authentication, keyless signing, software bills of materials, provenance checks, secure runners, and deployment admission policies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sawrus/agent-guides/pipeline-security
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sawrus/agent-guides --skill pipeline-security
Clone the repo
git clone --depth 1 https://github.com/sawrus/agent-guides

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pipeline-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/sawrus/agent-guides/pipeline-security.svg)](https://agentmods.dev/skills/sawrus/agent-guides/pipeline-security)
Your own site
<a href="https://agentmods.dev/skills/sawrus/agent-guides/pipeline-security"><img src="https://agentmods.dev/badge/skills/sawrus/agent-guides/pipeline-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 699 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 88
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00699
Opus 5 $0.00014 $0.00349
Sonnet 5 $0.00005 $0.00140
Haiku 4.5 $0.00003 $0.00070

Measured 8d ago against content hash 85882bba9404, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

pipeline-security scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

areas/devops/ci-cd/skills/pipeline-security/SKILL.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Pipeline Security

Expertise: OIDC cloud auth, least-privilege workflow permissions, secret scanning, keyless artifact signing, SLSA provenance, and admission policy checks.

When to load

When designing or hardening CI/CD pipelines for production deployments, especially where compliance or high-risk workloads are involved.

Security Outcomes (definition of done)

  • Pipeline uses OIDC federation (no long-lived cloud keys in CI secrets).
  • Artifacts are signed keylessly and verified with identity constraints.
  • Provenance + SBOM are generated and validated before deploy.
  • Workflows use minimal GitHub/GitLab permissions.
  • Runtime admission policies block unsigned/unattested artifacts.

OIDC Authentication (no long-lived credentials)

jobs:
  deploy:
    permissions:
      id-token: write
      contents: read
    steps:
      - uses: aws-actions/configure-aws-credentials@<pinned-sha>
        with:
          role-to-assume: arn:aws:iam::123456789012:role/github-actions-deploy
          aws-region: us-east-1
  • Constrain trust policy by repo, ref, and workflow identity.
  • Prefer short session duration and environment-scoped roles.

Minimal Permissions Model

permissions:
  contents: read
  id-token: write
  packages: write
  • Deny by default; explicitly request only required scopes.
  • Split build and deploy into separate jobs with separate permissions.

Keyless Signing + Verification

# Sign immutable artifact digest
cosign sign --yes registry.example.com/team/service@sha256:<digest>

# Verify identity and issuer in deploy gate
cosign verify \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp 'https://github.com/myorg/myrepo/\.github/workflows/.+@refs/tags/v.+' \
  registry.example.com/team/service@sha256:<digest>

Provenance + SBOM Requirements

  • Generate SLSA provenance attestation for each release artifact.
  • Generate CycloneDX/SPDX SBOM for exact artifact digest.
  • Store attestation/SBOM references in release metadata.
  • Block deploy if attestation/SBOM is missing or invalid.

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 97 lines · 27 tokens per session scan A 85882bba9404

Subscribe to this mod's changes

pipeline-security is a skill published in the GitHub repository sawrus/agent-guides (17 stars, last pushed 8d ago), licensed MIT. It adds 27 tokens to every session and 699 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ci-cd-and-automation

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

addyosmani/agent-skills · 45 tokens

agentic-actions-auditor

Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches. AI agents running in CI/CD pipelines.

sickn33/agentic-awesome-skills · 63 tokens

dep

Handles containerization, CI/CD pipelines, and deployment setup.

sickn33/agentic-awesome-skills · 14 tokens

tdd-configure-ci

Configures CI/CD pipelines to mechanically enforce CONSTRAINTS.md quality bars and Floor-Guard anti-cheat rules. (Optional Utility).

GulajavaMinistudio/awesome-copilot-id · 33 tokens

nx-ci-monitor

Monitor Nx Cloud CI pipeline status and handle self-healing fixes automatically. Use when user says "watch CI", "monitor pipeline", "check CI status", "fix CI failures", or "self-heal CI". Requires Nx Cloud connection. Do NOT use for local task execution (use nx-run-tasks) or general CI debugging outside Nx Cloud.

tech-leads-club/agent-skills · 74 tokens

perf-lighthouse

Run Lighthouse audits locally via CLI or Node API, parse and interpret reports, and set performance budgets. Use when measuring site performance, understanding Lighthouse scores, setting up budgets, or integrating audits into CI. Triggers on: lighthouse, run lighthouse, lighthouse score, performance audit, performance…

tech-leads-club/agent-skills · 92 tokens