Skip to content

fix: normalize Windows paths in security guidance hook#43563

Open
Dharshaneshwaran wants to merge 2 commits intoanthropics:mainfrom
Dharshaneshwaran:fix-security-hook-windows-paths
Open

fix: normalize Windows paths in security guidance hook#43563
Dharshaneshwaran wants to merge 2 commits intoanthropics:mainfrom
Dharshaneshwaran:fix-security-hook-windows-paths

Conversation

@Dharshaneshwaran
Copy link
Copy Markdown

Summary

  • normalize backslashes to forward slashes before running path-based security checks

Why

The security guidance hook checks whether a file is under .github/workflows/, but Windows paths commonly use backslashes. Without normalization, workflow edits on Windows can miss the GitHub Actions security warning entirely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant