chore: automate security updates and releases#28
Merged
NiklasRosenstein merged 1 commit intodevelopfrom Mar 15, 2026
Merged
Conversation
- renovate.json: enable platformAutomerge + automerge for security updates immediately and minor/patch after 3-day stabilisation period - pyproject.toml: remove overly tight patch-level upper bounds on cryptography and urllib3 so Renovate security PRs can actually merge - .github/workflows/auto-release.yml: after CI passes on develop, either tag a manually-bumped version (if changelog entry exists) or auto-bump the patch version, generate a changelog entry, and push the tag — which triggers the existing release.yml to publish to PyPI Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR wires up fully-automatic maintenance for the repo so that open security PRs merge themselves and a new PyPI release follows automatically.
1.
renovate.json— automerge for Renovate PRsmatchCategories: ["security"]): automerged immediately with highest priority. This will finally close the 4 long-standing security PRs (chore(deps): update dependency cryptography to v46 [security] #21, chore(deps): update dependency requests to v2.32.4 [security] #24, chore(deps): update dependency pymdown-extensions to v10.16.1 [security] #25, chore(deps): update dependency pyjwt to v2.12.0 [security] #27).platformAutomerge: true— uses GitHub's native auto-merge so it respects branch protection rules.dependencieslabel to all Renovate PRs for easy filtering.2.
pyproject.toml— loosen overly tight dependency pinsThe previous constraints had patch-level upper bounds that directly blocked the open Renovate PRs:
cryptography>=44.0.0,<44.0.1>=44.0.0urllib3>=2.6.3,<2.6.4>=2.6.3PyJWT<3.0.0andrequests<3.0.0are intentional major-version guards and are left as-is.3.
.github/workflows/auto-release.yml— automatic version taggingAfter the existing Python CI workflow passes on
develop, this workflow:Path A — unreleased commits exist (e.g. after Renovate PRs merge):
pyproject.tomland__init__.py.changelog/<new_version>.tomlentry summarising the merged commitsrelease.yml→ publishes to PyPIPath B — version was manually bumped in a PR:
.changelog/<version>.tomlentry existsrelease.ymlTest plan
auto-release.ymlruns and a new patch tag appearsrelease.ymlpicks up the tag and publishes to PyPI