/
app.schema.json
154 lines (154 loc) · 5.48 KB
/
app.schema.json
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/app.schema.json",
"description": "GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub.",
"type": "object",
"required": [
"id",
"node_id",
"owner",
"name",
"description",
"external_url",
"html_url",
"created_at",
"updated_at"
],
"properties": {
"id": {
"description": "Unique identifier of the GitHub app",
"type": "integer"
},
"slug": {
"description": "The slug name of the GitHub app",
"type": "string"
},
"node_id": { "type": "string" },
"owner": { "$ref": "user.schema.json" },
"name": { "description": "The name of the GitHub app", "type": "string" },
"description": { "type": ["string", "null"] },
"external_url": { "type": "string", "format": "uri" },
"html_url": { "type": "string", "format": "uri" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"permissions": {
"description": "The set of permissions for the GitHub app",
"type": "object",
"properties": {
"actions": { "type": "string", "enum": ["read", "write"] },
"administration": { "type": "string", "enum": ["read", "write"] },
"checks": { "type": "string", "enum": ["read", "write"] },
"content_references": { "type": "string", "enum": ["read", "write"] },
"contents": { "type": "string", "enum": ["read", "write"] },
"deployments": { "type": "string", "enum": ["read", "write"] },
"discussions": { "type": "string", "enum": ["read", "write"] },
"emails": { "type": "string", "enum": ["read", "write"] },
"environments": { "type": "string", "enum": ["read", "write"] },
"issues": { "type": "string", "enum": ["read", "write"] },
"keys": { "type": "string", "enum": ["read, write"] },
"members": { "type": "string", "enum": ["read", "write"] },
"metadata": { "type": "string", "enum": ["read", "write"] },
"organization_administration": {
"type": "string",
"enum": ["read", "write"]
},
"organization_hooks": { "type": "string", "enum": ["read", "write"] },
"organization_packages": {
"type": "string",
"enum": ["read", "write"]
},
"organization_plan": { "type": "string", "enum": ["read", "write"] },
"organization_projects": {
"type": "string",
"enum": ["read", "write"]
},
"organization_secrets": { "type": "string", "enum": ["read", "write"] },
"organization_self_hosted_runners": {
"type": "string",
"enum": ["read", "write"]
},
"organization_user_blocking": {
"type": "string",
"enum": ["read", "write"]
},
"packages": { "type": "string", "enum": ["read", "write"] },
"pages": { "type": "string", "enum": ["read", "write"] },
"pull_requests": { "type": "string", "enum": ["read", "write"] },
"repository_hooks": { "type": "string", "enum": ["read", "write"] },
"repository_projects": { "type": "string", "enum": ["read", "write"] },
"secret_scanning_alerts": {
"type": "string",
"enum": ["read", "write"]
},
"secrets": { "type": "string", "enum": ["read", "write"] },
"security_events": { "type": "string", "enum": ["read", "write"] },
"security_scanning_alert": {
"type": "string",
"enum": ["read", "write"]
},
"single_file": { "type": "string", "enum": ["read", "write"] },
"statuses": { "type": "string", "enum": ["read", "write"] },
"team_discussions": { "type": "string", "enum": ["read", "write"] },
"vulnerability_alerts": { "type": "string", "enum": ["read", "write"] },
"workflows": { "type": "string", "enum": ["read", "write"] }
},
"additionalProperties": false
},
"events": {
"description": "The list of events for the GitHub app",
"type": "array",
"items": {
"type": "string",
"enum": [
"branch_protection_rule",
"check_run",
"check_suite",
"code_scanning_alert",
"commit_comment",
"content_reference",
"create",
"delete",
"deployment",
"deployment_review",
"deployment_status",
"deploy_key",
"discussion",
"discussion_comment",
"fork",
"gollum",
"issues",
"issue_comment",
"label",
"member",
"membership",
"milestone",
"organization",
"org_block",
"page_build",
"project",
"project_card",
"project_column",
"public",
"pull_request",
"pull_request_review",
"pull_request_review_comment",
"push",
"registry_package",
"release",
"repository",
"repository_dispatch",
"secret_scanning_alert",
"star",
"status",
"team",
"team_add",
"watch",
"workflow_dispatch",
"workflow_run"
]
}
}
},
"additionalProperties": false,
"title": "App"
}