mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Add permissions to all workflows (#5255)
This commit is contained in:
3
.github/workflows/mypy_primer.yml
vendored
3
.github/workflows/mypy_primer.yml
vendored
@@ -4,6 +4,9 @@ on:
|
||||
# Only run on PR, since we diff against master
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
mypy_primer:
|
||||
name: Run
|
||||
|
||||
3
.github/workflows/mypy_primer_comment.yml
vendored
3
.github/workflows/mypy_primer_comment.yml
vendored
@@ -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
|
||||
|
||||
@@ -5,6 +5,10 @@ on:
|
||||
schedule:
|
||||
- cron: '0 4 * * SAT'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
stubtest:
|
||||
if: github.repository == 'python/typeshed'
|
||||
|
||||
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -4,6 +4,9 @@ on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
file-consistency:
|
||||
name: Check file consistency
|
||||
|
||||
Reference in New Issue
Block a user