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

Steampipe sherlock controls fail due to internal desc = 'List' call is missing #14

Closed rajlearner17 closed 2 years ago

rajlearner17 commented 2 years ago

Describe the bug

turbot-macpro-raj:steampipe-mod-github-sherlock raj$ steampipe check control.private_repo_default_branch_blocks_force_push
+ Default branch should block force push in each private repository ................................................................................................................. 1 / 1 [          ]
  ERROR: rpc error: code = Internal desc = 'List' call is missing required quals: column:'repository_full_name' operator: =

A similar issue persists for the below controls

steampipe check control.private_repo_default_branch_blocks_deletion steampipe check control.private_repo_default_branch_protections_apply_to_admins steampipe check control.private_repo_default_branch_requires_pull_request_reviews steampipe check control.private_repo_default_branch_blocks_force_push

steampipe check control.public_repo_default_branch_blocks_deletion steampipe check control.public_repo_default_branch_protections_apply_to_admins steampipe check control.public_repo_default_branch_requires_pull_request_reviews steampipe check control.public_repo_default_branch_blocks_force_push

Steampipe version (steampipe -v) Example: v0.9.0

Plugin version (steampipe plugin list) Example: v0.8.1

To reproduce

Execute entire sherlock mod steampipe check all or steampipe check control.private_repo_default_branch_blocks_force_push

Expected behavior A clear and concise description of what you expected to happen.

Additional context

rajlearner17 commented 2 years ago

Related GitHub plugin table fix