Skip to content

Commit 482744c

Browse files
committed
ci: fix magic-nix-cache write permissions
1 parent 6092b37 commit 482744c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ jobs:
99
qtver: [qt6.9.2, qt6.9.1, qt6.9.0, qt6.8.3, qt6.8.2, qt6.8.1, qt6.8.0, qt6.7.3, qt6.7.2, qt6.7.1, qt6.7.0, qt6.6.3, qt6.6.2, qt6.6.1, qt6.6.0]
1010
compiler: [clang, gcc]
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
id-token: write
1215
steps:
1316
- uses: actions/checkout@v4
1417
# Use cachix action over detsys for testing with act.
1518
# - uses: cachix/install-nix-action@v27
1619
- uses: DeterminateSystems/nix-installer-action@main
1720
- uses: DeterminateSystems/magic-nix-cache-action@main
21+
with:
22+
use-flakehub: false
1823

1924
- name: Download Dependencies
2025
run: nix-build --no-out-link --expr '((import ./ci/matrix.nix) { qtver = "${{ matrix.qtver }}"; compiler = "${{ matrix.compiler }}"; }).unwrapped.inputDerivation'

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ jobs:
55
lint:
66
name: Lint
77
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
id-token: write
811
steps:
912
- uses: actions/checkout@v4
1013
# Use cachix action over detsys for testing with act.
1114
# - uses: cachix/install-nix-action@v27
1215
- uses: DeterminateSystems/nix-installer-action@main
1316
- uses: DeterminateSystems/magic-nix-cache-action@main
17+
with:
18+
use-flakehub: false
1419
- uses: nicknovitski/nix-develop@v1
1520

1621
- name: Check formatting

0 commit comments

Comments
 (0)