java/src/main/resources/targets/claude/skills/core/security/x-security-pipeline/SKILL.md
Generate CI/CD pipeline configurations with conditional security stages based on SecurityConfig flags. Support GitHub Actions, GitLab CI, and Azure DevOps with minimal and full stage modes, configurable severity thresholds, and SARIF artifact upload.
npx skillsauth add edercnj/claude-environment x-security-pipelineInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/x-security-pipeline — GitHub Actions, all stages, pr trigger (default)
/x-security-pipeline --ci github — GitHub Actions security pipeline
/x-security-pipeline --ci gitlab — GitLab CI security pipeline
/x-security-pipeline --ci azure — Azure DevOps security pipeline
/x-security-pipeline --stages minimal — SAST + secret scan + dependency audit only
/x-security-pipeline --stages all — full pipeline with all 9 conditional stages
/x-security-pipeline --trigger schedule — scheduled trigger
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| --ci | Enum | github | CI platform: github (GitHub Actions), gitlab (GitLab CI), azure (Azure DevOps) |
| --stages | Enum | all | Stage mode: all (9 conditional stages) or minimal (3 stages: SAST, secret scan, dependency audit) |
| --trigger | Enum | pr | Pipeline trigger: push, pr, schedule |
| --fail-on-findings | Boolean | true | Exit non-zero when findings at or above severity threshold detected |
| --severity-threshold | Enum | HIGH | Minimum severity to fail: CRITICAL, HIGH, MEDIUM |
| Platform | Output File |
|----------|-------------|
| github | .github/workflows/security.yml |
| gitlab | .gitlab-ci.yml (security stages appended) |
| azure | azure-pipelines-security.yml |
All platforms support SARIF artifact upload for GitHub Advanced Security integration. Each enabled stage is a CI job wrapping the corresponding atomic scanning skill reference (RULE-011 — Composability). 9 stages available; conditions and skill references:
| Stage | Skill | Condition |
|-------|-------|-----------|
| Secret Scan | x-security-secrets | security.scanning.secrets = true |
| SAST | x-security-sast | security.scanning.sast = true |
| Dependency Audit | x-dependency-audit | Always |
| SonarQube | x-security-sonar | security.scanning.sonar = true |
| Container Scan | x-security-container | infrastructure.container != none |
| DAST Passive | x-security-dast | security.scanning.dast = true |
| OWASP Scan | x-owasp-scan | security.frameworks contains "owasp" |
| Hardening Eval | x-hardening-eval | security.scanning.hardening = true |
| Quality Gate | x-security-sonar | security.scanning.sonar = true |
| Scenario | Action |
|----------|--------|
| Unknown CI platform | Default to github; warn user |
| No SecurityConfig flags set | Generate Dependency Audit only (always enabled) |
| All conditions disabled | Generate pipeline with only Dependency Audit |
| Container scan without Dockerfile | Exclude container scan; add to disabledStages |
| Invalid --severity-threshold | Default to HIGH; warn user |
| Invalid --stages mode | Default to all; warn user |
| Validation tool missing | Warn and skip validation (non-blocking) |
Complete per-platform YAML templates (GitHub Actions, GitLab CI, Azure DevOps), stage-by-stage configuration details (SecurityConfig key→stage mapping, SARIF upload for each platform, caching strategies), severity threshold semantics, tool mapping (Semgrep for SAST, Trivy for container scan, Syft/Grype for dependency audit, detect-secrets for secret scan), composability notes (RULE-011), and integration notes in
references/full-protocol.md.
tools
Documentation automation v2: stack-aware generation from documentation.targets.
development
Generates or updates CI/CD pipelines per project stack with actionlint validation.
tools
Generates ADRs from architecture-plan mini-ADRs with sequential numbering and index update.
development
Formats source code; first step of the pre-commit chain (format -> lint -> compile).