
How reusable workflows work
- A workflow is reusable when it declares the
workflow_calltrigger. - 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
useskeyword and may forwardinputsandsecrets. - 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.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.


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.

Links and references
- GitHub Actions: Reusing Workflows
- GitHub Actions: Creating composite actions
- GitHub Enterprise policies for actions
- GitHub Marketplace verified creators