PrepCity

CI/CD pipeline security

Open the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Lesson · 13 pages · about 11 min

CI/CD pipeline security

The pipeline holds the keys to production, so it is a target. Gates at each stage catch what their checks can see; SHA-pinned actions, safe triggers, least-privilege tokens, isolated caches and OIDC federation keep untrusted code and stolen keys out of the release.

What it is
CI/CD pipeline security protects the build and deploy system itself: what it runs, what it trusts, and what credentials it holds.
What it is for
Whatever can change what the pipeline runs can change production, and the pipeline holds deploy keys, write tokens and publish rights.
Use it when
For any repository that builds, publishes or deploys automatically, from the first workflow.
Not when
It does not make the code itself correct; secure design, review and testing still decide that.

Words you’ll learn

  • Data pipeline
  • Server
  • Script
  • Secret
  • Attack surface
  • Request
  • SAST
  • SQL injection
  • CVE
  • DAST

Page by page