Title: AttributeError: type object 'Actor' has no attribute 'name_email_regex' (GitPython 3.1.60) · Issue #1475 · python-semantic-release/python-semantic-release · GitHub
Open Graph Title: AttributeError: type object 'Actor' has no attribute 'name_email_regex' (GitPython 3.1.60) · Issue #1475 · python-semantic-release/python-semantic-release
X Title: AttributeError: type object 'Actor' has no attribute 'name_email_regex' (GitPython 3.1.60) · Issue #1475 · python-semantic-release/python-semantic-release
Description: Summary GitPython 3.1.60 (published 2026-08-25 18:33 UTC) removed the Actor.name_email_regex class attribute as part of a security hardening fix (gitpython-developers/GitPython#2215, replacing backtracking-regex identity parsing to close...
Open Graph Description: Summary GitPython 3.1.60 (published 2026-08-25 18:33 UTC) removed the Actor.name_email_regex class attribute as part of a security hardening fix (gitpython-developers/GitPython#2215, replacing back...
X Description: Summary GitPython 3.1.60 (published 2026-08-25 18:33 UTC) removed the Actor.name_email_regex class attribute as part of a security hardening fix (gitpython-developers/GitPython#2215, replacing back...
Opengraph URL: https://github.com/python-semantic-release/python-semantic-release/issues/1475
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AttributeError: type object 'Actor' has no attribute 'name_email_regex' (GitPython 3.1.60)","articleBody":"## Summary\n\n`GitPython 3.1.60` (published 2026-08-25 18:33 UTC) removed the `Actor.name_email_regex` class attribute as part of a security hardening fix ([gitpython-developers/GitPython#2215](https://github.com/gitpython-developers/GitPython/issues/2215), replacing backtracking-regex identity parsing to close [GHSA-v6xg-m7rh-r365](https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-v6xg-m7rh-r365) and [GHSA-g5vv-9gxw-82hx](https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-g5vv-9gxw-82hx)).\n\n`semantic_release/cli/config.py` calls `Actor.name_email_regex.match(...)` directly when validating the configured commit author (`commit_author`), so any environment that resolves to `gitpython>=3.1.60` now crashes on every invocation:\n\n```\nAttributeError: type object 'Actor' has no attribute 'name_email_regex'\n```\n\nSince PSR's own constraint is `gitpython~=3.0`, this affects every version — a fresh `pip install python-semantic-release` today resolves `gitpython==3.1.60` and breaks immediately, with no code change on the caller's part. Confirmed via bisection: `3.1.59` still has the attribute, `3.1.60` does not.\n\n## Impact\n\nThis breaks release automation for anyone using PSR with an unpinned or loosely-pinned GitPython — several independent reports of the identical error surfaced within minutes of the GitPython release going out, all converging on the same workaround (pinning `gitpython\u003c3.1.60`), e.g.:\n- https://github.com/sweetrpg/game-room-objects.py/issues/6\n- https://github.com/gaussia-labs/pyboltzmann/issues/17\n\n## Suggested fix\n\nStop depending on the removed `Actor.name_email_regex` (it was apparently never a stable/documented part of GitPython's public API, since it was removed rather than deprecated). A regex-based validation of `\"name \u003cemail>\"` could be inlined into PSR directly rather than reaching into GitPython's internals, or PSR could rely on `Actor._from_string`/`Actor(...)` construction to validate instead.\n\n## Workaround (in the meantime)\n\nPin `gitpython\u003c3.1.60` alongside `python-semantic-release` until this is fixed.\n\n## Environment\n- `python-semantic-release==10.6.1` (latest at time of filing)\n- `gitpython==3.1.60`","author":{"url":"https://github.com/elliotloftus","@type":"Person","name":"elliotloftus"},"datePublished":"2026-08-25T19:11:15Z","url":"https://github.com/python-semantic-release/python-semantic-release/issues/1475"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0bf891fc-db7b-674a-2e0c-abc1715f977e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC76:22A7FA:5A0AC4:78BA2F:6B00924B |
| html-safe-nonce | 6abc62c26582094854917f4c927591b62e47a0dde35e8b82a19531666f5806fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzc2OjIyQTdGQTo1QTBBQzQ6NzhCQTJGOjZCMDA5MjRCIiwidmlzaXRvcl9pZCI6Ijc3MDgyMTk4NTU2NTYyMjc0MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2c447ff38e206919999d75156555020d195e29c956e838f0b8203515ae1580ef |
| hovercard-subject-tag | issue:5249597651 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-semantic-release/python-semantic-release/1475/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea85ac648975f0c8698c12fc957b6a8542781fb8cadfcc8f0a40a5d63f73f294/python-semantic-release/python-semantic-release/issues/1475 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea85ac648975f0c8698c12fc957b6a8542781fb8cadfcc8f0a40a5d63f73f294/python-semantic-release/python-semantic-release/issues/1475 |
| og:image:alt | Summary GitPython 3.1.60 (published 2026-08-25 18:33 UTC) removed the Actor.name_email_regex class attribute as part of a security hardening fix (gitpython-developers/GitPython#2215, replacing back... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | elliotloftus |
| hostname | github.com |
| expected-hostname | github.com |
| None | c710a5cb5c47be60abfe6e8410436d409906979dbed614ef09f29c60f5535b08 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-semantic-release/python-semantic-release git https://github.com/python-semantic-release/python-semantic-release.git |
| octolytics-dimension-user_id | 116517554 |
| octolytics-dimension-user_login | python-semantic-release |
| octolytics-dimension-repository_id | 39765732 |
| octolytics-dimension-repository_nwo | python-semantic-release/python-semantic-release |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 39765732 |
| octolytics-dimension-repository_network_root_nwo | python-semantic-release/python-semantic-release |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | be616a2a6ec1c609d6e002896dff5352d5c5f28b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width