From 52ab97c939a8dce27524e901858c4992cd192d6c Mon Sep 17 00:00:00 2001 From: andig Date: Sun, 16 Aug 2026 12:15:58 +0200 Subject: [PATCH] chore: make the restored docker cache mounts writable (#32882) --- .github/actions/docker-cache/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/docker-cache/action.yml b/.github/actions/docker-cache/action.yml index 250fecf31..e543a5469 100644 --- a/.github/actions/docker-cache/action.yml +++ b/.github/actions/docker-cache/action.yml @@ -32,6 +32,12 @@ runs: ${{ runner.os }}-docker-mounts-${{ inputs.cache-scope }}- ${{ runner.os }}-docker-mounts-main- + # the go module cache restores read-only, which fails the dance's cleanup + # of the source directory after injection + - name: Make cache mounts writable + shell: bash + run: test -d .docker-cache && chmod -R u+w .docker-cache || true + - name: Inject cache mounts uses: reproducible-containers/buildkit-cache-dance@5422eac04292c961a382e0f584ea0f03ad9da723 # v3.4.0 with: