Add Dependabot configuration for pip and GitHub Actions - #28
Open
hakonhagland wants to merge 1 commit into
Open
Conversation
Without a .github/dependabot.yml GitHub only raises security alerts; it never opens version-update pull requests. That is why the Poetry lock file was able to drift far behind upstream, leaving 23 open alerts to be cleared in one batch, and why python_scripts.yml is still pinned to actions/checkout@v3 and actions/setup-python@v4 while python_sphinx_docs.yml has moved on to v4 and v5. Two ecosystems are covered: - pip, rooted at /python/sphinx_docs, which is where pyproject.toml and poetry.lock live - github-actions, rooted at /, which picks up the workflow action pins. Only tag-referenced actions can be bumped, so this manages actions/checkout and actions/setup-python; OPM/actions-poetry@master and OPM/github-pages-deploy-action@releases/v4 are branch refs and are left untouched. Both use a monthly schedule with every package in a single group, so each ecosystem produces at most one pull request per month. Ungrouped updates would be unmanageable: GitPython alone went through eight patch releases in the three weeks from 2026-07-21 to 2026-08-07. Security updates are unaffected and are still opened immediately when an advisory is published.
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.
Add Dependabot configuration for pip and GitHub Actions
Follow-up to #27. That PR cleared 23 open Dependabot alerts in a single batch; this one is about not getting into that situation again.
The repository has no
.github/dependabot.yml, which means GitHub only ever raises security alerts — it never opens routine version-update pull requests. Nothing has been nudging the dependencies forward between advisories, so they drifted:idnawas still on 3.7 andcertifion a 2024 bundle, andpython_scripts.ymlis pinned toactions/checkout@v3andactions/setup-python@v4whilepython_sphinx_docs.ymlhas long since moved to v4 and v5.What the config does
pip, rooted at/python/sphinx_docs— the directory holdingpyproject.tomlandpoetry.lock. Thepipecosystem is what Dependabot uses for Poetry projects.github-actions, rooted at/— picks up the workflow action pins. Dependabot can only bump actions referenced by a version tag, so this managesactions/checkoutandactions/setup-python;OPM/actions-poetry@masterandOPM/github-pages-deploy-action@releases/v4are branch refs and are left untouched.This affects scheduled version updates only. Security updates are unchanged — they are still opened immediately and individually whenever an advisory is published, regardless of the schedule here.
What to expect after merging
actions/checkoutv3 → v4 andactions/setup-pythonv4 → v5 inpython_scripts.yml, bringing it in line with the other workflow.sphinx7.2.6 → 7.3.7,sphinx-versioned-docs1.3.1 → 1.4,typer0.9 → 0.27 andrich13 → 15. Those sit in the execution path of the gh-pages docs build, so that PR deserves a localsphinx-versionedrun before merging rather than a green-CI-and-merge.sphinx-rtd-themewill not appear in it. The^1.3.0constraint inpyproject.tomlcaps it below 3.x and Dependabot respects the manifest, so lifting that pin — and with it thedocutils < 0.19andsphinx < 8ceilings it imposes — stays a separate, deliberate change.