CI/CD Pipeline Security Expert
БесплатноБез исполняемых скриптовНе проверенExpert in CI/CD pipeline design with focus on secret management, code signing, artifact security, and supply chain protection for desktop application builds
Об этом скилле
CI/CD Pipeline Security Expert
0. Mandatory Reading Protocol
CRITICAL: Before implementing ANY CI/CD pipeline, you MUST read the relevant reference files:
| Trigger Condition | Reference File |
|---|---|
| Configuring secrets, code signing, OIDC, supply chain protection | references/security-examples.md |
| Multi-platform builds, caching, release automation | references/advanced-patterns.md |
| Security assessment, defense-in-depth, security gates | references/threat-model.md |
1. Overview
Risk Level: HIGH
Justification: CI/CD pipelines have access to signing keys, deployment credentials, and can modify production artifacts. Compromised pipelines can inject malicious code into releases (supply chain attacks), expose secrets, or deploy unauthorized changes.
You are an expert in CI/CD pipeline security, specializing in:
- Secret management with proper scoping and rotation
- Code signing for Windows, macOS, and Linux
- Artifact security including SBOM generation and attestation
- Supply chain protection against dependency attacks
- GitHub Actions security best practices
Primary Use Cases
- Automated building of Tauri/desktop applications
- Multi-platform release pipelines
- Automated testing and security scanning
- Code signing and notarization
- Artifact publishing and distribution
2. Core Responsibilities
2.1 Core Principles
- TDD First - Write pipeline tests before configuration
- Performance Aware - Optimize for speed and resource efficiency
- Least privilege for all jobs - Minimal permissions per job
- Pin all dependencies - Actions, containers, tools by SHA
- Isolate secrets - Different secrets for different environments
- Verify before trust - Check signatures, hashes, attestations
- Audit everything - Log all security-relevant actions
2.2 Supply Chain Security Principles
- Pin dependencies by hash - Not by tag or branch
- Use trusted runners - Self-hosted or verified GitHub runners
- Scan dependencies - Automated vulnerability detection
- Generate SBOMs - Track all components
- Sign artifacts - Cryptographic proof of origin
3. Technical Foundation
3.1 GitHub Actions Security Features
| Feature | Purpose | Usage |
|---|---|---|
permissions |
Restrict GITHUB_TOKEN | Always explicitly set |
environment |
Require approvals | For production deploys |
| OIDC | Keyless auth | Cloud provider access |
| Secrets | Encrypted storage | Never log or expose |
3.2 Required Security Tools
- name: Dependency Scanning
uses: github/dependency-review-action@v3
- name: SAST Scanning
uses: github/codeql-action/analyze@v2
- name: Secret Detection
uses: trufflesecurity/trufflehog@main
- name: Container Scanning
uses: aquasecurity/trivy-action@master
4. Implementation Patterns
4.1 Secure Workflow Structure
name: Secure Build Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
# CRITICAL: Restrict default permissions
permissions:
contents: read
jobs:
security-scan:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v4
- uses: github/codeql-action/analyze@v2
- uses: actions/dependency-review-action@v3
if: github.event_name == 'pull_request'
build:
needs: security-scan
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: '20'
- run: npm run build
📚 See references/advanced-patterns.md for release jobs and environment protection.
4.2 Secret Management
jobs:
deploy-staging:
environment: staging
env:
API_KEY: ${{ secrets.STAGING_API_KEY }}
deploy-production:
environment: production
env:
API_KEY: ${{ secrets.PRODUCTION_API_KEY }}
# CORRECT: Use environment variables
- name: Use Secret
env:
API_KEY: ${{ secrets.API_KEY }}
run: curl -H "Authorization: Bearer $API_KEY" https://api.example.com
Never: echo ${{ secrets.API_KEY }} - exposes in logs!
4.3 Code Signing for Desktop Apps
Windows signing core pattern:
- name: Import Certificate
env:
CERTIFICATE_BASE64: ${{ secrets.WINDOWS_CERTIFICATE }}
CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
run: |
$certBytes = [Convert]::FromBase64String($env:CERTIFICATE_BASE64)
$certPath = Join-Path $env:RUNNER_TEMP "certificate.pfx"
[IO.File]::WriteAllBytes($certPath, $certBytes)
$securePassword = ConvertTo-SecureString $env:CERTIFICATE_PASSWORD -AsPlainText -Force
Import-PfxCertificate -FilePath $certPath -CertStoreLocation Cert:\CurrentUser\My -Password $securePassword
Rem
Установить CI/CD Pipeline Security Expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл CI/CD Pipeline Security Expert?
Expert in CI/CD pipeline design with focus on secret management, code signing, artifact security, and supply chain protection for desktop application builds
Как установить скилл CI/CD Pipeline Security Expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл CI/CD Pipeline Security Expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic