@backstage/integration 2.0.3 → 2.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/config.schema.json +523 -0
- package/dist/alpha/github/createGitHubCredentialsProviderFromConnection.cjs.js +8 -0
- package/dist/alpha/github/createGitHubCredentialsProviderFromConnection.cjs.js.map +1 -0
- package/dist/alpha/github/createGitHubCredentialsProviderFromConnection.esm.js +6 -0
- package/dist/alpha/github/createGitHubCredentialsProviderFromConnection.esm.js.map +1 -0
- package/dist/alpha.cjs.js +8 -0
- package/dist/alpha.cjs.js.map +1 -0
- package/dist/alpha.d.ts +12 -0
- package/dist/alpha.esm.js +2 -0
- package/dist/alpha.esm.js.map +1 -0
- package/dist/github/DefaultGithubCredentialsProvider.cjs.js +75 -3
- package/dist/github/DefaultGithubCredentialsProvider.cjs.js.map +1 -1
- package/dist/github/DefaultGithubCredentialsProvider.esm.js +75 -3
- package/dist/github/DefaultGithubCredentialsProvider.esm.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +39 -23
- package/config.d.ts +0 -458
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @backstage/integration
|
|
2
2
|
|
|
3
|
+
## 2.1.0-next.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- dc951d4: Added support for creating a GitHub credentials provider backed by the connections service.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/connections@0.3.0-next.1
|
|
13
|
+
|
|
3
14
|
## 2.0.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"integrations": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"azure": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "object",
|
|
12
|
+
"properties": {
|
|
13
|
+
"host": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The hostname of the given Azure instance",
|
|
16
|
+
"visibility": "frontend"
|
|
17
|
+
},
|
|
18
|
+
"credentials": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"properties": {
|
|
23
|
+
"organizations": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"clientId": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"clientSecret": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"visibility": "secret"
|
|
35
|
+
},
|
|
36
|
+
"tenantId": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"personalAccessToken": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"visibility": "secret"
|
|
42
|
+
},
|
|
43
|
+
"managedIdentityClientId": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"description": "The credentials to use for requests. If multiple credentials are specified the first one that matches the organization is used. If no organization matches the first credential without an organization is used.\n\nIf no credentials are specified at all, either a default credential (for Azure DevOps) or anonymous access (for Azure DevOps Server) is used."
|
|
49
|
+
},
|
|
50
|
+
"commitSigningKey": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "PGP signing key for signing commits.",
|
|
53
|
+
"visibility": "secret"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"host"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"description": "Integration configuration for Azure"
|
|
61
|
+
},
|
|
62
|
+
"azureBlobStorage": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"accountName": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "The name of the Azure Storage Account, e.g., \"mystorageaccount\"."
|
|
70
|
+
},
|
|
71
|
+
"accountKey": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "The primary or secondary key for the Azure Storage Account. Only required if connectionString or SAS token are not specified.",
|
|
74
|
+
"visibility": "secret"
|
|
75
|
+
},
|
|
76
|
+
"sasToken": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "A Shared Access Signature (SAS) token for limited access to resources.",
|
|
79
|
+
"visibility": "secret"
|
|
80
|
+
},
|
|
81
|
+
"connectionString": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "A full connection string for the Azure Storage Account. This includes the account name, key, and endpoint details.",
|
|
84
|
+
"visibility": "secret"
|
|
85
|
+
},
|
|
86
|
+
"endpointSuffix": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"description": "Optional endpoint suffix for custom domains or sovereign clouds. e.g., \"core.windows.net\" for public Azure or \"core.usgovcloudapi.net\" for US Government cloud."
|
|
89
|
+
},
|
|
90
|
+
"endpoint": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Optional endpoint URL for custom domain. Uses default if not provided.",
|
|
93
|
+
"visibility": "frontend"
|
|
94
|
+
},
|
|
95
|
+
"aadCredential": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"clientId": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "The client ID of the Azure AD application."
|
|
101
|
+
},
|
|
102
|
+
"tenantId": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "The tenant ID for Azure AD."
|
|
105
|
+
},
|
|
106
|
+
"clientSecret": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "The client secret for the Azure AD application.",
|
|
109
|
+
"visibility": "secret"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"required": [
|
|
113
|
+
"clientId",
|
|
114
|
+
"tenantId",
|
|
115
|
+
"clientSecret"
|
|
116
|
+
],
|
|
117
|
+
"description": "Optional credential to use for Azure Active Directory authentication."
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"description": "Integration configuration for Azure Blob Storage"
|
|
122
|
+
},
|
|
123
|
+
"bitbucketCloud": {
|
|
124
|
+
"type": "array",
|
|
125
|
+
"items": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"username": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "The username to use for authenticated requests."
|
|
131
|
+
},
|
|
132
|
+
"token": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"description": "Token used to authenticate requests.",
|
|
135
|
+
"visibility": "secret"
|
|
136
|
+
},
|
|
137
|
+
"appPassword": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"description": "Bitbucket Cloud app password used to authenticate requests.",
|
|
140
|
+
"visibility": "secret",
|
|
141
|
+
"deprecated": "Use `token` instead."
|
|
142
|
+
},
|
|
143
|
+
"clientId": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"description": "OAuth client ID for Bitbucket Cloud.",
|
|
146
|
+
"visibility": "secret"
|
|
147
|
+
},
|
|
148
|
+
"clientSecret": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "OAuth client secret for Bitbucket Cloud.",
|
|
151
|
+
"visibility": "secret"
|
|
152
|
+
},
|
|
153
|
+
"commitSigningKey": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"description": "PGP signing key for signing commits.",
|
|
156
|
+
"visibility": "secret"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"description": "Integration configuration for Bitbucket Cloud"
|
|
161
|
+
},
|
|
162
|
+
"bitbucketServer": {
|
|
163
|
+
"type": "array",
|
|
164
|
+
"items": {
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"host": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"description": "The hostname of the given Bitbucket Server instance",
|
|
170
|
+
"visibility": "frontend"
|
|
171
|
+
},
|
|
172
|
+
"token": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "Token used to authenticate requests.",
|
|
175
|
+
"visibility": "secret"
|
|
176
|
+
},
|
|
177
|
+
"username": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"description": "Username used to authenticate requests with Basic Auth.",
|
|
180
|
+
"visibility": "secret"
|
|
181
|
+
},
|
|
182
|
+
"password": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"description": "Password (or token as password) used to authenticate requests with Basic Auth.",
|
|
185
|
+
"visibility": "secret"
|
|
186
|
+
},
|
|
187
|
+
"apiBaseUrl": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"description": "The base url for the Bitbucket Server API, for example https://<host>/rest/api/1.0",
|
|
190
|
+
"visibility": "frontend"
|
|
191
|
+
},
|
|
192
|
+
"commitSigningKey": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"description": "PGP signing key for signing commits.",
|
|
195
|
+
"visibility": "secret"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"required": [
|
|
199
|
+
"host"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"description": "Integration configuration for Bitbucket Server"
|
|
203
|
+
},
|
|
204
|
+
"gerrit": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"items": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"host": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"description": "The hostname of the given Gerrit instance",
|
|
212
|
+
"visibility": "frontend"
|
|
213
|
+
},
|
|
214
|
+
"baseUrl": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"description": "The base url for the Gerrit instance.",
|
|
217
|
+
"visibility": "frontend"
|
|
218
|
+
},
|
|
219
|
+
"gitilesBaseUrl": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"description": "The gitiles base url.",
|
|
222
|
+
"visibility": "frontend"
|
|
223
|
+
},
|
|
224
|
+
"cloneUrl": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"description": "The base url for cloning repos.",
|
|
227
|
+
"visibility": "frontend"
|
|
228
|
+
},
|
|
229
|
+
"disableEditUrl": {
|
|
230
|
+
"type": "boolean",
|
|
231
|
+
"description": "Disable the edit url feature.",
|
|
232
|
+
"visibility": "frontend"
|
|
233
|
+
},
|
|
234
|
+
"username": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"description": "The username to use for authenticated requests.",
|
|
237
|
+
"visibility": "secret"
|
|
238
|
+
},
|
|
239
|
+
"password": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "Gerrit password used to authenticate requests. This can be either a password or a generated access token.",
|
|
242
|
+
"visibility": "secret"
|
|
243
|
+
},
|
|
244
|
+
"commitSigningKey": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"description": "PGP signing key for signing commits.",
|
|
247
|
+
"visibility": "secret"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
"required": [
|
|
251
|
+
"host",
|
|
252
|
+
"gitilesBaseUrl"
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
"description": "Integration configuration for Gerrit"
|
|
256
|
+
},
|
|
257
|
+
"github": {
|
|
258
|
+
"type": "array",
|
|
259
|
+
"items": {
|
|
260
|
+
"type": "object",
|
|
261
|
+
"properties": {
|
|
262
|
+
"host": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"description": "The hostname of the given GitHub instance",
|
|
265
|
+
"visibility": "frontend"
|
|
266
|
+
},
|
|
267
|
+
"token": {
|
|
268
|
+
"type": "string",
|
|
269
|
+
"description": "Token used to authenticate requests.",
|
|
270
|
+
"visibility": "secret"
|
|
271
|
+
},
|
|
272
|
+
"apiBaseUrl": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"description": "The base url for the GitHub API, for example https://api.github.com",
|
|
275
|
+
"visibility": "frontend"
|
|
276
|
+
},
|
|
277
|
+
"rawBaseUrl": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"description": "The base url for GitHub raw resources, for example https://raw.githubusercontent.com",
|
|
280
|
+
"visibility": "frontend"
|
|
281
|
+
},
|
|
282
|
+
"apps": {
|
|
283
|
+
"type": "array",
|
|
284
|
+
"items": {
|
|
285
|
+
"type": "object",
|
|
286
|
+
"properties": {
|
|
287
|
+
"appId": {
|
|
288
|
+
"type": [
|
|
289
|
+
"number",
|
|
290
|
+
"string"
|
|
291
|
+
],
|
|
292
|
+
"description": "The numeric GitHub App ID, string for environment variables"
|
|
293
|
+
},
|
|
294
|
+
"privateKey": {
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "The private key to use for auth against the app",
|
|
297
|
+
"visibility": "secret"
|
|
298
|
+
},
|
|
299
|
+
"webhookSecret": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"description": "The secret used for webhooks",
|
|
302
|
+
"visibility": "secret"
|
|
303
|
+
},
|
|
304
|
+
"clientId": {
|
|
305
|
+
"type": "string",
|
|
306
|
+
"description": "The client ID to use"
|
|
307
|
+
},
|
|
308
|
+
"clientSecret": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"description": "The client secret to use",
|
|
311
|
+
"visibility": "secret"
|
|
312
|
+
},
|
|
313
|
+
"allowedInstallationOwners": {
|
|
314
|
+
"type": "array",
|
|
315
|
+
"items": {
|
|
316
|
+
"type": "string"
|
|
317
|
+
},
|
|
318
|
+
"description": "List of installation owners allowed to be used by this GitHub app. The GitHub UI does not provide a way to list the installations. However you can list the installations with the GitHub API. You can find the list of installations here: https://api.github.com/app/installations The relevant documentation for this is here. https://docs.github.com/en/rest/reference/apps#list-installations-for-the-authenticated-app--code-samples"
|
|
319
|
+
},
|
|
320
|
+
"publicAccess": {
|
|
321
|
+
"type": "boolean",
|
|
322
|
+
"description": "If true, then an installation token will be issued for access when no other token is available."
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": [
|
|
326
|
+
"appId",
|
|
327
|
+
"privateKey",
|
|
328
|
+
"clientId",
|
|
329
|
+
"clientSecret"
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"description": "GitHub Apps configuration"
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
"required": [
|
|
336
|
+
"host"
|
|
337
|
+
]
|
|
338
|
+
},
|
|
339
|
+
"description": "Integration configuration for GitHub"
|
|
340
|
+
},
|
|
341
|
+
"gitlab": {
|
|
342
|
+
"type": "array",
|
|
343
|
+
"items": {
|
|
344
|
+
"type": "object",
|
|
345
|
+
"properties": {
|
|
346
|
+
"host": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"description": "The host of the target that this matches on, e.g. \"gitlab.com\".",
|
|
349
|
+
"visibility": "frontend"
|
|
350
|
+
},
|
|
351
|
+
"apiBaseUrl": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"description": "The base URL of the API of this provider, e.g. \"https://gitlab.com/api/v4\", with no trailing slash.\n\nMay be omitted specifically for public GitLab; then it will be deduced.",
|
|
354
|
+
"visibility": "frontend"
|
|
355
|
+
},
|
|
356
|
+
"token": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "The authorization token to use for requests to this provider.\n\nIf no token is specified, anonymous access is used.",
|
|
359
|
+
"visibility": "secret"
|
|
360
|
+
},
|
|
361
|
+
"baseUrl": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"description": "The baseUrl of this provider, e.g. \"https://gitlab.com\", which is passed into the GitLab client.\n\nIf no baseUrl is provided, it will default to https://${host}.",
|
|
364
|
+
"visibility": "frontend"
|
|
365
|
+
},
|
|
366
|
+
"commitSigningKey": {
|
|
367
|
+
"type": "string",
|
|
368
|
+
"description": "PGP signing key for signing commits.",
|
|
369
|
+
"visibility": "secret"
|
|
370
|
+
},
|
|
371
|
+
"retry": {
|
|
372
|
+
"type": "object",
|
|
373
|
+
"properties": {
|
|
374
|
+
"maxRetries": {
|
|
375
|
+
"type": "number",
|
|
376
|
+
"description": "Maximum number of retries for failed requests.",
|
|
377
|
+
"visibility": "frontend"
|
|
378
|
+
},
|
|
379
|
+
"retryStatusCodes": {
|
|
380
|
+
"type": "array",
|
|
381
|
+
"items": {
|
|
382
|
+
"type": "number"
|
|
383
|
+
},
|
|
384
|
+
"description": "HTTP status codes that should trigger a retry.",
|
|
385
|
+
"visibility": "frontend"
|
|
386
|
+
},
|
|
387
|
+
"maxApiRequestsPerMinute": {
|
|
388
|
+
"type": "number",
|
|
389
|
+
"description": "Maximum number of API requests allowed per minute. Set to -1 to disable rate limiting.",
|
|
390
|
+
"visibility": "frontend"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"description": "Retry configuration for requests.",
|
|
394
|
+
"visibility": "frontend"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"required": [
|
|
398
|
+
"host"
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
"description": "Integration configuration for GitLab"
|
|
402
|
+
},
|
|
403
|
+
"googleGcs": {
|
|
404
|
+
"type": "object",
|
|
405
|
+
"properties": {
|
|
406
|
+
"clientEmail": {
|
|
407
|
+
"type": "string",
|
|
408
|
+
"description": "Service account email used to authenticate requests."
|
|
409
|
+
},
|
|
410
|
+
"privateKey": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"description": "Service account private key used to authenticate requests.",
|
|
413
|
+
"visibility": "secret"
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"description": "Integration configuration for Google Cloud Storage"
|
|
417
|
+
},
|
|
418
|
+
"awsS3": {
|
|
419
|
+
"type": "array",
|
|
420
|
+
"items": {
|
|
421
|
+
"type": "object",
|
|
422
|
+
"properties": {
|
|
423
|
+
"endpoint": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"description": "AWS Endpoint. The endpoint URI to send requests to. The default endpoint is built from the configured region.",
|
|
426
|
+
"visibility": "frontend"
|
|
427
|
+
},
|
|
428
|
+
"s3ForcePathStyle": {
|
|
429
|
+
"type": "boolean",
|
|
430
|
+
"description": "Whether to use path style URLs when communicating with S3. Defaults to false. This allows providers like LocalStack, Minio and Wasabi (and possibly others) to be used.",
|
|
431
|
+
"visibility": "frontend"
|
|
432
|
+
},
|
|
433
|
+
"accessKeyId": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"description": "Account access key used to authenticate requests."
|
|
436
|
+
},
|
|
437
|
+
"secretAccessKey": {
|
|
438
|
+
"type": "string",
|
|
439
|
+
"description": "Account secret key used to authenticate requests.",
|
|
440
|
+
"visibility": "secret"
|
|
441
|
+
},
|
|
442
|
+
"roleArn": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"description": "ARN of the role to be assumed"
|
|
445
|
+
},
|
|
446
|
+
"externalId": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"description": "External ID to use when assuming role"
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"description": "Integration configuration for AWS S3 Service"
|
|
453
|
+
},
|
|
454
|
+
"gitea": {
|
|
455
|
+
"type": "array",
|
|
456
|
+
"items": {
|
|
457
|
+
"type": "object",
|
|
458
|
+
"properties": {
|
|
459
|
+
"host": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"description": "The hostname of the given Gitea instance",
|
|
462
|
+
"visibility": "frontend"
|
|
463
|
+
},
|
|
464
|
+
"baseUrl": {
|
|
465
|
+
"type": "string",
|
|
466
|
+
"description": "The base url for the Gitea instance.",
|
|
467
|
+
"visibility": "frontend"
|
|
468
|
+
},
|
|
469
|
+
"username": {
|
|
470
|
+
"type": "string",
|
|
471
|
+
"description": "The username to use for authenticated requests.",
|
|
472
|
+
"visibility": "secret"
|
|
473
|
+
},
|
|
474
|
+
"password": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"description": "Gitea password used to authenticate requests. This can be either a password or a generated access token.",
|
|
477
|
+
"visibility": "secret"
|
|
478
|
+
},
|
|
479
|
+
"commitSigningKey": {
|
|
480
|
+
"type": "string",
|
|
481
|
+
"description": "PGP signing key for signing commits.",
|
|
482
|
+
"visibility": "secret"
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
"required": [
|
|
486
|
+
"host"
|
|
487
|
+
]
|
|
488
|
+
},
|
|
489
|
+
"description": "Integration configuration for Gitea"
|
|
490
|
+
},
|
|
491
|
+
"harness": {
|
|
492
|
+
"type": "array",
|
|
493
|
+
"items": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"properties": {
|
|
496
|
+
"host": {
|
|
497
|
+
"type": "string",
|
|
498
|
+
"description": "The hostname of the given Harness Code instance",
|
|
499
|
+
"visibility": "frontend"
|
|
500
|
+
},
|
|
501
|
+
"apiKey": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"description": "The apikey to use for authenticated requests.",
|
|
504
|
+
"visibility": "secret"
|
|
505
|
+
},
|
|
506
|
+
"token": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"description": "Harness Code token used to authenticate requests. This can be either a generated access token.",
|
|
509
|
+
"visibility": "secret"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"required": [
|
|
513
|
+
"host"
|
|
514
|
+
]
|
|
515
|
+
},
|
|
516
|
+
"description": "Integration configuration for Harness Code"
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"description": "Configuration for integrations towards various external repository provider systems",
|
|
520
|
+
"visibility": "frontend"
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var integration = require('@backstage/integration');
|
|
4
|
+
|
|
5
|
+
const createGitHubCredentialsProviderFromConnection = (connections) => integration.DefaultGithubCredentialsProvider.experimentalFromConnections(connections);
|
|
6
|
+
|
|
7
|
+
exports.createGitHubCredentialsProviderFromConnection = createGitHubCredentialsProviderFromConnection;
|
|
8
|
+
//# sourceMappingURL=createGitHubCredentialsProviderFromConnection.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGitHubCredentialsProviderFromConnection.cjs.js","sources":["../../../src/alpha/github/createGitHubCredentialsProviderFromConnection.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport type { ConnectionsService } from '@backstage/connections';\nimport {\n DefaultGithubCredentialsProvider,\n type GithubCredentialsProvider,\n} from '@backstage/integration';\n\n/**\n * Creates a credentials provider backed by the connections service.\n *\n * @param connections - The connections service used to resolve GitHub credentials.\n * @alpha\n */\nexport const createGitHubCredentialsProviderFromConnection = (\n connections: ConnectionsService,\n): GithubCredentialsProvider =>\n DefaultGithubCredentialsProvider.experimentalFromConnections(connections);\n"],"names":["DefaultGithubCredentialsProvider"],"mappings":";;;;AA2BO,MAAM,6CAAA,GAAgD,CAC3D,WAAA,KAEAA,4CAAA,CAAiC,4BAA4B,WAAW;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DefaultGithubCredentialsProvider } from '@backstage/integration';
|
|
2
|
+
|
|
3
|
+
const createGitHubCredentialsProviderFromConnection = (connections) => DefaultGithubCredentialsProvider.experimentalFromConnections(connections);
|
|
4
|
+
|
|
5
|
+
export { createGitHubCredentialsProviderFromConnection };
|
|
6
|
+
//# sourceMappingURL=createGitHubCredentialsProviderFromConnection.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createGitHubCredentialsProviderFromConnection.esm.js","sources":["../../../src/alpha/github/createGitHubCredentialsProviderFromConnection.ts"],"sourcesContent":["/*\n * Copyright 2026 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport type { ConnectionsService } from '@backstage/connections';\nimport {\n DefaultGithubCredentialsProvider,\n type GithubCredentialsProvider,\n} from '@backstage/integration';\n\n/**\n * Creates a credentials provider backed by the connections service.\n *\n * @param connections - The connections service used to resolve GitHub credentials.\n * @alpha\n */\nexport const createGitHubCredentialsProviderFromConnection = (\n connections: ConnectionsService,\n): GithubCredentialsProvider =>\n DefaultGithubCredentialsProvider.experimentalFromConnections(connections);\n"],"names":[],"mappings":";;AA2BO,MAAM,6CAAA,GAAgD,CAC3D,WAAA,KAEA,gCAAA,CAAiC,4BAA4B,WAAW;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var createGitHubCredentialsProviderFromConnection = require('./alpha/github/createGitHubCredentialsProviderFromConnection.cjs.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.createGitHubCredentialsProviderFromConnection = createGitHubCredentialsProviderFromConnection.createGitHubCredentialsProviderFromConnection;
|
|
8
|
+
//# sourceMappingURL=alpha.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ConnectionsService } from '@backstage/connections';
|
|
2
|
+
import { GithubCredentialsProvider } from '@backstage/integration';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Creates a credentials provider backed by the connections service.
|
|
6
|
+
*
|
|
7
|
+
* @param connections - The connections service used to resolve GitHub credentials.
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
declare const createGitHubCredentialsProviderFromConnection: (connections: ConnectionsService) => GithubCredentialsProvider;
|
|
11
|
+
|
|
12
|
+
export { createGitHubCredentialsProviderFromConnection };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|