Join our Newsletter — 33% off our NHI Course

Bring Your Own Pipeline

Bring Your Own Pipeline is a deployment model that lets organisations keep their existing CI/CD tooling while adding governance controls around it. The intent is to avoid workflow disruption while layering policy checks, visibility, and auditability onto the pipeline already in use.

Expanded Definition

Bring Your Own Pipeline describes a governance pattern in which an organisation keeps its existing CI/CD system, whether self-managed or vendor-hosted, and overlays identity, policy, and audit controls rather than replacing the delivery stack. In NHI security, the important distinction is that the pipeline itself is treated as a privileged execution environment, because it can mint, store, or inject secrets, tokens, and other non-human identities into build and release workflows.

Definitions vary across vendors on whether the term includes only build and deploy tooling or also adjacent automation such as release orchestration and infrastructure-as-code runners. NHI Management Group treats it as a control model, not a product category: the objective is to preserve developer velocity while enforcing least privilege, traceability, and approval gates consistent with NIST Cybersecurity Framework 2.0 and modern Zero Trust practice.

The most common misapplication is assuming an inherited pipeline is safe by default, which occurs when organisations add new secrets or deployment permissions without revalidating the pipeline’s trust boundaries.

Examples and Use Cases

Implementing Bring Your Own Pipeline rigorously often introduces some operational friction, because every added control can slow delivery if policy is not embedded in the workflow, forcing organisations to weigh deployment speed against stronger governance.

  • A platform team keeps GitHub Actions or another existing CI/CD tool, but adds policy-as-code checks that block releases when secrets are hardcoded or when token scope exceeds what the job needs.
  • An enterprise reuses its current release pipeline, yet inserts attestations, signed artifacts, and approval steps before production deployment so that only verified build outputs can reach critical environments.
  • A security team overlays centralized logging and secret scanning across an inherited pipeline after reviewing patterns described in the Guide to the Secret Sprawl Challenge, where pipeline-hosted credentials become a persistent exposure point.
  • An engineering group investigates an exposed workflow runner after reading the Reviewdog GitHub Action supply chain attack and tightens job permissions, secret injection, and review requirements.
  • A release engineering team uses the same existing pipeline estate, but isolates production deploy credentials from build jobs to reduce blast radius if a runner is compromised.

Why It Matters in NHI Security

Bring Your Own Pipeline matters because pipelines are now a common control plane for non-human identities, and a weak pipeline can turn one compromised automation path into broad credential exposure. NHI Management Group research shows that 96% of organisations store secrets outside of secrets managers in vulnerable locations including code, config files, and CI/CD tools, which makes pipeline governance directly relevant to secrets hygiene and deployment trust.

When organisations preserve an existing pipeline without adding identity controls, they often inherit hidden privilege, persistent credentials, and poor visibility into which jobs can access production systems. That is especially risky in cases highlighted by the CI/CD pipeline exploitation case study, where delivery tooling itself becomes the path to compromise, and in campaigns such as the Shai Hulud npm malware campaign, where supply chain abuse drives secret exposure.

Organisations typically encounter the need for Bring Your Own Pipeline controls only after a pipeline compromise, at which point governance, rotation, and containment of affected identities become operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-02 Covers secret sprawl and weak pipeline credential handling.
OWASP Agentic AI Top 10 AA-01 Pipeline automation can execute agentic actions with tool access and privilege.
NIST CSF 2.0 PR.AC-4 Least-privilege access applies directly to pipeline identities and jobs.
NIST Zero Trust (SP 800-207) SC-3 Pipeline trust should be continuously verified, not assumed from network location.
NIST AI RMF Automation governance requires measurable risk controls across the pipeline lifecycle.

Inventory pipeline secrets, restrict scopes, and enforce controls where CI/CD injects NHI credentials.