codeowners icon indicating copy to clipboard operation
codeowners copied to clipboard

Support parsing of CODEOWNERS entries containing the ^ character

Open juanis2112 opened this issue 2 months ago • 0 comments

Hi 👋,

I encountered a parsing error when using codeowners.ParseFile() while running OpenSSF Scorecards. The failure occurs when the CODEOWNERS file contains an entry with the ^ character (e.g., IBM/vllm). Currently, this character isn’t allowed by the parsing rules, which causes parsing to abort.

I think it might be worth expanding the parsing rules to include ^ as a valid owner or pattern character. My guess is that the fix needs to be done in the isPatternChar function.

I'm happy to open a PR to add support for ^ (including tests) if this aligns with the project’s direction. Please let me know if you'd like me to proceed.

juanis2112 avatar Nov 19 '25 15:11 juanis2112