Accountability should sit with both the platform engineering team that owns runner and workflow policy and the identity team that governs tokens, secrets, and delegated access. In practice, GitHub Actions security needs the same ownership discipline as privileged automation in production systems.
Who owns CI workflow security in practice?
CI workflow security is not a single-team problem. The right ownership model is split: platform engineering owns the runner, workflow, and repository-policy mechanics, while the identity or access team owns the tokens, secrets, and delegated access that let workflows act. That separation matters because most failures happen at the boundary between build-system configuration and credential governance.
When teams blur that boundary, gaps appear fast. One side may harden workflow files and runners while the other side still leaves long-lived secrets, broad token scopes, or weak rotation practices in place. A secure CI program needs both parts to agree on standards for who can run what, which credentials exist, and how those credentials are issued, used, and revoked.
For broader context on non-human credentials and workflow-linked access, see Ultimate Guide to NHIs and the related static vs dynamic secrets guidance, which frames why CI credentials should be treated as governed access material rather than ad hoc configuration.
What parts of CI workflow security are actually in scope?
The platform side covers workflow definitions, runner trust, job isolation, environment protections, approval gates, and the policy controls that prevent arbitrary code from gaining excessive execution power. The identity side covers how workflows authenticate, what secrets they can reach, whether access is short-lived or persistent, and how delegated permissions are scoped across repositories, environments, and external systems.
That split is important because CI incidents rarely come from a single control failure. A workflow may be technically correct but still dangerous if it can read a production secret, impersonate a broad service principal, or reuse a token beyond its intended job. Conversely, excellent secret hygiene will not save a pipeline if workflow permissions are too broad or if untrusted code can influence privileged steps.
Practitioners should think in terms of control ownership, not just platform ownership. The team that controls execution should define where code may run, and the team that controls access should define what that code may reach. The two must align on policy, review, and exception handling or the weakest boundary becomes the real control plane.
For an implementation-oriented reference on secret handling and workflow-linked credentials, the Secrets Management Guide and API Key Management Guide are useful because they separate secret storage and rotation concerns from workflow execution concerns.
How should accountability be split between platform and identity teams?
Accountability works best when it is explicit and operational. Platform engineering should own workflow policy, runner trust, environment protections, and the default execution model. Identity or access teams should own credential issuance, secret lifecycle, token scope, federation rules, and revocation standards. Security can set the control objectives and verify that both sides are meeting them.
The practical rule is simple: if the issue is “can this workflow run safely,” platform engineering owns it; if the issue is “what authority does this workflow have,” identity owns it. If a control touches both, such as OIDC federation into cloud roles or repository secrets available to jobs, then both teams need a shared approval path and a named decision owner. That avoids the common failure mode where each team assumes the other is handling the risky part.
Good accountability also requires evidence. Teams should be able to show who approved workflow permissions, who owns each secret or token class, what rotation interval applies, and how emergency revocation works when a workflow or runner is suspected of exposure. If those answers are not documented, the organisation does not really have accountability, it has distributed ambiguity.
For a stronger governance lens, Ultimate Guide to NHIs, Key Challenges and Risks is a useful internal reference because it maps overprivilege, visibility gaps, and unmanaged credentials to the exact ownership failures that show up in CI.
Risk and Threat Considerations
CI systems are attractive targets because a single workflow or runner compromise can expose many credentials at once. Attackers often aim for the least visible path: stolen tokens, overbroad secrets, reused credentials, or poisoned workflow steps that can read and exfiltrate protected values from logs or ephemeral environments.
Failure mechanism: ownership gaps let one team harden the pipeline while another leaves high-value secrets reachable by jobs, so a compromised workflow can turn build access into downstream environment access.
Impact: the blast radius can include source repositories, package registries, cloud environments, deployment targets, and customer data, especially when CI credentials are long-lived or broadly scoped.
For a concrete abuse pattern, the tj-actions/changed-files compromise 2025 shows how a workflow compromise can cascade into secrets exposure, while the CircleCI breach 2023 illustrates why session theft and credential rotation belong in the accountability model, not just incident response.
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 API Security Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | CI workflow security directly concerns exposed secrets and tokens. |
| NHI-05 — Overprivileged NHI | CI tokens and workflow credentials often carry excessive authority. | |
| NHI-07 — Long-Lived Secrets | CI incidents frequently involve persistent tokens that outlive their intended use. | |
| Recommendation — Restrict CI secret exposure, scan for leaks, and rotate any credential used by workflows. Scope workflow credentials to least privilege and remove broad repository or cloud permissions. Replace long-lived CI secrets with short-lived credentials and enforce rotation. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | Workflow tokens and delegated access depend on correct authentication to downstream systems. |
| Recommendation — Harden token authentication paths and revoke any shared or replayable CI credentials. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | CI secrets and tokens need lifecycle control, rotation, and revocation. |
| Recommendation — Manage CI authenticator lifecycle with rotation, revocation, and secure storage. | ||
Practitioner Guidance
What to prioritise: assign one named owner for workflow policy and one named owner for secrets and delegated access, then document the handoff points between them. If no one can answer who approves runner trust, token scope, and secret rotation, the control design is already weak.
What to verify: confirm that CI jobs use the narrowest possible credential type, that secrets are scoped to the minimum environment or repository, and that revocation can happen without waiting for a release cycle. Short-lived credentials and federated access should be preferred where the platform supports them.
Common mistake: treating “the CI team” as the owner of everything. That usually leaves identity controls under-managed and makes a breach harder to contain because no one is accountable for the authority the workflow inherits.
Practitioner takeaway: secure CI is a shared control plane, but it only works when execution risk and access risk have separate owners and one clear escalation path between them.
Related resources from NHI Mgmt Group
- What should security teams do about secrets hidden in SharePoint?
- How should security teams test CI/CD pipeline exposure before attackers turn a workflow flaw into cloud access?
- How should security teams prioritise NHI remediation in cloud environments?
- How should security teams govern non-human identities at scale?