From af3d5d9b9fefcc7a2c9d3b40818cc08c0054cc8a Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Fri, 20 Nov 2026 08:06:04 +0100 Subject: [PATCH] CI: one pin of each GitHub Action in all workflows, Dependabot updates for them (#331) * ci: one pin of actions/checkout and actions/download-artifact in all workflows build.yml moves from actions/checkout v5.1.0 to the v6.1.0 pin build_bin.yml already uses, and the two unpinned actions/download-artifact@v4 in the publish job of build_bin.yml get the v4.3.0 hash sonar.yml already uses (the commit the v4 tag points at today, so nothing changes at run time). * ci: Dependabot updates for the GitHub Actions One grouped pull request a week for all actions, so the hash pins and their version comments move together in every workflow. --- .github/dependabot.yml | 13 +++++++++++++ .github/workflows/build.yml | 2 +- .github/workflows/build_bin.yml | 8 ++++---- 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..0a520876d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# Keeps the GitHub Actions used by the workflows up to date. The actions are pinned by commit hash, with the +# version in a comment; Dependabot updates both. One pull request a week for all of them, so the workflows +# stay on the same versions. +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + github-actions: + patterns: + - "*" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 758b4c8d5..7eaf891fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,7 @@ jobs: env: BUILD_WRAPPER_OUT_DIR: bw-output steps: - - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: fetch-depth: 0 submodules: recursive diff --git a/.github/workflows/build_bin.yml b/.github/workflows/build_bin.yml index 12c5c5866..230e814cf 100644 --- a/.github/workflows/build_bin.yml +++ b/.github/workflows/build_bin.yml @@ -583,25 +583,25 @@ jobs: steps: # the AVX2 build keeps the old name of the download, so the links already handed out still work - name: Download Windows build (AVX2) - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: maszyna-windows-x64-avx2-${{ env.CONFIG_WIN }} path: dist/maszyna-windows-x64 - name: Download Windows build (no AVX2) - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: maszyna-windows-x64-noavx2-${{ env.CONFIG_WIN }} path: dist/maszyna-windows-x64-noavx2 - name: Download Linux build (AVX2) - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: maszyna-linux-x64-avx2-${{ env.CONFIG_LINUX }} path: dist/maszyna-linux-x64 - name: Download Linux build (no AVX2) - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: maszyna-linux-x64-noavx2-${{ env.CONFIG_LINUX }} path: dist/maszyna-linux-x64-noavx2