]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Restrict GITHUB_TOKEN permissions for the 'stale' workflow (GH-25564)
authorBrett Cannon <brett@python.org>
Fri, 23 Apr 2021 22:18:50 +0000 (15:18 -0700)
committerGitHub <noreply@github.com>
Fri, 23 Apr 2021 22:18:50 +0000 (15:18 -0700)
It should only need write-level permissions to pull requests.

.github/workflows/stale.yml

index 58c9a4f21c30ffe3506ad63d945dc487f37cb3a0..26806fad814f1aa8c4718fc3aa7983850b9e8a15 100644 (file)
@@ -4,6 +4,9 @@ on:
   schedule:
   - cron: "0 0 * * *"
 
+permissions:
+  pull-requests: write
+
 jobs:
   stale: