From 068ce83eff3716c94e1823497b0d194a103958a3 Mon Sep 17 00:00:00 2001 From: Steve Gilvarry Date: Wed, 18 Nov 2026 17:16:08 +1100 Subject: [PATCH] ci: pin every action to a commit and stop packaging on push to master Only two actions were pinned to a commit. The rest followed a movable tag, so a retagged release of a third-party action would have run in the jobs that build release packages. Each one is now pinned to the commit its tag points at today, with the version beside it. The eight uses of checkout v4 move to v6 so there is one version. Pins go stale, so Dependabot now updates GitHub Actions weekly, as one grouped pull request. Packaging no longer runs on push to master. The pull request already tested the same code, and the job takes 30 minutes or more. The nightly run still covers master and saves the build cache. Co-Authored-By: Claude Fable 5.2 --- .github/dependabot.yml | 11 ++++++ .github/workflows/docs.yml | 10 ++--- .github/workflows/packaging.yml | 20 +++++----- .github/workflows/release.yml | 38 +++++++++--------- .github/workflows/test.yml | 68 ++++++++++++++++----------------- 5 files changed, 80 insertions(+), 67 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..91efdcc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# Workflows pin every action to a commit. Dependabot keeps those pins current, +# and updates the version comment beside each one. +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + actions: + patterns: ["*"] diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 685f5e5..3a50c61 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -39,7 +39,7 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install FFmpeg/OpenSSL dev libraries run: | @@ -49,7 +49,7 @@ jobs: libavutil-dev libavformat-dev libavfilter-dev \ libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable # Build caches hold objects compiled against this runner's FFmpeg. When # GitHub moves ubuntu-latest to a new release, an old cache links against @@ -57,7 +57,7 @@ jobs: - name: Key the build cache to this FFmpeg run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 with: key: ${{ env.FFMPEG_KEY }} @@ -114,7 +114,7 @@ jobs: print("No broken internal links.") PY - - uses: actions/upload-pages-artifact@v3 + - uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 with: path: target/book @@ -133,4 +133,4 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 87d8eea..6bb4c28 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -9,9 +9,11 @@ name: Packaging # the nightly run is for: upstream master moves daily, and a schema or # stream-socket change there should show up here the next morning, not on a # user's machine. +# +# Not on push to master: the pull request already tested the same code, and +# running again on every merge doubled a slow job. The nightly run covers +# master, and ZoneMinder master moving under it. on: - push: - branches: [master, main] pull_request: branches: [master, main] paths: @@ -46,7 +48,7 @@ jobs: name: Shell scripts runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 # The scripts that ship in the package, and the test drivers. - run: | shellcheck -x -S warning \ @@ -81,13 +83,13 @@ jobs: - { distro: opensuse-tumbleweed, arch: amd64, runner: ubuntu-24.04, flow: package } - { distro: arch, arch: amd64, runner: ubuntu-24.04, flow: package } steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 # The cargo registry and the target directory of the in-container build. - # Saved from the default branch only, so pull requests read a warm cache - # without each one writing its own multi-gigabyte copy. + # Saved by the nightly run on the default branch only, so pull requests + # read a warm cache without each one writing its own multi-gigabyte copy. - name: Restore build cache - uses: actions/cache/restore@v5 + uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ${{ runner.temp }}/e2e-cache key: packaging-${{ matrix.distro }}-${{ matrix.arch }}-${{ hashFiles('Cargo.lock') }} @@ -118,7 +120,7 @@ jobs: - name: Upload logs if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: packaging-logs-${{ matrix.distro }}-${{ matrix.arch }} path: target/e2e/${{ matrix.distro }}/logs @@ -126,7 +128,7 @@ jobs: - name: Save build cache if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' - uses: actions/cache/save@v5 + uses: actions/cache/save@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ${{ runner.temp }}/e2e-cache key: packaging-${{ matrix.distro }}-${{ matrix.arch }}-${{ hashFiles('Cargo.lock') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a99019..4a0025f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: name: Version consistency runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - run: ./scripts/check-version-consistency.sh # Debian/Ubuntu/Raspberry Pi OS — the flagship, built natively per arch. @@ -39,7 +39,7 @@ jobs: - { arch: arm64, runner: ubuntu-24.04-arm } runs-on: ${{ matrix.runner }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install FFmpeg/OpenSSL dev libraries run: | @@ -49,7 +49,7 @@ jobs: libavutil-dev libavformat-dev libavfilter-dev \ libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable # Build caches hold objects compiled against this runner's FFmpeg. When # GitHub moves ubuntu-latest to a new release, an old cache links against @@ -57,7 +57,7 @@ jobs: - name: Key the build cache to this FFmpeg run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 with: key: ${{ env.FFMPEG_KEY }} @@ -84,7 +84,7 @@ jobs: fi dpkg-deb -c "$deb" - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: deb-${{ matrix.arch }} path: target/debian/*.deb @@ -123,7 +123,7 @@ jobs: 'pkgconfig(libavdevice)' 'pkgconfig(libswscale)' \ 'pkgconfig(libswresample)' - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Mark workspace as a safe git directory run: git config --global --add safe.directory "$GITHUB_WORKSPACE" @@ -137,7 +137,7 @@ jobs: find "$(rpm --eval %_topdir)/RPMS" -name '*.rpm' -exec cp {} out/ \; ls -l out - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: rpm-${{ matrix.distro }} path: out/*.rpm @@ -153,7 +153,7 @@ jobs: - name: Install build dependencies run: pacman -Syu --noconfirm base-devel git rust ffmpeg openssl clang - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Build package run: | @@ -177,7 +177,7 @@ jobs: mkdir -p out && cp /tmp/build/*.pkg.tar.zst out/ ls -l out - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: arch-pkg path: out/*.pkg.tar.zst @@ -192,7 +192,7 @@ jobs: name: OpenAPI spec runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install FFmpeg/OpenSSL dev libraries run: | @@ -202,7 +202,7 @@ jobs: libavutil-dev libavformat-dev libavfilter-dev \ libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable # Build caches hold objects compiled against this runner's FFmpeg. When # GitHub moves ubuntu-latest to a new release, an old cache links against @@ -210,7 +210,7 @@ jobs: - name: Key the build cache to this FFmpeg run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 with: key: ${{ env.FFMPEG_KEY }} @@ -227,7 +227,7 @@ jobs: sys.exit(0 if paths > 50 else 'suspiciously few paths') " - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: openapi path: openapi.json @@ -253,9 +253,9 @@ jobs: - { distro: arch, arch: amd64, runner: ubuntu-24.04, artifact: arch-pkg } runs-on: ${{ matrix.runner }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: ${{ matrix.artifact }} path: pkg @@ -265,7 +265,7 @@ jobs: - name: Upload logs if: always() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: packaging-logs-${{ matrix.artifact }} path: target/e2e/${{ matrix.distro }}/logs @@ -274,7 +274,7 @@ jobs: - name: Mark the package verified run: echo "${{ matrix.artifact }} passed its install test at ${{ github.sha }}" > verified.txt - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: verified-${{ matrix.artifact }} path: verified.txt @@ -288,7 +288,7 @@ jobs: runs-on: ubuntu-latest steps: # One directory per artifact, so a package can be matched to its marker. - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: path: downloaded @@ -327,7 +327,7 @@ jobs: # The hand-written entry for this version, if CHANGELOG.md has one. Falls # back to GitHub's generated commit list, which is better than nothing but # says little to someone deciding whether to upgrade. - - uses: actions/checkout@v4 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 with: { path: src } - name: Extract release notes diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3162e2..0851f66 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,7 @@ jobs: --health-retries=5 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Generate JWT keys run: bash scripts/generate-jwt-keys.sh @@ -79,18 +79,18 @@ jobs: ffmpeg - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable with: toolchain: ${{ matrix.rust }} - name: Cache cargo registry - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/git key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} @@ -102,7 +102,7 @@ jobs: run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - name: Cache cargo build - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: target key: ${{ runner.os }}-${{ env.FFMPEG_KEY }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} @@ -184,7 +184,7 @@ jobs: --health-retries=10 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Generate JWT keys run: bash scripts/generate-jwt-keys.sh @@ -198,10 +198,10 @@ jobs: ffmpeg - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable - name: Cache cargo registry - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} @@ -213,7 +213,7 @@ jobs: run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - name: Cache cargo build - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: target key: ${{ runner.os }}-${{ env.FFMPEG_KEY }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} @@ -246,7 +246,7 @@ jobs: name: Rustfmt & Clippy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 # clippy compiles the crate, so ffmpeg-sys-next needs the dev libraries. - name: Install FFmpeg development libraries @@ -257,7 +257,7 @@ jobs: libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable with: components: rustfmt, clippy @@ -304,7 +304,7 @@ jobs: --health-retries=5 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Generate JWT keys run: bash scripts/generate-jwt-keys.sh @@ -318,23 +318,23 @@ jobs: ffmpeg - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable with: components: llvm-tools-preview - name: Install cargo-llvm-cov - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@ab49d3c64680143e184118bed66a46419fc15519 # v2.90.5 with: tool: cargo-llvm-cov - name: Cache cargo registry - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} - name: Cache cargo index - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/git key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} @@ -376,13 +376,13 @@ jobs: name: Security audit runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable - name: Install cargo-audit and cargo-deny - uses: taiki-e/install-action@v2 + uses: taiki-e/install-action@ab49d3c64680143e184118bed66a46419fc15519 # v2.90.5 with: tool: cargo-audit,cargo-deny @@ -404,7 +404,7 @@ jobs: name: OpenAPI compatibility runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install FFmpeg/OpenSSL dev libraries run: | @@ -414,7 +414,7 @@ jobs: libavutil-dev libavformat-dev libavfilter-dev \ libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - - uses: dtolnay/rust-toolchain@stable + - uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable # Build caches hold objects compiled against this runner's FFmpeg. When # GitHub moves ubuntu-latest to a new release, an old cache links against @@ -422,7 +422,7 @@ jobs: - name: Key the build cache to this FFmpeg run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - - uses: Swatinem/rust-cache@v2 + - uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3 with: key: ${{ env.FFMPEG_KEY }} @@ -462,7 +462,7 @@ jobs: --health-retries=5 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install FFmpeg development libraries run: | @@ -472,10 +472,10 @@ jobs: libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable - name: Cache cargo registry - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} @@ -487,7 +487,7 @@ jobs: run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - name: Cache cargo build - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: target key: ${{ runner.os }}-${{ env.FFMPEG_KEY }}-cargo-parity-${{ hashFiles('**/Cargo.lock') }} @@ -541,7 +541,7 @@ jobs: --health-retries=30 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install FFmpeg development libraries run: | @@ -551,10 +551,10 @@ jobs: libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable - name: Cache cargo registry - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} @@ -566,7 +566,7 @@ jobs: run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - name: Cache cargo build - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: target key: ${{ runner.os }}-${{ env.FFMPEG_KEY }}-cargo-parity-${{ hashFiles('**/Cargo.lock') }} @@ -606,7 +606,7 @@ jobs: --health-retries=5 steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 - name: Install FFmpeg development libraries run: | @@ -616,10 +616,10 @@ jobs: libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev - name: Install Rust - uses: dtolnay/rust-toolchain@stable + uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable - name: Cache cargo registry - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: ~/.cargo/registry key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} @@ -631,7 +631,7 @@ jobs: run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV" - name: Cache cargo build - uses: actions/cache@v5 + uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0 with: path: target key: ${{ runner.os }}-${{ env.FFMPEG_KEY }}-cargo-parity-${{ hashFiles('**/Cargo.lock') }}