ci: SHA-pin all GitHub Actions, add Dependabot, drop autoformat - #159
Open
MarcelRosier wants to merge 4 commits into
Open
ci: SHA-pin all GitHub Actions, add Dependabot, drop autoformat#159MarcelRosier wants to merge 4 commits into
MarcelRosier wants to merge 4 commits into
Conversation
…kflow - Pin actions/checkout, actions/setup-python, astral-sh/setup-uv, codecov/codecov-action, stefanzweifel/git-auto-commit-action to commit SHAs - Bump actions to latest releases (checkout v7, setup-python v7, setup-uv v9, codecov v7, git-auto-commit v7) - Add .github/dependabot.yml with weekly github-actions ecosystem updates - Remove autoformat.yml (redundant with pre-commit hooks + ruff CI check)
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens CI supply-chain security by SHA-pinning GitHub Actions, introduces Dependabot updates for GitHub Actions pins, and migrates the project’s Python tooling from Poetry to Hatch/uv while removing the autoformat workflow.
Changes:
- Migrate packaging/versioning from Poetry + poetry-dynamic-versioning to Hatch (hatchling + hatch-vcs) and move dev/docs deps to dependency groups.
- SHA-pin GitHub Actions in CI workflows and add
.github/dependabot.ymlfor weekly GitHub Actions updates. - Remove the
/format-triggered autoformat workflow and update contributor/docs build instructions to useuv.
Reviewed changes
Copilot reviewed 8 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Switch build backend to Hatch (hatchling + hatch-vcs) and define dependency groups for dev/docs. |
| CONTRIBUTING.md | Update local development instructions from Poetry to uv. |
| .readthedocs.yaml | Switch Read the Docs installs to uv with the docs group. |
| .gitignore | Ignore the hatch-vcs generated brats/_version.py. |
| .github/workflows/tests.yml | Use SHA-pinned actions and switch dependency install/test execution to uv. |
| .github/workflows/ruff.yml | SHA-pin checkout and keep ruff checks via ruff-action. |
| .github/workflows/release.yml | SHA-pin checkout/setup-python while continuing to build via python -m build. |
| .github/workflows/autoformat.yml | Remove the autoformat workflow (and its write permissions). |
| .github/dependabot.yml | Add weekly Dependabot updates for GitHub Actions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…hub-actions-add-dependabot
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.
Based on #158 , review that first
What
github-actionsecosystem, weekly) to auto-update SHA commentsautoformat.yml— redundant with pre-commit hooks +ruff.ymlCI check; also removescontents: writepermission surfaceWhy
Version tags are mutable — a compromised release can inject malicious code without changing the tag. Commit SHAs are immutable. Dependabot keeps the pins current without manual effort.