Set token permissions to workflows (#3156)

Signed-off-by: Joyce <joycebrum@google.com>
This commit is contained in:
Joyce 2023-03-08 13:27:09 -03:00 committed by GitHub
parent 204812694c
commit cd2082e058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -22,9 +22,13 @@ on:
branches:
- main
permissions: read-all
jobs:
linux:
runs-on: ${{matrix.os.genus}}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
@ -101,6 +105,8 @@ jobs:
macos:
runs-on: ${{matrix.os.genus}}
permissions:
contents: write
strategy:
fail-fast: false
matrix:

View File

@ -12,6 +12,8 @@ on:
branches:
- main
permissions: read-all
jobs:
linux:
runs-on: ${{matrix.os}}