Add permissions to all workflows (#5255)

This commit is contained in:
Sebastian Rittau
2021-04-26 16:51:35 +02:00
committed by GitHub
parent a98e3e3ff9
commit 7ca219f9c4
4 changed files with 13 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ on:
# Only run on PR, since we diff against master
pull_request:
permissions:
contents: read
jobs:
mypy_primer:
name: Run

View File

@@ -8,6 +8,9 @@ on:
# commit, wait till it's completed, and download and post the diff.
pull_request_target:
permissions:
contents: read
jobs:
mypy_primer:
name: Comment

View File

@@ -5,6 +5,10 @@ on:
schedule:
- cron: '0 4 * * SAT'
permissions:
contents: read
pull-requests: write
jobs:
stubtest:
if: github.repository == 'python/typeshed'

View File

@@ -4,6 +4,9 @@ on:
push:
pull_request:
permissions:
contents: read
jobs:
file-consistency:
name: Check file consistency