Accountability usually sits with the organisation that owns the repository, the CI policy, and the approval process, not just the developer whose token was stolen. Security, platform, and application teams all share responsibility for controlling workflow changes, secret access, and alert response. If approval controls are absent or incomplete, that governance gap becomes part of the incident.
Why This Matters for Security Teams
A successful secret exfiltration workflow is rarely a simple developer mistake. It usually exposes a control failure across the CI platform, repository governance, secret handling, and detection response. That matters because the secret may grant access to production systems, cloud APIs, signing services, or downstream automation. The accountability question is therefore about ownership of the control environment, not only attribution of the initial compromise.
Security teams often underestimate how much authority a CI pipeline can accumulate over time. Once workflow files can be edited, runners can reach sensitive networks, or secrets are broadly available to jobs, a compromised token can turn into a high-impact identity event. The operational issue is similar to other non-human identity failures: the workflow itself becomes an identity-bearing actor that must be governed, monitored, and constrained. The OWASP Non-Human Identity Top 10 is useful here because it frames secrets, service identities, and automation privileges as assets that require lifecycle control, not just storage.
In practice, many security teams encounter accountability disputes only after the secret has already been reused elsewhere, rather than through intentional CI governance and review design.
How It Works in Practice
In a mature environment, accountability follows the control owners. The repository owner is accountable for workflow integrity, the platform team is accountable for CI runner isolation and job permissions, the security team is accountable for policy, detection, and escalation, and the application owner is accountable for business impact and remediation priorities. The developer whose token was stolen may be part of the incident chain, but that does not replace the organisation’s duty to prevent, detect, and contain misuse.
That split is easiest to defend when CI controls are explicit and auditable. A practical model usually includes:
- Restricting which branches or pull requests can modify workflow files.
- Using short-lived credentials instead of long-lived secrets where possible.
- Separating build-time, test-time, and deploy-time permissions.
- Scanning pipeline logs and artifacts for exposed tokens and sensitive output.
- Alerting on unusual secret access, unexpected runner behaviour, or outbound connections from build jobs.
- Recording approval trails so security can show who authorised the workflow state at the time of compromise.
These controls align well with NIST SP 800-53 Rev 5 Security and Privacy Controls, especially access control, auditability, configuration management, and incident response expectations. They also support a defensible incident narrative when auditors or legal teams ask who had operational authority over the compromised path.
Where organisations go wrong is treating the pipeline as a developer convenience layer rather than a governed production control plane. Once CI can mint credentials, retrieve secrets, or trigger deployments, it must be managed like a privileged automation system. These controls tend to break down in fast-moving monorepos with shared runners and weak branch protections because workflow changes, secret exposure, and deployment approval all collapse into one uncontrolled execution path.
Common Variations and Edge Cases
Tighter pipeline governance often increases delivery friction, requiring organisations to balance release speed against the need for traceable approval and secret containment.
There is no universal standard for assigning legal accountability in every secret-exfiltration case, so current guidance suggests separating operational responsibility from incident causation. A contractor may have introduced the vulnerable token handling, but if the organisation failed to require protected branches, signed builds, or secret rotation, that governance gap remains part of the accountability picture.
Edge cases appear when multiple teams share the same workflow estate. In platform-as-a-service style CI, one team may own the runner, another owns the repository, and a third owns the secrets backend. That split can blur responsibility unless the organisation has a clear RACI model and evidence of enforcement. It is also common for secrets to be exposed indirectly through logs, caches, or artifacts, which makes the accountable control owner the one responsible for the system that leaked the data, not just the person who committed the change.
For organisations with mature identity governance, this is an NHI problem as much as a CI problem. Pipeline identities, deploy tokens, and bot accounts should be treated as privileged non-human identities with explicit owners, rotation rules, and revocation paths. Without that discipline, incident reviews can name a human mistake but still fail to identify the real control gap.
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 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | CI secrets and pipeline identities are non-human identities needing ownership and lifecycle control. | |
| NIST CSF 2.0 | PR.AC, PR.DS, DE.CM, RS.RP | Access control, data security, monitoring, and response map directly to secret exfiltration in CI. |
| NIST AI RMF | Useful where CI pipelines are part of AI supply chains and model delivery workflows. | |
| NIST SP 800-53 Rev 5 | AC-2, AC-6, AU-2, CM-3, IR-4 | These controls cover account management, least privilege, logging, change control, and incident handling. |
| NIST Zero Trust (SP 800-207) | Zero trust principles help limit blast radius when a CI token or secret is stolen. |
Treat pipeline tokens and bot accounts as governed identities with owners, rotation, and revocation.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org