-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathget-enterprise-settings.sh
executable file
·87 lines (85 loc) · 2.28 KB
/
get-enterprise-settings.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/bash
# gh cli's token needs to be able to admin enterprise - run this first if it can't
# gh auth refresh -h github.com -s admin:enterprise
gh api graphql -f enterpriseName='fasttrack-ghec' -f query='
query getEnterpriseIpAllowList($enterpriseName: String! $endCursor: String) {
enterprise(slug: $enterpriseName) {
ownerInfo {
admins(first: 100, after: $endCursor) {
totalCount
nodes {
login
}
pageInfo {
endCursor
hasNextPage
}
}
allowPrivateRepositoryForkingSetting
allowPrivateRepositoryForkingSettingPolicyValue
defaultRepositoryPermissionSetting
domains(first: 100, after: $endCursor) {
totalCount
nodes {
domain
isApproved
isVerified
}
pageInfo {
endCursor
hasNextPage
}
}
ipAllowListEnabledSetting
ipAllowListForInstalledAppsEnabledSetting
ipAllowListEntries(first: 100, after: $endCursor) {
totalCount
nodes {
allowListValue
isActive
}
pageInfo {
endCursor
hasNextPage
}
}
isUpdatingDefaultRepositoryPermission
isUpdatingTwoFactorRequirement
membersCanChangeRepositoryVisibilitySetting
membersCanCreateInternalRepositoriesSetting
membersCanCreatePrivateRepositoriesSetting
membersCanCreatePublicRepositoriesSetting
membersCanCreateRepositoriesSetting
membersCanDeleteIssuesSetting
membersCanDeleteRepositoriesSetting
membersCanInviteCollaboratorsSetting
membersCanMakePurchasesSetting
membersCanUpdateProtectedBranchesSetting
membersCanViewDependencyInsightsSetting
notificationDeliveryRestrictionEnabledSetting
oidcProvider { # double check this
providerType
tenantId
}
organizationProjectsSetting
repositoryProjectsSetting
samlIdentityProvider {
digestMethod
idpCertificate
issuer
signatureMethod
ssoUrl
}
supportEntitlements(first: 20) {
totalCount
nodes {
... on User {
login
}
}
}
teamDiscussionsSetting
twoFactorRequiredSetting
}
}
}'