Building a DevSecOps Pipeline Developers Will Actually Use
Security checks that slow every merge get bypassed. How to layer fast, relevant checks into CI/CD so security improves without becoming the bottleneck.
- Author
- Arabian Lynx Editorial
- Published
- 3 min read
Adding a security scanner to a pipeline takes an afternoon. Getting developers to trust and act on its results takes deliberate design. Pipelines that produce hundreds of unprioritised findings, or add fifteen minutes to every pull request, tend to end up with the checks disabled or ignored.
What you want is a pipeline where checks finish quickly, report only findings worth fixing, and make it obvious what blocks a release.
Start with a threat-informed baseline
Before choosing tools, agree on what you are protecting against. For most web and API platforms, the highest-value controls are:
- No secrets committed to source control
- No known critical vulnerabilities in dependencies or base images
- No obviously insecure infrastructure configuration
- Traceability: knowing exactly what code and which dependencies are running in production
Start there before adding more advanced testing.
Layer checks by speed
Not every check belongs on every commit. A practical layering looks like this:
| Stage | Checks | Target time |
|---|---|---|
| Pre-commit (developer machine) | Secret scanning, linting | Seconds |
| Pull request | Dependency scan, SAST on changed code, IaC scan | Under 5 minutes |
| Main branch build | Container image scan, SBOM generation, image signing | Under 10 minutes |
| Scheduled (nightly or weekly) | Full SAST, DAST against staging, licence review | Hours are acceptable |
Fast feedback in the pull request is where developers are most willing to fix issues, because the context is still fresh.
Make results actionable
- Fail only on what matters. Block merges for critical and high findings that have a fix available. Report the rest without blocking.
- Deduplicate and baseline. When introducing a scanner to an existing codebase, record current findings as a baseline and block only new ones. Track the baseline down separately.
- Show findings where developers work. Inline pull-request comments are far more effective than a separate dashboard few people visit.
- Allow documented exceptions. A time-limited, reviewed suppression is better than developers finding ways around the pipeline.
Protect the supply chain
Attackers also go after the build process: compromised dependencies, tampered build scripts and leaked pipeline credentials. Reasonable steps include:
- Pinning dependency versions and using lock files
- Generating a software bill of materials (SBOM) for every release
- Signing container images (for example with Sigstore cosign) and verifying signatures at deployment
- Restricting who can modify pipeline definitions, and requiring review for those changes
- Using short-lived, federated credentials (OIDC) for pipelines to access cloud accounts, instead of long-lived keys
Secure the infrastructure code too
Terraform, Bicep, Helm charts and Kubernetes manifests deserve the same scrutiny as application code. IaC scanners can catch publicly exposed storage, missing encryption, overly broad security groups and privileged containers before anything is deployed.
Measure and improve
Track a small number of indicators: time to remediate critical findings, the number of exceptions open, pipeline duration, and the percentage of deployments with a signed image and an SBOM. Review them regularly with engineering leads, not only the security team.
Where to start
If you are starting from nothing, add secret scanning and dependency scanning to pull requests first, and block only critical and high findings that have a fix available. Once developers trust those checks, add image scanning, SBOMs and signing on the main branch, then the scheduled full scans.
This article is general technical guidance and does not describe a specific client engagement.
Back to insights