Join our Newsletter — 33% off our NHI Course
Home› FAQ› Governance, Ownership & Risk› What do teams get wrong about treating CI/CD…
Governance, Ownership & Risk

What do teams get wrong about treating CI/CD configuration as infrastructure instead of code?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 28, 2026 Domain: Governance, Ownership & Risk

The common mistake is assuming pipeline configuration is operational plumbing rather than an attack surface. In practice, workflow files can be just as sensitive as application code because they determine who can run actions, which secrets are exposed, and how external components are trusted. That makes configuration review, version control, and security testing essential.

Why CI/CD Configuration Should Be Treated as Code, Not Plumbing

CI/CD configuration is part of the system’s security boundary, not a passive deployment detail. It defines execution rights, trusted inputs, secret access, and release behavior, so small changes can have outsized impact. Treating it as code means subjecting it to review, versioning, testing, and rollback discipline equal to the application it ships.

A useful comparison is build provenance and trusted publishing: if a pipeline can introduce or sign artifacts, then its configuration is shaping trust decisions, not just arranging automation. That is why SLSA matters here, and why pipeline controls should be designed around traceability and integrity rather than convenience alone.

What Teams Commonly Miss About the Attack Surface

The mistake is assuming workflow files are operational noise instead of security-sensitive logic. In reality, CI/CD config can decide which branches trigger privileged jobs, whether untrusted code reaches sensitive runners, and which secrets become visible during a build. That makes it comparable to high-impact application logic, even when the syntax looks simple.

This is also where identity and access decisions become embedded in automation. A pipeline that authenticates to cloud services, package registries, or signing systems is exercising delegated authority, so mis-scoped tokens or weak trust boundaries can turn ordinary builds into privileged compromise paths. CI/CD Pipeline Identity Security Guide and NHI Authentication Guide are useful references for the authentication and trust mechanics that sit underneath that risk.

Configuration also needs the same supply-chain mindset teams apply to dependencies. If a pipeline pulls third-party actions, plugins, or build steps, the configuration is effectively selecting the trust chain for every release. That is why Reviewdog GitHub Action supply chain attack is relevant as a concrete example of how a trusted workflow component can become the path to secret exposure.

What Good Practice Looks Like in Review and Control

Teams get better results when they review CI/CD config with the same rigor they apply to code that touches authentication, secrets, or production deployment. Version control, peer review, change history, and tested rollback are not bureaucracy here, they are the control plane that keeps automation from becoming silent privilege. The practical question is whether a reviewer can explain what the pipeline is allowed to do, not just whether the YAML parses.

Guide to the Secret Sprawl Challenge is relevant because configuration drift often shows up first as hardcoded secrets, long-lived tokens, or duplicated credentials across build systems. If a workflow depends on secrets that outlive the job or are reused across environments, the configuration is carrying hidden risk that code review alone will not catch.

One useful rule is to treat every workflow change as a blast-radius decision. If the change expands who can trigger a privileged job, widens secret exposure, or adds a third-party component, it deserves stricter approval and more explicit testing than a normal application edit. The point is not to slow delivery, but to keep release automation from becoming an unreviewed path to production access.

Risk and Threat Considerations

CI/CD configuration creates a concentrated trust boundary, so failures tend to scale quickly. A small misconfiguration can expose secrets, let untrusted code execute in privileged jobs, or allow a malicious dependency to alter builds and releases across many repositories.

Failure mechanism: Attackers look for workflow files, runner permissions, token scope, and secret handling because those settings often provide direct access to source, artifacts, or downstream cloud and registry accounts. When the pipeline itself is trusted too broadly, compromise of a single configuration file can become a reusable route to theft or deployment abuse.

Impact: The result can be secret exfiltration, poisoned builds, unauthorized releases, or broader supply-chain compromise. At scale, the damage is not limited to one pipeline, it can spread to every repository, environment, or consumer that trusts the same automation path.

Standards & Framework Alignment

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

SLSA, NIST SP 800-53 Rev 5, OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
SLSASupply-chain Levels for Software ArtifactsCI/CD config governs build provenance and artifact trust.
Recommendation — Adopt SLSA practices to preserve build provenance and reduce pipeline tampering.
NIST SP 800-53 Rev 5CM-3 — Configuration Change ControlPipeline config is security-sensitive configuration that needs controlled change review.
IA-5 — Authenticator ManagementPipelines often rely on tokens and secrets whose lifecycle affects access and exposure.
Recommendation — Apply CM-3 to review and approve CI/CD configuration changes before release. Apply IA-5 to limit, rotate, and retire CI/CD secrets and tokens.
OWASP ASVSV15 — Secure Coding and ArchitectureWorkflow logic and trust boundaries should be designed and reviewed like code.
Recommendation — Apply V15 to review CI/CD logic as part of secure architecture and release design.
CIS Controls v8CIS-16 — Application Software SecurityCI/CD configuration is part of the software delivery surface that needs secure handling.
Recommendation — Use CIS-16 to secure the software delivery process, including pipeline configuration.

Practitioner Guidance

What to verify: Confirm that every workflow change has an owner, a reviewer, and a clear list of effective permissions. If a pipeline can reach production, signing, or secret stores, verify the exact trust path rather than assuming inherited safety from the surrounding repository.

Common mistake: Teams often harden application code but leave workflow files less controlled because they look like build metadata. That is the wrong priority, because a change in CI/CD config can silently change execution authority without touching the application itself.

Practitioner takeaway: Treat pipeline configuration as an authorization artifact with release consequences. If you would not accept an unreviewed code change that can read secrets or publish artifacts, do not accept an unreviewed workflow change either.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 28, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org