turbot / steampipe-mod-github-sherlock

Interrogate your GitHub resources with the help of the world's greatest detectives: Powerpipe + Steampipe + Sherlock.
https://hub.powerpipe.io/mods/turbot/github_sherlock
Apache License 2.0
39 stars 4 forks source link

Fix how the default branch protection is fetched #36

Closed francois2metz closed 2 years ago

francois2metz commented 2 years ago

Queries that fetched the default branch protection only match main or master branches. But the default branch could be anything. It now use the default_branch column from the repository.

Also the reason was buggy when there no default branch protection. It also use the default_branch now.

cbruno10 commented 2 years ago

Thanks again @francois2metz for the fixes!