Skip to content

Commit d47072e

Browse files
committed
Add appropriate permissions blocks where applicable
1 parent f370cc2 commit d47072e

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
build-artifacts:
99
runs-on: ${{ matrix.systems.runner }}
1010
permissions:
11-
id-token: "write"
12-
contents: "read"
11+
id-token: write
12+
contents: read
1313
env:
1414
ARTIFACT_KEY: flake-checker-${{ matrix.systems.system }}
1515
strategy:

.github/workflows/ci.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
checks:
1010
name: Nix and Rust checks
1111
runs-on: ubuntu-24.04
12+
permissions:
13+
id-token: write
14+
contents: read
1215
steps:
1316
- uses: actions/checkout@v4
1417
- uses: DeterminateSystems/determinate-nix-action@main
@@ -27,6 +30,9 @@ jobs:
2730
rust-tests:
2831
name: Test Rust
2932
runs-on: ubuntu-24.04
33+
permissions:
34+
id-token: write
35+
contents: read
3036
steps:
3137
- uses: actions/checkout@v4
3238
- uses: DeterminateSystems/determinate-nix-action@main
@@ -37,6 +43,9 @@ jobs:
3743
check-flake-cel-condition:
3844
name: Check flake.lock test (CEL condition)
3945
runs-on: ubuntu-24.04
46+
permissions:
47+
id-token: write
48+
contents: read
4049
steps:
4150
- uses: actions/checkout@v4
4251
- uses: DeterminateSystems/determinate-nix-action@main
@@ -51,6 +60,9 @@ jobs:
5160
check-flake-dirty:
5261
name: Check flake.lock test (dirty 😈)
5362
runs-on: ubuntu-24.04
63+
permissions:
64+
id-token: write
65+
contents: read
5466
steps:
5567
- uses: actions/checkout@v4
5668
- uses: DeterminateSystems/determinate-nix-action@main
@@ -62,6 +74,9 @@ jobs:
6274
check-flake-clean:
6375
name: Check flake.lock test (clean 👼)
6476
runs-on: ubuntu-24.04
77+
permissions:
78+
id-token: write
79+
contents: read
6580
steps:
6681
- uses: actions/checkout@v4
6782
- uses: DeterminateSystems/determinate-nix-action@main
@@ -74,6 +89,9 @@ jobs:
7489
name: Check flake.lock test (dirty 😈 plus fail mode activated)
7590
runs-on: ubuntu-24.04
7691
if: false
92+
permissions:
93+
id-token: write
94+
contents: read
7795
steps:
7896
- uses: actions/checkout@v4
7997
- uses: DeterminateSystems/determinate-nix-action@main

.github/workflows/ref-statuses.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
check-ref-statuses:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
1013
steps:
1114
- uses: actions/checkout@v4
1215

.github/workflows/update-flake-lock.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
lockfile:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
1114
steps:
1215
- uses: actions/checkout@v4
1316
- uses: DeterminateSystems/determinate-nix-action@main

0 commit comments

Comments
 (0)