Unpinned actions turn workflow execution into a moving target, because a trusted tag can later point to compromised code. That breaks provenance, makes approval meaningless over time, and expands blast radius when the workflow also holds secrets or deployment rights. Teams should treat the action reference itself as a security control, not just a convenience for updates.
Why unpinned third-party actions are not a stable trust boundary
When a workflow references a third-party action by a mutable tag, the workflow is no longer executing the same code you reviewed yesterday. The reference can drift, so the trust decision is attached to a label rather than to immutable source. That is a provenance failure, not just a convenience trade-off.
This matters because CI/CD workflows often run with broad repository permissions, deployment rights, or access to build-time secrets. A later change to the action can silently convert a safe-looking pipeline step into code execution inside a privileged automation context.
Unpinned actions also weaken change control. Approval of the workflow file no longer guarantees approval of the code that actually runs, which means auditability and reproducibility both degrade as soon as the tag moves.
How the failure spreads through the pipeline
The main break is that the workflow boundary becomes time-dependent. A maintainer update, compromised publisher account, or malicious tag rewrite can change behavior without touching the repository that consumes the action. In practice, that means the pipeline inherits the action publisher’s release process as part of its own attack surface.
That dynamic is why pinning by commit SHA is treated as a control, not a style preference. It gives you an immutable reference point for review, rollback, and forensic comparison, while mutable tags only tell you what was true at one moment in time. For a practitioner-facing treatment of pinned references, see CI/CD Pipeline Identity Security Guide.
Once a workflow also has secrets, artifact-signing rights, or deployment permissions, the blast radius grows quickly. A compromised action can read environment variables, exfiltrate tokens, tamper with build outputs, or impersonate trusted automation downstream. Cases involving secret leakage from CI/CD actions show why this is not theoretical, and why the reference itself should be treated as part of the security boundary.
What teams should control, verify, and document
Teams should treat action references as governed dependencies. That means the exact commit should be reviewed, the update path should be explicit, and the workflow should be able to prove which version ran when an incident is investigated. If the action cannot be pinned and tracked, it should not be allowed to handle privileged steps.
For supply-chain integrity, align workflow design with immutable build inputs and artifact provenance. SLSA is useful here because it pushes teams toward provenance-aware build and release processes instead of assuming that a tag or marketplace listing remains trustworthy. The same logic also applies to third-party actions that can introduce code into the build path.
When the action is responsible for authenticating to other systems, use short-lived, narrowly scoped credentials and review whether the action really needs that authority. Guide to the Secret Sprawl Challenge reinforces the practical point that exposed or long-lived secrets turn a simple workflow change into a broad compromise opportunity.
Risk and Threat Considerations
Unpinned actions create a time-of-check, time-of-use problem in the software supply chain. A trusted action can later be replaced or modified, so a clean approval today may be attached to unsafe code tomorrow. That makes CI/CD a good target for attackers who want persistence, secret access, or a way to influence every future build.
Failure mechanism: The workflow trusts a moving tag or release label instead of an immutable commit, so the executed code can change after review. If the action publisher, release process, or upstream dependency is compromised, the pipeline can inherit malicious behavior without any visible change in the consuming repository.
Impact: Attackers can steal secrets, alter build artifacts, inject backdoors, or pivot into deployment systems and production environments. The practical consequence is that one unpinned action can expand into repo compromise, release compromise, and credential compromise at the same time.
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 addresses the attack and risk surface, while SLSA and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Unpinned actions can expose secrets when a trusted tag changes. |
| NHI-03 — Vulnerable Third-Party NHI | Third-party actions are supply-chain dependencies that can be compromised upstream. | |
| NHI-05 — Overprivileged NHI | CI/CD actions often hold deployment rights and broad token permissions. | |
| Recommendation — Pin third-party actions and restrict secret exposure in privileged workflows. Review third-party actions as external dependencies and pin their exact versions. Reduce workflow permissions and scope action credentials to the minimum needed. | ||
| SLSA | Supply-chain Levels for Software Artifacts | Pinned references and provenance are core to software supply-chain integrity. |
| Recommendation — Adopt provenance-aware builds and immutable references for release inputs. | ||
| NIST SP 800-53 Rev 5 | CM-3 — Configuration Change Control | Mutable action references bypass stable configuration approval over time. |
| SA-12 — Supply Chain Protection | Third-party actions are supplied code that can be altered upstream. | |
| Recommendation — Require controlled review for workflow dependency changes and version updates. Evaluate and constrain third-party workflow components as supply-chain risk. | ||
Practitioner Guidance
What to verify: Verify that every third-party action used in a privileged workflow is pinned to an immutable commit SHA, not a tag or branch. If the step touches secrets, release signing, cloud credentials, or deployment controls, treat pinning as mandatory and make the review evidence part of the change record.
Decision rule: If the action can influence authentication, artifact integrity, or deployment authority, do not allow mutable references. If the action is low risk and non-privileged, it may still be pinned for consistency, but the governance bar is lower than for build or release paths.
Practitioner takeaway: The key question is not whether the action looked safe when it was approved, but whether the exact code that ran can still be proven and trusted after the publisher changes.
Related resources from NHI Mgmt Group
- Who is accountable for securing CI/CD workflows that depend on third-party actions?
- How should security teams reduce the risk of command injection in CI/CD workflows that call third-party actions?
- What breaks when AI agents are allowed to act inside privileged CI/CD workflows?
- What breaks when CI/CD workflows can run untrusted code with privileged tokens?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 12, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org