Set permissions on workflows

This commit is contained in:
Gabriel Augendre 2023-01-18 15:12:12 +01:00
parent d6cbfffa38
commit 6659d9cddd
3 changed files with 9 additions and 0 deletions

View file

@ -20,6 +20,9 @@ on:
schedule: schedule:
- cron: '35 4 * * 3' - cron: '35 4 * * 3'
permissions:
contents: read
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze

View file

@ -5,6 +5,9 @@ on:
branches: branches:
- master - master
permissions:
contents: read
jobs: jobs:
tests: tests:
uses: ./.github/workflows/test.yaml uses: ./.github/workflows/test.yaml

View file

@ -5,6 +5,9 @@ on:
pull_request: pull_request:
branches: [ "master" ] branches: [ "master" ]
permissions:
contents: read
jobs: jobs:
tests: tests:
name: Python tests name: Python tests