Skip to content

Support parsing of CODEOWNERS entries containing the ^ character #47

@juanis2112

Description

@juanis2112

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions