What do you put in a pull request pipeline versus a main branch pipeline?
BeginnerProductionPipeline Design and Architecture
Answer
PR pipeline (fast, no production access): lint, unit tests, SAST, secret scan, dependency scan, build image (not pushed to prod registry, or pushed with a PR tag), Terraform plan, preview environment. Main pipeline (trusted): everything from PR, plus publishing the artifact, signing, SBOM, deploy to staging, integration/E2E tests, promotion to production. Secrets for deployment exist only in the main pipeline context.
More on Pipeline Design and Architecture
What does a good production CI/CD pipeline look like end to end?BeginnerWhat is your target feedback time for CI and how do you hit it?IntermediateHow do you structure repositories: app repo, config repo, pipeline library?IntermediateHow do you design a pipeline for a monorepo with 50 services?AdvancedShould every merge to main deploy to production automatically?IntermediateHow do you keep pipeline definitions DRY across hundreds of repos?Intermediate