ci: define minimal permissions to github workflows (#1295)

Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
This commit is contained in:
Diogo Teles Sant'Anna 2023-06-19 05:53:04 -03:00 committed by GitHub
parent f6bb79e03d
commit 553eb4c7a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -20,6 +20,10 @@ on:
schedule:
- cron: '31 21 * * 6'
# Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions:
contents: read
jobs:
analyze:
name: Analyze

View File

@ -7,6 +7,10 @@ on:
- main
- 'release-*'
# Minimal permissions to be inherited by any job that don't declare it's own permissions
permissions:
contents: read
jobs:
test:
name: Tests