Skip to content

Commit a076ec1

Browse files
committed
Minimal token permissions
See tokio-rs/tokio#5072
1 parent 9afb0e1 commit a076ec1

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

.github/workflows/check.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
on:
24
push:
35
branches: [main]
@@ -20,6 +22,9 @@ jobs:
2022
clippy:
2123
runs-on: ubuntu-latest
2224
name: ${{ matrix.toolchain }} / clippy
25+
permissions:
26+
contents: read
27+
checks: write
2328
strategy:
2429
fail-fast: false
2530
matrix:

.github/workflows/nostd.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
on:
24
push:
35
branches: [main]

.github/workflows/safety.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
on:
24
push:
35
branches: [main]

.github/workflows/scheduled.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
on:
24
push:
35
branches: [main]

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
on:
24
push:
35
branches: [main]

0 commit comments

Comments
 (0)