turbot/github_sherlock

GitHub
Loading controls...

Control: Organization members should not be able to create public repositories

Description

Accidentally creating a public repository can expose code and other assets.

Usage

Run the control in your terminal:

steampipe check github_sherlock.control.org_members_cannot_create_public_repos

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share github_sherlock.control.org_members_cannot_create_public_repos

Plugins & Tables

SQL

select
url as resource,
case
when members_can_create_public_repos then 'alarm'
else 'ok'
end as status,
login || ' users ' || case
when (members_can_create_public_repos) :: bool then 'can '
else 'cannot '
end || 'create public repositories.' as reason,
login
from
github_my_organization

Tags