You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent 'merge' branch detection from GitHub virtual refs
- Use GITHUB_HEAD_REF for PR events instead of GITHUB_REF (refs/pull/123/merge)
- GITHUB_REF contains virtual merge refs like 'refs/pull/123/merge' for PR events
- GITHUB_HEAD_REF contains the actual source branch name for PRs
- Added detection for virtual merge refs and skip them explicitly
- Added comprehensive tests for both PR and push branch detection scenarios
- Resolves issue with scans showing branch='merge' and virtual commit messages
0 commit comments