DevSecOps pipeline boundaries
Map the delivery path
DevSecOps integrates security decisions into software delivery rather than leaving them to a final audit. Draw source → review → build → artifact store → approval → deployment → runtime. Each arrow crosses a trust boundary: who may submit input, what identity executes it, and which outputs are trusted? A green test is evidence about that test, not permission to deploy.
Keep contribution jobs unprivileged
A contribution may change code, tests or workflow definitions. Run untrusted changes in isolated ephemeral workers with no deployment secrets, no privileged credentials and no access to sensitive networks or persistent shared runners. Review workflow changes before trusted execution. GitHub specifically warns against executing untrusted pull request code in privileged pull_request_target workflows. Do not copy deployment privileges into test jobs.
Promote a reviewed artifact
Imagine a report generator with source revision R7 and artifact digest D7. Build once from the reviewed revision. Record the builder identity, source revision, dependency inventory and digest. At promotion, compare the actual artifact with the approved digest and verify trusted provenance and signer identity. A signature is evidence of origin and integrity under the selected trust model, not proof of safe behavior.
Separate evidence from permission
Code scanning, dependency scanning and policy checks answer different questions. A missing scanner report is not a clean report. The release service must check required evidence for the exact revision and artifact, enforce independent approval and reject stale results. A rebuild with a different digest requires new evidence. Deploy only through authorized change control.
Practice a release decision
A proposed patch passes tests but changes the workflow. The artifact has no verified provenance. Draw two boundaries: isolated contribution checks and the protected release job. Decide which evidence is missing, who should review the workflow, and why publication must wait. Review chapter 26 for artifact promotion and chapter 49 for runtime controls.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
DevSecOps pipeline boundaries — knowledge check
Review CI trust, configuration policy, evidence and approvals.
Which job should receive deployment credentials?
What does a passing test demonstrate?
What must a promotion gate match?
What is a missing scanner report?
What should happen when a reviewed artifact changes?