Minimal token permissions

See https://github.com/tokio-rs/tokio/pull/5072
This commit is contained in:
Jon Gjengset 2023-03-11 15:08:45 -08:00
parent 9afb0e111a
commit a076ec1cb4
5 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,5 @@
permissions:
contents: read
on:
push:
branches: [main]
@ -20,6 +22,9 @@ jobs:
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
permissions:
contents: read
checks: write
strategy:
fail-fast: false
matrix:

View file

@ -1,3 +1,5 @@
permissions:
contents: read
on:
push:
branches: [main]

View file

@ -1,3 +1,5 @@
permissions:
contents: read
on:
push:
branches: [main]

View file

@ -1,3 +1,5 @@
permissions:
contents: read
on:
push:
branches: [main]

View file

@ -1,3 +1,5 @@
permissions:
contents: read
on:
push:
branches: [main]