Set permissions for GitHub actions (#8005)

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
Naveen 2022-04-04 22:58:46 -05:00 committed by GitHub
parent 4c8ad1fbaf
commit 125210c108
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -35,6 +35,9 @@ on:
- 'windows/**' - 'windows/**'
- 'man/**' - 'man/**'
permissions:
contents: read
jobs: jobs:
linux: linux:

View file

@ -4,6 +4,9 @@ on:
schedule: schedule:
- cron: '53 7 * * *' - cron: '53 7 * * *'
permissions:
contents: read
jobs: jobs:
linux: linux: