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:
parent
4c8ad1fbaf
commit
125210c108
2 changed files with 6 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -35,6 +35,9 @@ on:
|
|||
- 'windows/**'
|
||||
- 'man/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
|
||||
|
|
3
.github/workflows/nightly.yml
vendored
3
.github/workflows/nightly.yml
vendored
|
@ -4,6 +4,9 @@ on:
|
|||
schedule:
|
||||
- cron: '53 7 * * *'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
|
||||
|
|
Loading…
Reference in a new issue