What is the `workflow_call` event payload, and which `github` context values does a called workflow see?
AdvancedConceptTriggers & Events
Answer
A called workflow runs as part of the caller's run, so github.event_name, github.event, github.sha, github.ref and github.actor are the caller's. github.workflow is the caller's name too, while github.workflow_ref points at the caller and job_workflow_sha (in OIDC claims) identifies the called file. This matters for concurrency groups (use github.workflow carefully to avoid collisions between callers) and for OIDC trust policies that want to pin to a specific reusable workflow via the job_workflow_ref claim.
More on Triggers & Events
How do you trigger a workflow on pushes to `main` and on PRs that target `main`?BeginnerWhat activity types does `pull_request` trigger on by default, and how do you add more?IntermediateHow do `branches` and `branches-ignore` filters work with globs?BeginnerHow do path filters work, and what are their limits?AdvancedHow do you trigger only on version tags, and what is the gotcha with pushing many tags?IntermediateWhat is `workflow_dispatch`, and what input types does it support?Beginner