Workflow events and YAML
A workflow YAML file under .github/workflows defines triggers, jobs, and steps. Event selection determines which code and context run. Push, pull_request, workflow_dispatch, and other triggers have different security implications; valid YAML alone does not establish the intended workflow semantics. For example, a pull_request workflow runs tests while a separately controlled release workflow performs deployment.
A pull_request workflow runs tests while a separately controlled release workflow performs deployment.
A pull_request workflow runs tests while a separately controlled release workflow performs deployment.
Do not overlook this operational distinction: Push, pull_request, workflow_dispatch, and other triggers have different security implications; valid YAML alone does not establish the intended workflow semantics.