GitHub organization
github.organization MQL resource for querying GitHub infrastructure with cnquery and cnspec.
GitHub
GitHub organization
Use MQL in cnspec shell or policy:
github.organizationMin version: 5.15.0Defaults:
login nameRelationships
9 resources · 27 relationships·Click to select, expand fields to see properties.
Fields (45)
| Field | Type | Description |
|---|---|---|
avatarUrlrequired | string | Organization profile picture URL |
billingEmailrequired | string | Organization billing email |
blogrequired | string | Organization blog |
collaboratorsrequired | int | Number of collaborators for the organization |
companyrequired | string | Organization company |
createdAtrequired | time | Create time for the organization |
customProperties | []github.organization.customProperty | Organization custom properties |
customPropertyprivate | github.organization.customProperty | GitHub organization-level custom property |
defaultRepositoryPermissionrequired | string | The default repository permission |
descriptionrequired | string | Organization description |
diskUsagerequired | int | Disk usage for the organization |
emailrequired | string | Organization email |
followersrequired | int | Organization's number of followers |
followingrequired | int | Number of organizations the organization is following |
hasOrganizationProjectsrequired | int | Whether the organization has projects |
hasRepositoryProjectsrequired | int | Whether projects in the organization have projects |
idrequired | int | Organization ID |
installations | []github.installation | List of GitHub installations |
isVerifiedrequired | int | Whether the organization is verified by GitHub |
locationrequired | string | Organization location |
loginrequired | string | Organization login |
members | []github.user | List of users that are part of the members group |
membersCanCreateInternalRepositoriesrequired | int | Whether members can create internal repositories |
membersCanCreatePagesrequired | int | Whether members can create pages |
membersCanCreatePrivatePagesrequired | int | Whether members can create private pages |
membersCanCreatePrivateRepositoriesrequired | int | Whether members can create private repositories |
membersCanCreatePublicPagesrequired | int | Whether members can create public pages |
membersCanCreatePublicRepositoriesrequired | int | Whether members can create public repositories |
membersCanCreateRepositoriesrequired | int | Whether members can create repositories |
membersCanForkPrivateReposrequired | int | Whether members can fork private repositories to their own GitHub account |
namerequired | string | Organization name |
nodeIdrequired | string | Organization global node ID |
ownedPrivateReposrequired | int | Number of owned private repositories for the organization |
owners | []github.user | List of users that are part of the owners group |
packages | []github.package | List of packages |
planrequired | dict | GitHub plan the organization is subscribed to |
privateGistsrequired | int | Number of private gists |
repositories | []github.repository | List of repositories |
teams | []github.team | List of users that are part of the teams group |
totalPrivateReposrequired | int | Number of private repositories |
totalPublicReposrequired | int | Number of public repositories |
twitterUsernamerequired | string | Organization Twitter handle |
twoFactorRequirementEnabledrequired | int | Whether two-factor authentication is required for all members. This value will be null if the API token does not have owner access on the organization. |
updatedAtrequired | time | Update time for the organization |
webhooks | []github.webhook | List of webhooks |