imbi-plugin-github 2.62.1__tar.gz → 2.64.0__tar.gz

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.
Files changed (33) hide show
  1. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/PKG-INFO +2 -2
  2. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/pyproject.toml +2 -2
  3. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/secret_provider.py +10 -6
  4. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_secret_provider.py +11 -0
  5. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/.gitignore +0 -0
  6. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/README.md +0 -0
  7. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/moon.yml +0 -0
  8. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/README.md +0 -0
  9. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/__init__.py +0 -0
  10. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/_app_auth.py +0 -0
  11. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/_hosts.py +0 -0
  12. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/_repos.py +0 -0
  13. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/commits.py +0 -0
  14. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/deployment.py +0 -0
  15. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/doctor.py +0 -0
  16. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/identity.py +0 -0
  17. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/lifecycle.py +0 -0
  18. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/plugin.py +0 -0
  19. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/public.py +0 -0
  20. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/pull_requests.py +0 -0
  21. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/src/imbi/plugins/github/py.typed +0 -0
  22. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/__init__.py +0 -0
  23. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_app_auth_scopes.py +0 -0
  24. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_commits.py +0 -0
  25. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_deployment.py +0 -0
  26. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_doctor.py +0 -0
  27. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_hosts.py +0 -0
  28. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_identity.py +0 -0
  29. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_lifecycle.py +0 -0
  30. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_public.py +0 -0
  31. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_pull_requests.py +0 -0
  32. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_repos.py +0 -0
  33. {imbi_plugin_github-2.62.1 → imbi_plugin_github-2.64.0}/tests/test_secret_provider_live.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: imbi-plugin-github
3
- Version: 2.62.1
3
+ Version: 2.64.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.62.1
15
+ Requires-Dist: imbi-common[databases]==2.64.0
16
16
  Requires-Dist: pydantic>=2
17
17
  Requires-Dist: pyjwt[crypto]>=2.8
18
18
  Description-Content-Type: text/markdown
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "imbi-plugin-github"
3
- version = "2.62.1"
3
+ version = "2.64.0"
4
4
  description = "GitHub identity plugin for Imbi (github.com / GHEC / GHES)"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
@@ -18,7 +18,7 @@ classifiers = [
18
18
  ]
19
19
  dependencies = [
20
20
  "httpx>=0.27",
21
- "imbi-common[databases]==2.62.1",
21
+ "imbi-common[databases]==2.64.0",
22
22
  "pydantic>=2",
23
23
  "pyjwt[crypto]>=2.8",
24
24
  ]
@@ -58,22 +58,26 @@ from imbi.plugins.github.deployment import (
58
58
 
59
59
  LOGGER = logging.getLogger(__name__)
60
60
 
61
+ _GITHUB_READ = {
62
+ 'actions': 'read',
63
+ 'contents': 'read',
64
+ 'issues': 'read',
65
+ 'pull_requests': 'read',
66
+ }
67
+
61
68
  #: The token permissions of each purpose. The App's own permissions are
62
69
  #: the upper limit: GitHub refuses a request for more (422).
63
70
  PURPOSE_PERMISSIONS: dict[str, dict[str, str]] = {
64
71
  'workspace_checkout': {'contents': 'read'},
65
72
  'marketplace_fetch': {'contents': 'read'},
66
- 'github_read': {
67
- 'actions': 'read',
68
- 'contents': 'read',
69
- 'issues': 'read',
70
- 'pull_requests': 'read',
71
- },
73
+ 'github_read': _GITHUB_READ,
72
74
  'github_write': {
73
75
  'contents': 'write',
74
76
  'pull_requests': 'write',
75
77
  'issues': 'write',
76
78
  },
79
+ # Publish a verdict on a commit without the right to push to it.
80
+ 'github_status': {**_GITHUB_READ, 'checks': 'write', 'statuses': 'write'},
77
81
  }
78
82
 
79
83
  #: Permissions that a purpose adds when the installation grants them:
@@ -234,6 +234,17 @@ class GitHubAppTestCase(unittest.IsolatedAsyncioTestCase):
234
234
  'pull_requests': 'write',
235
235
  },
236
236
  ),
237
+ 'github_status': (
238
+ {'repository_ids': [101]},
239
+ {
240
+ 'actions': 'read',
241
+ 'checks': 'write',
242
+ 'contents': 'read',
243
+ 'issues': 'read',
244
+ 'pull_requests': 'read',
245
+ 'statuses': 'write',
246
+ },
247
+ ),
237
248
  'marketplace_fetch': (
238
249
  {'repositories': ['plugins']},
239
250
  {'contents': 'read'},