What does the GITHUB_EVENT_PATH environment variable contain?
Select an answer to reveal the explanation.
Short Explanation and Infographic
GITHUB_EVENT_PATH is the address of the event payload file on disk — read it to access every detail of the triggering event.
Full explanation below image
Full Explanation
GITHUB_EVENT_PATH contains the path to a JSON file on the runner's filesystem that holds the complete webhook event payload that triggered the workflow. For example, for a pull_request event, it contains all PR details including title, body, labels, reviewer requests, etc. You can read this file with 'cat $GITHUB_EVENT_PATH | jq .'. This is useful for accessing event data that isn't available through the 'github.event' expression context in some scenarios. The 'github.event' context in expressions provides the same data. GITHUB_EVENT_NAME is the event name; GITHUB_EVENT_PATH is where the payload file lives.