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: on:
push: push:
branches: [main] branches: [main]
@ -20,6 +22,9 @@ jobs:
clippy: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy name: ${{ matrix.toolchain }} / clippy
permissions:
contents: read
checks: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:

View file

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

View file

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

View file

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

View file

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