GitHub Actions pull request filters
Trigger eligibility
Start with the event that arrived. A branch filter on pull_request refers to the target branch, so a filter designed for the source branch can omit the intended run. Branch and path filters both need to match when both are configured. The event reference documents the event-specific behavior.
In a fictional documentation change, inspect whether the changed file matches the workflow’s path rules. If it doesn’t, editing a test command won’t fix the missing run because the job never started.
Privileged triggers
pull_request and pull_request_target have different trust implications. Choosing the latter just to obtain credentials can expose a privileged workflow to untrusted content. Review what code each step executes and which repository context supplies the permissions.
The local event fixtures simplify GitHub’s complete event payload and dispatch rules. They don’t reproduce every merge, fork approval or repository setting. Continue with fork boundaries and validate a hosted workflow before relying on it as a required check.