Set minimum required permissions on GitHub Actions workflows. (#10004)

This commit is contained in:
neilnaveen 2022-06-29 03:43:37 -05:00 committed by GitHub
parent 921a9617ba
commit f00d28e2bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 0 deletions

View File

@ -20,6 +20,9 @@ on:
- 'COPYING'
- 'makefile'
permissions:
contents: read
jobs:
build-linux:
runs-on: ubuntu-latest

View File

@ -18,6 +18,9 @@ on:
- 'COPYING'
- 'makefile'
permissions:
contents: read
jobs:
build-macos:
runs-on: macOS-latest

View File

@ -18,6 +18,9 @@ on:
- 'COPYING'
- 'makefile'
permissions:
contents: read
jobs:
build-windows-gcc:

View File

@ -10,6 +10,9 @@ on:
- '.github/**'
- 'docs/**'
permissions:
contents: read
jobs:
build-docs:
runs-on: ubuntu-latest

View File

@ -14,6 +14,9 @@ on:
- 'hash/*'
- 'plugins/**'
permissions:
contents: read
jobs:
validate:
runs-on: ubuntu-latest

View File

@ -10,6 +10,9 @@ on:
- '.github/**'
- 'language/**'
permissions:
contents: read
jobs:
build-language:
runs-on: ubuntu-latest