summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2021-04-23 22:18:50 (GMT)
committerGitHub <noreply@github.com>2021-04-23 22:18:50 (GMT)
commit481994078fbf61317fe35456e9a1b8a960e7dfa0 (patch)
tree1eb73daf3dd8b5172d29abbdc756cc3852b953ff /.github
parent5e437fb872279960992c9a07f1a4c051b4948c53 (diff)
downloadcpython-481994078fbf61317fe35456e9a1b8a960e7dfa0.zip
cpython-481994078fbf61317fe35456e9a1b8a960e7dfa0.tar.gz
cpython-481994078fbf61317fe35456e9a1b8a960e7dfa0.tar.bz2
Restrict GITHUB_TOKEN permissions for the 'stale' workflow (GH-25564)
It should only need write-level permissions to pull requests.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/stale.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 58c9a4f..26806fa 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -4,6 +4,9 @@ on:
schedule:
- cron: "0 0 * * *"
+permissions:
+ pull-requests: write
+
jobs:
stale: