From 1363d34b21d2daa81fa6f5ceaf406d975e1bc895 Mon Sep 17 00:00:00 2001 From: Remco Vermeulen Date: Mon, 29 Jan 2024 15:36:57 -0800 Subject: [PATCH] Attempt bind mount to address cache write issues Restoring the cache currently fails with permission issues. This is an attempt to address that. --- .github/workflows/codeql.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index a29a545e1d..7bfa05e4cd 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,6 +25,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + + - name: Bind mount Nix store + run: | + mkdir "$RUNNER_TEMP/nix" + sudo mount --bind "$RUNNER_TEMP/nix" /nix + - name: Cache Nix Store uses: actions/cache@v4 id: cache