GitHub Actions reusable workflows
Workflow interfaces
A reusable workflow declares workflow_call and defines the inputs and secrets callers can pass. The caller references it at job level. The official reuse guide documents this interface and its output mapping.
For a fictional library release, pass a package target as an input instead of hard-coding it inside a shared workflow. Check the input’s name and type on both sides. A caller that passes target cannot satisfy a called workflow that requires package merely because the values look similar.
Workflows and composite actions
A composite action groups steps that run inside the caller’s job. A reusable workflow can define its own jobs. Choose the boundary before deciding where runner selection, dependencies and permissions belong.
The course models selected calls and metadata locally. It does not fetch arbitrary repository code or validate a remote action’s implementation. Review the pinning exercises and use a separately reviewed revision when applying the pattern in a repository.