Merge pull request #869 from mhmdanas/add-workflow-permissions

Use minimum required permissions for GitHub workflows
This commit is contained in:
Stypox 2022-07-13 18:58:32 +02:00 committed by GitHub
commit 8c5f014a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,9 @@ on:
- master
pull_request:
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest

View File

@ -5,6 +5,10 @@ on:
branches:
- master
permissions:
# The generated docs are written to the `gh-pages` branch.
contents: write
jobs:
build-and-deploy-docs:
runs-on: ubuntu-latest