Skip to main content
When teams implement CI/CD independently, enterprises quickly accumulate many distinct pipeline implementations. Imagine every engineering team writing its own pipeline: 200 repositories could mean 200 different CI setups, inconsistent security configurations, and a mix of actively maintained and long-forgotten workflows. When a critical vulnerability is discovered in a build tool, patching each workflow individually becomes an exercise in archaeology rather than engineering. Reusable workflows solve this by centralizing the canonical CI logic. Think of it like a global restaurant franchise: a single master recipe (the reusable workflow) is maintained by a platform team, while product teams reference it and add only service-specific steps (the toppings). When the platform team updates the canonical workflow, all consumer repositories automatically benefit on their next run without per-repo coordination.
An infographic titled "The Canonical CI Workflow" showing a central versioned artifact (v2) being propagated to multiple sites (Berlin, Austin, Lagos, Osaka, Lima, Oslo), each marked with a check. The graphic highlights automatic updates and no coordination needed for the distributed nodes.

How reusable workflows work

  • A workflow is reusable when it declares the workflow_call trigger.
  • Without workflow_call, a workflow can only start from GitHub events (push, pull_request, schedule, etc.).
  • Callers invoke a reusable workflow at the job level using the uses keyword and may forward inputs and secrets.
  • You can forward all caller secrets with the shorthand secrets: inherit, or pass specific secrets explicitly.
Use workflow_call to expose a workflow as a reusable job target. When designing reusable workflows, define well-documented inputs and only request the secrets the workflow truly needs.
Example: canonical reusable CI workflow (central repo)
Example: product repository calling the reusable workflow
Be cautious with secrets: inherit. Forwarding all secrets can expose more secrets than needed to the reusable workflow. Prefer passing only required secrets explicitly to minimize blast radius.

Reusable workflows vs composite actions

It’s important to understand the difference between reusable workflows and composite actions: Conceptual structure:

Enterprise governance: allow lists and verified creators

By default, GitHub allows workflows to reference public actions from anywhere. Enterprise policies help admins restrict which external actions and creators are allowed:
  • Allow only GitHub-created actions.
  • Allow actions from a curated list of verified creators (e.g., AWS, Docker).
  • Block unverified or unapproved community actions.
Any workflow that attempts to use an action not on the enterprise allow list will fail during the policy check.
A settings panel titled "Enterprise Actions Policy" showing radio options where "Allow select actions" is selected. One allowed item, "Actions created by GitHub," is checked with the GitHub logo.
A screenshot titled "Verified Marketplace Actions" showing a GitHub Marketplace list with entries like "Configure AWS Credentials," "Build and Push Docker Image," and "Fast Cache Helper," each marked "Allowed" with green checkmarks. The first two items display verification badges and are credited to AWS and Docker.

Quick exam/article summary

  • The reusable workflow trigger is workflow_call. Reusable workflows are invoked at the job level.
  • Composite actions are invoked at the step level and run inside the caller job.
  • Enterprise allow lists (including filtering by verified creators in the GitHub Marketplace) control which external actions are permitted.
A slide titled "Exam Facts" showing three numbered points: (1) the reusable workflow trigger is workflow_call, (2) composite actions are called at the step level, and (3) allow lists are configured at the enterprise level.
By centralizing CI logic into reusable workflows and enforcing enterprise allow lists for actions, organizations can reduce maintenance overhead, improve security consistency, and speed up remediation when vulnerabilities are discovered.

Watch Video