Skip to content

ci: SHA-pin all GitHub Actions, add Dependabot, drop autoformat - #159

Open
MarcelRosier wants to merge 4 commits into
mainfrom
157-sha-pin-all-github-actions-add-dependabot
Open

ci: SHA-pin all GitHub Actions, add Dependabot, drop autoformat#159
MarcelRosier wants to merge 4 commits into
mainfrom
157-sha-pin-all-github-actions-add-dependabot

Conversation

@MarcelRosier

@MarcelRosier MarcelRosier commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

Based on #158 , review that first

What

  • All GitHub Actions pinned to commit SHAs instead of version tags for supply-chain security
  • Bumped to latest releases: checkout v7, setup-python v7, setup-uv v9, codecov v7, git-auto-commit v7
  • Added Dependabot (github-actions ecosystem, weekly) to auto-update SHA comments
  • Removed autoformat.yml — redundant with pre-commit hooks + ruff.yml CI check; also removes contents: write permission surface

Why

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.

…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)
Copilot AI lite review requested due to automatic review settings August 8, 2026 10:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml for weekly GitHub Actions updates.
  • Remove the /format-triggered autoformat workflow and update contributor/docs build instructions to use uv.

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.

Comment thread pyproject.toml
Comment thread .github/workflows/release.yml Outdated
@MarcelRosier MarcelRosier self-assigned this Aug 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SHA-pin all GitHub Actions + add Dependabot

2 participants