Skip to content

Add Ruleset support#51

Open
maclarel wants to merge 2 commits into
SpecterOps:mainfrom
maclarel:main
Open

Add Ruleset support#51
maclarel wants to merge 2 commits into
SpecterOps:mainfrom
maclarel:main

Conversation

@maclarel
Copy link
Copy Markdown
Contributor

GitHound currently only pulls classic branch protection rules which results in blindspots in data and can result in branches being incorrectly noted as being unprotected.

This change introduces support for Rulesets - retrieving them through GraphQL, identifying their source (repo vs org), enforcement status (active vs evaluate), and correcting the "protected" state of a given branch to include coverage from protection rules.

No schema changes are required to support this, and similarly this should not introduce any breaking changes. Imports on top of historical data pulls completes (in my testing) without error.

This PR was heavily AI-assisted, but is working as expected against live environments in my testing so far 🤞

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