eBPF-based security platform
ci: pin actions/cache to a commit like every other action
Daniel Borkmanne6103fa6a431
diff --git a/.github/workflows/deb.yml b/.github/workflows/deb.ymlindex c1f435b7..2c1c30b2 100644--- a/.github/workflows/deb.yml+++ b/.github/workflows/deb.yml@@ -37,7 +37,7 @@ jobs:- name: Restore the LVH static target dependenciesid: lvh-target-deps- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/lvh-target-depskey: lvh-target-deps-kind-bpf-next-20260603.072225-${{ hashFiles('.github/scripts/lvh-target-deps.sh') }}@@ -134,7 +134,7 @@ jobs:- name: Save the LVH static target dependenciesif: always() && steps.lvh-target-deps.outputs.cache-hit != 'true' && hashFiles('build/lvh-target-deps/lib/libcrypto.a') != '' && hashFiles('build/lvh-target-deps/curl/lib/libcurl.a') != ''- uses: actions/cache/save@v4+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/lvh-target-depskey: ${{ steps.lvh-target-deps.outputs.cache-primary-key }}@@ -188,7 +188,7 @@ jobs:- name: Restore the LVH static target dependenciesid: lvh-target-deps- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/lvh-target-depskey: lvh-target-deps-kind-bpf-next-20260603.072225-${{ hashFiles('.github/scripts/lvh-target-deps.sh') }}@@ -229,7 +229,7 @@ jobs:- name: Save the LVH static target dependenciesif: always() && steps.lvh-target-deps.outputs.cache-hit != 'true' && hashFiles('build/lvh-target-deps/lib/libcrypto.a') != '' && hashFiles('build/lvh-target-deps/curl/lib/libcurl.a') != ''- uses: actions/cache/save@v4+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/lvh-target-depskey: ${{ steps.lvh-target-deps.outputs.cache-primary-key }}diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 81ea6e81..a9327462 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -49,21 +49,21 @@ jobs:- name: Restore the bpf-next kernelid: kernel- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: artifacts/bpf-next-kernel-debskey: test-vm-kernel-${{ steps.week.outputs.week }}-${{ hashFiles('testing/vm/build-kernel.sh', 'testing/vm/arch.sh', 'testing/Makefile', 'kernel/*.patch') }}- name: Restore the static target dependenciesid: target-deps- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/target-depskey: target-deps-${{ hashFiles('Makefile.target-deps') }}- name: Restore the VM imagesid: images- uses: actions/cache/restore@v4+ uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/test-vm/cachekey: test-vm-images-${{ hashFiles('testing/vm/runtime-packages', 'testing/vm/prepare-runtime.sh', 'testing/vm/build-bundle.sh', 'testing/vm/arch.sh') }}@@ -78,14 +78,14 @@ jobs:# fails, so that the next run does not build it again.- name: Save the bpf-next kernelif: always() && steps.kernel.outputs.cache-hit != 'true' && hashFiles('artifacts/bpf-next-kernel-debs/bzImage.sha256sum') != ''- uses: actions/cache/save@v4+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: artifacts/bpf-next-kernel-debskey: ${{ steps.kernel.outputs.cache-primary-key }}- name: Save the static target dependenciesif: always() && steps.target-deps.outputs.cache-hit != 'true' && hashFiles('build/target-deps/lib/libcrypto.a') != '' && hashFiles('build/target-deps/curl/lib/libcurl.a') != ''- uses: actions/cache/save@v4+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/target-depskey: ${{ steps.target-deps.outputs.cache-primary-key }}@@ -95,7 +95,7 @@ jobs:# written once the image is complete.- name: Save the VM imagesif: always() && steps.images.outputs.cache-hit != 'true' && hashFiles('build/test-vm/cache/runtime/.*.key') != ''- uses: actions/cache/save@v4+ uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0with:path: build/test-vm/cachekey: ${{ steps.images.outputs.cache-primary-key }}