Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Composite Action
Cyber Security

Composite Action

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: Cyber Security

A composite action is a reusable GitHub Actions package that bundles multiple workflow steps into a single callable unit. It can simplify CI reuse, but it also introduces hidden dependency risk because the action may call other actions internally. Those internal references still need full SHA pinning.

What a composite action is in GitHub Actions

A composite action packages several workflow steps into one reusable unit so teams can call it from multiple repositories or workflows. It is useful for standardising CI patterns, but the abstraction does not remove the security obligations of the underlying steps, including how dependencies are resolved and how any nested actions are referenced.

Because the package hides multiple operations behind a single name, readers should treat it as a convenience layer, not a trust boundary. The security posture of the composite action is only as strong as the steps it contains and the integrity of the actions it invokes.

Why composite actions create hidden supply-chain risk

The main security issue is that reuse can obscure what is actually executed. A composite action may look simple at the call site while internally referencing other actions, scripts, or external dependencies. That makes review harder and can conceal dependency changes, unexpected behaviour, or drift between the documented intent and the real execution path.

For example, if one nested reference is moved from a pinned commit SHA to a mutable reference, the outer composite action can still appear stable while its internal trust base becomes weaker. That is why composite actions are often discussed alongside OWASP API Security Top 10 style concerns about exposed trust decisions and with OWASP Non-Human Identity Top 10 guidance when automation depends on secrets, tokens, or other identity-bearing material.

Dependency integrity and SHA pinning

The critical control concept is full pinning of every referenced action, including any action called from inside the composite action. If inner references are not pinned to immutable SHAs, a consumer may believe it is using a controlled package while still inheriting mutable upstream behaviour.

That risk is especially relevant in shared CI estates where many repositories consume the same reusable component. A single unpinned internal reference can become a common-mode dependency issue across build pipelines. The same integrity mindset is reflected in NIST SP 800-53 Rev 5 Security and Privacy Controls, particularly around system integrity and configuration management, and in OWASP API Security Top 10 where explicit control of access and behaviour matters.

Operational benefits and review boundaries

Composite actions are valuable when you need repeatable CI logic, consistent deployment checks, or a simpler developer experience. They reduce duplication and can make workflow maintenance easier, but they also shift the burden toward disciplined review of the reusable component itself rather than the individual workflow that calls it.

That means the review boundary should extend into the composite action's internals, not stop at the top-level workflow. Teams should read it as executable infrastructure code, with the same expectations for provenance, least privilege, and controlled change as any other shared automation asset. The broader security case is aligned with NIST Cybersecurity Framework 2.0, especially govern, identify, protect, and detect functions.

How to use composite actions safely

The safest pattern is to keep composite actions narrowly scoped, review them like shared code, and ensure every nested dependency is immutable. That is the practical difference between a reusable abstraction and an inherited trust problem.

Why practitioners should care: A composite action can hide the real execution chain, so the person approving the outer workflow may not see the full dependency surface. Treat the internal references as part of the review scope, because that is where version drift and dependency substitution usually enter.

Practitioner takeaway: If a composite action is meant to be reusable, make its internals at least as explicit and immutable as the workflows that consume it.

Standards & Framework Alignment

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

OWASP API Security Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0GV.OC-01 — Organizational ContextComposite actions affect shared CI trust and governance context.
Recommendation — Define ownership and review boundaries for reusable workflow components.
NIST SP 800-53 Rev 5CM-3 — Configuration Change ControlMutable internal action references create configuration integrity risk.
Recommendation — Require controlled approval for changes to reusable workflow content.
OWASP API Security Top 10API8 — Security MisconfigurationHidden internal references can weaken execution trust if not pinned.
Recommendation — Validate that reusable automation components use explicit, immutable references.
OWASP Non-Human Identity Top 10NHI-09 — NHI ReuseReusable automation packages can propagate shared secrets and trust dependencies.
Recommendation — Avoid reusing automation dependencies in ways that expand shared compromise paths.

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.

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