From 3563c178ca7d45d028c095b2a3ba35ee28294eea Mon Sep 17 00:00:00 2001 From: pennae Date: Tue, 28 Feb 2023 21:49:32 +0100 Subject: [PATCH] workflows: pin install-nix-action to use nix 2.13.3 same reasoning as #218858, only now for an action we depend on and can't fix quite as easily. cachix-action also uses nix-env and will thus not work correctly, so pin the nix version used to the last known good one. --- .github/workflows/basic-eval.yml | 2 ++ .github/workflows/editorconfig.yml | 1 + .github/workflows/manual-nixos.yml | 1 + .github/workflows/manual-nixpkgs.yml | 1 + .github/workflows/manual-rendering.yml | 1 + .github/workflows/update-terraform-providers.yml | 1 + 6 files changed, 7 insertions(+) diff --git a/.github/workflows/basic-eval.yml b/.github/workflows/basic-eval.yml index fcc07b633b3..1199a699c74 100644 --- a/.github/workflows/basic-eval.yml +++ b/.github/workflows/basic-eval.yml @@ -20,6 +20,8 @@ jobs: steps: - uses: actions/checkout@v3 - uses: cachix/install-nix-action@v19 + with: + install_url: https://releases.nixos.org/nix/nix-2.13.3/install - uses: cachix/cachix-action@v12 with: # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere. diff --git a/.github/workflows/editorconfig.yml b/.github/workflows/editorconfig.yml index 9c3ee597d1c..597a5bf1fa3 100644 --- a/.github/workflows/editorconfig.yml +++ b/.github/workflows/editorconfig.yml @@ -33,6 +33,7 @@ jobs: # nixpkgs commit is pinned so that it doesn't break # editorconfig-checker 2.4.0 nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c473cc8714710179df205b153f4e9fa007107ff9.tar.gz + install_url: https://releases.nixos.org/nix/nix-2.13.3/install - name: Checking EditorConfig run: | cat "$HOME/changed_files" | nix-shell -p editorconfig-checker --run 'xargs -r editorconfig-checker -disable-indent-size' diff --git a/.github/workflows/manual-nixos.yml b/.github/workflows/manual-nixos.yml index 99f14562d50..559a290ab39 100644 --- a/.github/workflows/manual-nixos.yml +++ b/.github/workflows/manual-nixos.yml @@ -22,6 +22,7 @@ jobs: with: # explicitly enable sandbox extra_nix_config: sandbox = true + install_url: https://releases.nixos.org/nix/nix-2.13.3/install - uses: cachix/cachix-action@v12 with: # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere. diff --git a/.github/workflows/manual-nixpkgs.yml b/.github/workflows/manual-nixpkgs.yml index 63b504f670f..fb01d7504b1 100644 --- a/.github/workflows/manual-nixpkgs.yml +++ b/.github/workflows/manual-nixpkgs.yml @@ -22,6 +22,7 @@ jobs: with: # explicitly enable sandbox extra_nix_config: sandbox = true + install_url: https://releases.nixos.org/nix/nix-2.13.3/install - uses: cachix/cachix-action@v12 with: # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere. diff --git a/.github/workflows/manual-rendering.yml b/.github/workflows/manual-rendering.yml index 5534d23416e..f54553049bb 100644 --- a/.github/workflows/manual-rendering.yml +++ b/.github/workflows/manual-rendering.yml @@ -22,6 +22,7 @@ jobs: with: # explicitly enable sandbox extra_nix_config: sandbox = true + install_url: https://releases.nixos.org/nix/nix-2.13.3/install - uses: cachix/cachix-action@v12 with: # This cache is for the nixpkgs repo checks and should not be trusted or used elsewhere. diff --git a/.github/workflows/update-terraform-providers.yml b/.github/workflows/update-terraform-providers.yml index c57102b0aa0..2808cee9155 100644 --- a/.github/workflows/update-terraform-providers.yml +++ b/.github/workflows/update-terraform-providers.yml @@ -20,6 +20,7 @@ jobs: - uses: cachix/install-nix-action@v19 with: nix_path: nixpkgs=channel:nixpkgs-unstable + install_url: https://releases.nixos.org/nix/nix-2.13.3/install - name: setup id: setup run: |