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 the 'BASE and HEAD commits are the same' error in the Security Scanning
workflow by implementing context-aware commit comparison:
- Push events: Compare github.event.before → github.sha
- Pull requests: Compare base.sha → head.sha
- Scheduled runs: Compare HEAD~1 → HEAD
- Handle edge cases like initial commits and new branches
This resolves the workflow failure that occurred after PR merges to main
where both base and head resolved to the same commit.
Fixes: Security Scanning / Secrets Scan failing after PR merges
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <[email protected]>
0 commit comments