What is a key difference between a composite action and a reusable workflow?
Select an answer to reveal the explanation.
Short Explanation and Infographic
A composite action is a sequence of steps — no job overhead. A reusable workflow is a full multi-job workflow you call from another workflow.
Full explanation below image
Full Explanation
Composite actions define a series of steps in action.yml and are referenced with 'uses:' in a step — they run as part of the calling job with the calling job's runner. Reusable workflows are called with 'uses:' in a job definition and can contain multiple jobs, each with their own runner. Reusable workflows receive secrets via the 'secrets:' input (including 'secrets: inherit') and support 'with:' inputs. Composite actions support inputs but handle secrets differently (secrets can be passed as inputs, not via the secrets: block). Both can be called cross-repository.