From 2d6218d862c2a984b7ee5481d0da0c3b9b724dce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Paugam?= Date: Wed, 2 Dec 2026 18:27:54 +0100 Subject: [PATCH] add dependabot and pin action versions --- .github/dependabot.yml | 18 ++++ .github/workflows/actions.lock | 105 ++++++++++++++++++++++ .github/workflows/publish-to-pypi.yml | 16 ++-- .github/workflows/test.yml | 20 ++--- .github/workflows/verify-actions-lock.yml | 23 +++++ 5 files changed, 164 insertions(+), 18 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/actions.lock create mode 100644 .github/workflows/verify-actions-lock.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..75b5ac28 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions as recommended in SPEC8: + # https://github.com/scientific-python/specs/pull/325 + # Every `uses:` pointing to another repository references a full version tag, + # and is pinned to a commit in .github/workflows/actions.lock, generated by + # `gh actions-lock`. Dependabot updates the lockfile in its PRs. + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "monthly" + groups: + actions: + patterns: + - "*" + labels: + - "dependencies" + - "CI" diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 00000000..e310353c --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,105 @@ +# 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/publish-to-pypi.yml': + - 'actions/checkout@v4.4.0' + - 'actions/download-artifact@v4.3.0' + - 'actions/setup-python@v5.6.0' + - 'actions/upload-artifact@v4.6.2' + - 'pypa/gh-action-pypi-publish@v1.14.3' + - 'sigstore/gh-action-sigstore-python@v3.0.0' + '.github/workflows/test.yml': + - 'actions/cache@v4.3.0' + - 'actions/checkout@v3.7.0' + - 'actions/download-artifact@v4.3.0' + - 'actions/setup-python@v4.9.1' + - 'actions/upload-artifact@v4.6.2' + - 'codecov/codecov-action@v5.5.5' + - 'conda-incubator/setup-miniconda@v3.3.0' + '.github/workflows/verify-actions-lock.yml': + - 'actions/checkout@v4.4.0' +dependencies: + 'actions/cache@v4.3.0': + ref: 'v4.3.0' + commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830' + owner_id: 44036562 + repo_id: 215566462 + 'actions/checkout@v3.7.0': + ref: 'v3.7.0' + commit: 'sha1-a37ce9120846195fa4ece8f58b268e6043cb2f26' + owner_id: 44036562 + repo_id: 197814629 + 'actions/checkout@v4.4.0': + ref: 'v4.4.0' + commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' + owner_id: 44036562 + repo_id: 197814629 + 'actions/download-artifact@v4.3.0': + ref: 'v4.3.0' + commit: 'sha1-d3f86a106a0bac45b974a628896c90dbdf5c8093' + owner_id: 44036562 + repo_id: 192626254 + 'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea': + ref: 'v7.0.1' + commit: 'sha1-60a0d83039c74a4aee543508d2ffcb1c3799cdea' + owner_id: 44036562 + repo_id: 205262760 + 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405': + ref: 'v6.2.0' + commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405' + owner_id: 44036562 + repo_id: 192625525 + 'actions/setup-python@v4.9.1': + ref: 'v4.9.1' + commit: 'sha1-7f4fc3e22c37d6ff65e88745f38bd3157c663f7c' + owner_id: 44036562 + repo_id: 192625525 + 'actions/setup-python@v5.6.0': + ref: 'v5.6.0' + commit: 'sha1-a26af69be951a213d495a4c3e4e4022e16d87065' + owner_id: 44036562 + repo_id: 192625525 + 'actions/upload-artifact@v4': + ref: 'v4' + commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02' + owner_id: 44036562 + repo_id: 192625955 + 'actions/upload-artifact@v4.6.2': + ref: 'v4.6.2' + commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02' + owner_id: 44036562 + repo_id: 192625955 + 'codecov/codecov-action@v5.5.5': + ref: 'v5.5.5' + commit: 'sha1-0fb7174895f61a3b6b78fc075e0cd60383518dac' + owner_id: 8226205 + repo_id: 200299178 + uses: + - 'actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea' + 'conda-incubator/setup-miniconda@v3.3.0': + ref: 'v3.3.0' + commit: 'sha1-fc2d68f6413eb2d87b895e92f8584b5b94a10167' + owner_id: 68608217 + repo_id: 228279841 + 'pypa/gh-action-pypi-publish@v1.14.3': + ref: 'v1.14.3' + commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086' + owner_id: 647025 + repo_id: 178055147 + uses: + - 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405' + 'sigstore/gh-action-sigstore-python@v3.0.0': + ref: 'v3.0.0' + commit: 'sha1-f514d46b907ebcd5bedc05145c03b69c1edd8b46' + owner_id: 71096353 + repo_id: 508560980 + uses: + - 'actions/upload-artifact@v4' + - 'softprops/action-gh-release@v2' + 'softprops/action-gh-release@v2': + ref: 'v2' + commit: 'sha1-3bb12739c298aeb8a4eeaf626c5b8d85266b0e65' + owner_id: 2242 + repo_id: 204253808 diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index b38ed7d7..2a29ce96 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -12,12 +12,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.4.0 with: persist-credentials: false - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v5.6.0 with: python-version: "3.x" @@ -28,7 +28,7 @@ jobs: run: python -m build - name: Store the distribution packages - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4.6.2 with: name: python-package-distributions path: dist/ @@ -49,12 +49,12 @@ jobs: steps: - name: Download all the dists - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v4.3.0 with: name: python-package-distributions path: dist/ - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@v1.14.3 github-release: name: >- @@ -70,7 +70,7 @@ jobs: steps: - name: Download all the dists - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v4.3.0 with: name: python-package-distributions path: dist/ @@ -114,12 +114,12 @@ jobs: steps: - name: Download all the dists - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v4.3.0 with: name: python-package-distributions path: dist/ - name: Publish distribution 📦 to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@v1.14.3 with: verbose: true # skip-existing is required for .dev0 versions with fixed names but diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c23505c6..80779e5e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,9 +25,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.7.0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v4.9.1 with: python-version: "3.14" @@ -285,11 +285,11 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v3.7.0 - name: Restore ccache if: matrix.INSTALL_BLAS == 'flexiblas' - uses: actions/cache@v4 + uses: actions/cache@v4.3.0 with: path: ~/.cache/ccache key: ccache-flexiblas-${{ matrix.os }}-${{ hashFiles('continuous_integration/install_flexiblas.sh') }} @@ -297,7 +297,7 @@ jobs: ccache-flexiblas-${{ matrix.os }}- - name: Setup conda - uses: conda-incubator/setup-miniconda@v3 + uses: conda-incubator/setup-miniconda@v3.3.0 with: auto-activate-base: true auto-update-conda: true @@ -312,7 +312,7 @@ jobs: ./continuous_integration/run_tests.sh - name: Upload test results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4.6.2 with: # Requires a unique name for each job in the matrix of this run name: test_result_${{github.run_id}}_${{ matrix.os }}_${{ matrix.name }} @@ -320,7 +320,7 @@ jobs: retention-days: 1 - name: Upload to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v5.5.5 with: files: coverage.xml @@ -332,15 +332,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v4.9.1 with: python-version: "3.12" - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v3.7.0 - name: Download tests results - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v4.3.0 with: path: test_results diff --git a/.github/workflows/verify-actions-lock.yml b/.github/workflows/verify-actions-lock.yml new file mode 100644 index 00000000..cca58c86 --- /dev/null +++ b/.github/workflows/verify-actions-lock.yml @@ -0,0 +1,23 @@ +# Fails when .github/workflows/actions.lock is out of sync with the +# workflows, or when a locked commit no longer verifies upstream. +name: Verify actions lockfile +permissions: + contents: read + +on: + pull_request: + push: + branches: + - master + +jobs: + verify-actions-lock: + runs-on: ubuntu-latest + env: + GH_TOKEN: ${{ github.token }} + steps: + - uses: actions/checkout@v4.4.0 + with: + persist-credentials: false + - run: gh extension install github/gh-actions-lock --pin v0.4.1 + - run: gh actions-lock --verify