From e59ae89ec091a5ae758fa8cc87331afa1eab5818 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 10 Nov 2026 22:31:32 +0200 Subject: [PATCH 1/5] Move github-actions before pip, to match our other repos --- .github/dependabot.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f2aa5a72..40a2f9c5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,23 +1,23 @@ version: 2 updates: - - package-ecosystem: pip + - package-ecosystem: "github-actions" directory: "/" schedule: interval: monthly assignees: - "ezio-melotti" groups: - pip: + actions: patterns: - "*" - - package-ecosystem: "github-actions" + - package-ecosystem: "pip" directory: "/" schedule: interval: monthly assignees: - "ezio-melotti" groups: - actions: + pip: patterns: - "*" From bb76eec87d75619283aa69647806fa7290d64ae9 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 10 Nov 2026 22:32:12 +0200 Subject: [PATCH 2/5] Add cooldown to Dependabot --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 40a2f9c5..3c65cbc4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,6 +10,11 @@ updates: actions: patterns: - "*" + cooldown: + # https://blog.yossarian.net/2025/11/21/We-should-all-be-using-dependency-cooldowns + # Cooldowns protect against supply chain attacks by avoiding the + # highest-risk window immediately after new releases. + default-days: 14 - package-ecosystem: "pip" directory: "/" @@ -21,3 +26,5 @@ updates: pip: patterns: - "*" + cooldown: + default-days: 14 From 051d0933b3d35b6d78ca8df912313acf5cd62e33 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 10 Nov 2026 22:55:21 +0200 Subject: [PATCH 3/5] Add actionlint and zizmor to prek --- .pre-commit-config.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 481f7bd3..fcc98ccc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: python-check-blanket-noqa - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -18,11 +18,21 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.31.0 + rev: 0.39.0 hooks: - id: check-dependabot - id: check-github-workflows + - repo: https://github.com/rhysd/actionlint + rev: v1.7.12 + hooks: + - id: actionlint + + - repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: v1.32.0 + hooks: + - id: zizmor + - repo: meta hooks: - id: check-hooks-apply From 96f2c271a5c4c9a409726e1aae155f87679e467a Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 10 Nov 2026 23:13:18 +0200 Subject: [PATCH 4/5] Lock GitHub Actions --- .github/workflows/actions.lock | 74 ++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 12 +++--- .github/workflows/lint.yml | 20 +++++++-- 3 files changed, 97 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/actions.lock diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 00000000..3a63f7c9 --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,74 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/ci.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-python@v7.1.0' + - 'codecov/codecov-action@v7.1.1' + - 'docker/setup-buildx-action@v4.4.1' + - 'hynek/setup-cached-uv@v2.6.0' + '.github/workflows/lint.yml': + - 'actions/checkout@v7.0.1' + - 'actions/setup-python@v7.1.0' + - 'tox-dev/action-pre-commit-uv@v1.1.2' +dependencies: + 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9': + ref: 'v6.1.0' + commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + owner_id: 44036562 + repo_id: 215566462 + 'actions/checkout@v7.0.1': + ref: 'v7.0.1' + commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1' + owner_id: 44036562 + repo_id: 197814629 + 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd': + ref: 'v8.0.0' + commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd' + owner_id: 44036562 + repo_id: 205262760 + 'actions/setup-python@v7.1.0': + ref: 'v7.1.0' + commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0' + owner_id: 44036562 + repo_id: 192625525 + 'astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e': + ref: 'v10.3.2' + commit: 'sha1-07a047e608db84b3d8c06cd9a7c7dcc9c355c18e' + owner_id: 115962839 + repo_id: 846733598 + 'codecov/codecov-action@v7.1.1': + ref: 'v7.1.1' + commit: 'sha1-303a32d7a59b442fa8d48b6a1cc6825c09c847a5' + owner_id: 8226205 + repo_id: 200299178 + uses: + - 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' + 'docker/setup-buildx-action@v4.4.1': + ref: 'v4.4.1' + commit: 'sha1-f87e5991a6d7451dcb8d9637bfbc97413f497069' + owner_id: 5429470 + repo_id: 288485773 + 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47': + ref: 'v1.4.4' + commit: 'sha1-598d7a875d5620e0457490555b5e18e46082aa47' + owner_id: 56696274 + repo_id: 617991574 + 'hynek/setup-cached-uv@v2.6.0': + ref: 'v2.6.0' + commit: 'sha1-34e35d30f1ebc7421a5cc733bca38dcc62603960' + owner_id: 41240 + repo_id: 779953216 + uses: + - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + - 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47' + 'tox-dev/action-pre-commit-uv@v1.1.2': + ref: 'v1.1.2' + commit: 'sha1-9316eafda3550b0365575c60b9f53725a81d0cfd' + owner_id: 20345659 + repo_id: 877490614 + uses: + - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' + - 'astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43eabe99..2424099d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,18 +19,18 @@ jobs: python-version: ["3.14", "3.15"] steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v7 + uses: actions/setup-python@v7.1.0 with: python-version: ${{ matrix.python-version }} allow-prereleases: true - name: Install uv - uses: hynek/setup-cached-uv@v2 + uses: hynek/setup-cached-uv@v2.6.0 with: cache-dependency-path: | requirements.txt @@ -40,7 +40,7 @@ jobs: run: | uvx --with tox-uv tox -e py - - uses: codecov/codecov-action@v7 + - uses: codecov/codecov-action@v7.1.1 if: always() with: files: ./coverage.xml @@ -53,11 +53,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - - uses: docker/setup-buildx-action@v4 + - uses: docker/setup-buildx-action@v4.4.1 - name: Build the image run: docker build . diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 1c98e70c..5e0bb718 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,10 +13,24 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@v7.0.1 with: persist-credentials: false - - uses: actions/setup-python@v7 + - uses: actions/setup-python@v7.1.0 with: python-version: "3.x" - - uses: tox-dev/action-pre-commit-uv@v1 + - uses: tox-dev/action-pre-commit-uv@v1.1.2 + + # Fails when .github/workflows/actions.lock is out of sync with the + # workflows or a locked pin no longer verifies upstream. + lockfile: + runs-on: ubuntu-slim + env: + GH_TOKEN: ${{ github.token }} + + steps: + - uses: actions/checkout@v7.0.1 + with: + persist-credentials: false + - run: gh extension install github/gh-actions-lock --pin v0.4.1 + - run: gh actions-lock --verify From 450ddaf023056299493219a7dc6967782bd1289c Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Wed, 11 Nov 2026 14:30:06 +0200 Subject: [PATCH 5/5] Replace pre-commit with faster prek in CI --- .github/workflows/actions.lock | 21 ++++++--------------- .github/workflows/lint.yml | 5 +---- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 3a63f7c9..a7a4d5c3 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -11,8 +11,7 @@ workflows: - 'hynek/setup-cached-uv@v2.6.0' '.github/workflows/lint.yml': - 'actions/checkout@v7.0.1' - - 'actions/setup-python@v7.1.0' - - 'tox-dev/action-pre-commit-uv@v1.1.2' + - 'j178/prek-action@v3.0.0' dependencies: 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9': ref: 'v6.1.0' @@ -34,11 +33,6 @@ dependencies: commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0' owner_id: 44036562 repo_id: 192625525 - 'astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e': - ref: 'v10.3.2' - commit: 'sha1-07a047e608db84b3d8c06cd9a7c7dcc9c355c18e' - owner_id: 115962839 - repo_id: 846733598 'codecov/codecov-action@v7.1.1': ref: 'v7.1.1' commit: 'sha1-303a32d7a59b442fa8d48b6a1cc6825c09c847a5' @@ -64,11 +58,8 @@ dependencies: uses: - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' - 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47' - 'tox-dev/action-pre-commit-uv@v1.1.2': - ref: 'v1.1.2' - commit: 'sha1-9316eafda3550b0365575c60b9f53725a81d0cfd' - owner_id: 20345659 - repo_id: 877490614 - uses: - - 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9' - - 'astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e' + 'j178/prek-action@v3.0.0': + ref: 'v3.0.0' + commit: 'sha1-4e14d07f9231acabce116ccfca13b13dd9755ece' + owner_id: 10510431 + repo_id: 1052387486 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5e0bb718..265e46de 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,10 +16,7 @@ jobs: - uses: actions/checkout@v7.0.1 with: persist-credentials: false - - uses: actions/setup-python@v7.1.0 - with: - python-version: "3.x" - - uses: tox-dev/action-pre-commit-uv@v1.1.2 + - uses: j178/prek-action@v3.0.0 # Fails when .github/workflows/actions.lock is out of sync with the # workflows or a locked pin no longer verifies upstream.