Skip to content

Commit d1a00bf

Browse files
committed
ci/lint: explicitly define substituters
This means we don't need to rely on `--accept-flake-config`, which could be problematic if we switch from `pull_request` -> `pull_request_target`
1 parent 6d92c17 commit d1a00bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,10 @@ jobs:
2020
uses: actions/checkout@v4
2121
- name: Install Nix
2222
uses: cachix/install-nix-action@v31
23+
with:
24+
extra_nix_config: |
25+
extra-substituters = https://nix-community.cachix.org
26+
extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
27+
2328
- name: Run treefmt check
24-
run: nix build .#checks.x86_64-linux.treefmt --accept-flake-config
29+
run: nix build .#checks.x86_64-linux.treefmt

0 commit comments

Comments
 (0)