Pull Request and Push Events
The pull_request event is appropriate for many validation workflows. It allows teams to test proposed changes before merging them into a protected branch. The push event is commonly used to validate committed changes or initiate trusted build activities after changes reach a designated branch. Branch and path filters can narrow workflow execution, although they should not be mistaken for authorization controls. For example, a workflow that only runs when a documentation directory changes might miss modifications to a shared build dependency or workflow configuration. When using required checks, teams also need to account for how filtered or skipped workflows affect check status and merge eligibility.


