ci_cd_pipeline
Maintain the 13-workflow GitHub Actions CI/CD system with security gates, integrity checks, and deployment automation.
SKILL.md.claude/skills/07_ci_cd_pipeline/SKILL.md
GitHubCI/CD Pipeline (RESTO BOT)
CI Diamond
integrity-gate
|
+---> lint
+---> python-tests
+---> integration-tests
+---> docker-build
+---> security-scan
+---> frontend-lint
+---> test-harness
|
v
ci-summary
CD Diamond
validate -> preflight -> security-gate -> staging -> smoke
-> approve -> backup -> deploy -> smoke -> dora -> cleanup
Workflow files
Location: project/.github/workflows/
| Workflow | Purpose |
|---|---|
| ci.yml | Main CI diamond |
| cd-deploy.yml | CD deployment pipeline |
| build-push-artifacts.yml | Docker build + push to GHCR |
| security-scan.yml | Trivy + secret scanning |
| integrity-gate.yml | Workflow JSON validation |
| test-harness.yml | End-to-end test battery |
| And more... | 12 total workflows |
Composite actions
Location: project/.github/actions/ (4 composite actions)
Supply-chain security policies
- All GitHub Actions must be SHA-pinned (no
@v3, use@sha256:...) - N8N_VERSION must match across
.env,ci.yml,security-scan.yml - Docker images signed with Cosign
- SBOM generated per build
- SLSA provenance attestation
Required stages for any pipeline change
- Validate (lint/format/typecheck)
- Test (unit + integration)
- Security (secret scan + dependency scan + Trivy)
- Build (deterministic, reproducible)
- Deploy (gated for prod, requires approval)
- Post-deploy smoke (curl health endpoints)
- Cleanup (safe prune; never delete volumes)
Key files
project/.github/workflows/(all workflow YAML files)project/.github/actions/(composite actions)project/.env(N8N_VERSION must be consistent)project/scripts/validate_cicd.sh(CI/CD validation script)
Required output
- Pipeline diff with rationale
- Smoke script used in post-deploy stage
- Rollback instructions
- Version consistency check (N8N_VERSION across files)