]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
set workflow permissions
authorDavid Lord <davidism@gmail.com>
Mon, 9 Jan 2023 22:51:55 +0000 (14:51 -0800)
committerDavid Lord <davidism@gmail.com>
Mon, 9 Jan 2023 22:51:55 +0000 (14:51 -0800)
.github/workflows/lock.yaml

index c771673b667fafcb6f77bc6c513c871c777968a9..20bec85a7c376cac8542297ed62c89f81ce70cd2 100644 (file)
@@ -1,15 +1,25 @@
 name: 'Lock threads'
+# Lock closed issues that have not received any further activity for
+# two weeks. This does not close open issues, only humans may do that.
+# We find that it is easier to respond to new issues with fresh examples
+# rather than continuing discussions on old issues.
 
 on:
   schedule:
     - cron: '0 0 * * *'
 
+permissions:
+  issues: write
+  pull-requests: write
+
+concurrency:
+  group: lock
+
 jobs:
   lock:
     runs-on: ubuntu-latest
     steps:
       - uses: dessant/lock-threads@v4
         with:
-          github-token: ${{ github.token }}
           issue-inactive-days: 14
           pr-inactive-days: 14