imbi-plugin-github 2.44.0__py3-none-any.whl → 2.45.0__py3-none-any.whl
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.
- imbi/plugins/github/secret_provider.py +24 -5
- {imbi_plugin_github-2.44.0.dist-info → imbi_plugin_github-2.45.0.dist-info}/METADATA +2 -2
- {imbi_plugin_github-2.44.0.dist-info → imbi_plugin_github-2.45.0.dist-info}/RECORD +4 -4
- {imbi_plugin_github-2.44.0.dist-info → imbi_plugin_github-2.45.0.dist-info}/WHEEL +0 -0
|
@@ -159,7 +159,11 @@ class _Config(pydantic.BaseModel):
|
|
|
159
159
|
|
|
160
160
|
model_config = pydantic.ConfigDict(extra='forbid')
|
|
161
161
|
|
|
162
|
-
host: str =
|
|
162
|
+
host: str = pydantic.Field(
|
|
163
|
+
default='github.com',
|
|
164
|
+
description='github.com, <tenant>.ghe.com, or a GHES host.',
|
|
165
|
+
title='Host',
|
|
166
|
+
)
|
|
163
167
|
|
|
164
168
|
@pydantic.field_validator('host')
|
|
165
169
|
@classmethod
|
|
@@ -170,18 +174,31 @@ class _Config(pydantic.BaseModel):
|
|
|
170
174
|
class _Locator(pydantic.BaseModel):
|
|
171
175
|
model_config = pydantic.ConfigDict(extra='forbid')
|
|
172
176
|
|
|
173
|
-
app_id: str = pydantic.Field(pattern=r'^[0-9]{1,20}$')
|
|
177
|
+
app_id: str = pydantic.Field(pattern=r'^[0-9]{1,20}$', title='App ID')
|
|
174
178
|
#: ``None``: find the installation of each request's repositories.
|
|
175
179
|
installation_id: str | None = pydantic.Field(
|
|
176
|
-
default=None,
|
|
180
|
+
default=None,
|
|
181
|
+
description="Empty: find it from each request's repositories.",
|
|
182
|
+
pattern=r'^[0-9]{1,20}$',
|
|
183
|
+
title='Installation ID',
|
|
177
184
|
)
|
|
178
185
|
#: The ``secret://`` reference of the App private key (PEM, or
|
|
179
186
|
#: base64 PEM), in a binding that is not ``dynamic``.
|
|
180
|
-
private_key: str
|
|
187
|
+
private_key: str = pydantic.Field(
|
|
188
|
+
description='The secret:// reference of the binding with the key.',
|
|
189
|
+
title='Private key',
|
|
190
|
+
)
|
|
181
191
|
#: ``owner/name`` repositories for ``marketplace_fetch``: the
|
|
182
192
|
#: marketplaces and their external plugins. Other purposes use the
|
|
183
193
|
#: repositories of the task's project.
|
|
184
|
-
repositories: list[str] = pydantic.Field(
|
|
194
|
+
repositories: list[str] = pydantic.Field(
|
|
195
|
+
default_factory=list[str],
|
|
196
|
+
description=(
|
|
197
|
+
'owner/name, for marketplace_fetch only. Other purposes use'
|
|
198
|
+
" the repositories of the task's project."
|
|
199
|
+
),
|
|
200
|
+
title='Repositories',
|
|
201
|
+
)
|
|
185
202
|
|
|
186
203
|
@pydantic.field_validator('private_key')
|
|
187
204
|
@classmethod
|
|
@@ -277,6 +294,8 @@ class GitHubApp(secrets.SecretProvider):
|
|
|
277
294
|
|
|
278
295
|
type = 'github_app'
|
|
279
296
|
label = 'GitHub App'
|
|
297
|
+
locator_model = _Locator
|
|
298
|
+
config_model = _Config
|
|
280
299
|
capabilities = frozenset[secrets.SecretCapability](
|
|
281
300
|
{'dynamic_issuance', 'lease_revocation', 'health_check'}
|
|
282
301
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: imbi-plugin-github
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.45.0
|
|
4
4
|
Summary: GitHub identity plugin for Imbi (github.com / GHEC / GHES)
|
|
5
5
|
Author-email: "Gavin M. Roy" <gavinr@aweber.com>
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.14
|
|
13
13
|
Requires-Python: >=3.14
|
|
14
14
|
Requires-Dist: httpx>=0.27
|
|
15
|
-
Requires-Dist: imbi-common[databases]==2.
|
|
15
|
+
Requires-Dist: imbi-common[databases]==2.45.0
|
|
16
16
|
Requires-Dist: pydantic>=2
|
|
17
17
|
Requires-Dist: pyjwt[crypto]>=2.8
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
@@ -12,7 +12,7 @@ imbi/plugins/github/plugin.py,sha256=LDFCqj6e2jfF9io3U7cC0eVOUAxw1ENvFS-0AWOMuDc
|
|
|
12
12
|
imbi/plugins/github/public.py,sha256=GZnTLbj_Gl5sHWuRqFuajnoO2xPudNQumAt4h_uJpYw,3114
|
|
13
13
|
imbi/plugins/github/pull_requests.py,sha256=DH9CnJoCpY5Ats5sZ_ktLvy54kBwK9g_-CDMlAIOq7Y,32553
|
|
14
14
|
imbi/plugins/github/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
-
imbi/plugins/github/secret_provider.py,sha256=
|
|
16
|
-
imbi_plugin_github-2.
|
|
17
|
-
imbi_plugin_github-2.
|
|
18
|
-
imbi_plugin_github-2.
|
|
15
|
+
imbi/plugins/github/secret_provider.py,sha256=hQrPxjdWkZaJxiF3JcTRwjOqHuBrTJaUxT4UIlgPjF8,27968
|
|
16
|
+
imbi_plugin_github-2.45.0.dist-info/METADATA,sha256=gf_B7Tmrvz7leBpI2IFz6x0a4lOG2-D_mmMnF9vlGU0,8977
|
|
17
|
+
imbi_plugin_github-2.45.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
18
|
+
imbi_plugin_github-2.45.0.dist-info/RECORD,,
|
|
File without changes
|