Skip to content

Commit 9da947a

Browse files
committed
set workflow permissions
1 parent 3812a52 commit 9da947a

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/lock.yaml

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
# This does not automatically close "stale" issues. Instead, it locks closed issues after 2 weeks of no activity.
2-
# If there's a new issue related to an old one, we've found it's much easier to work on as a new issue.
3-
41
name: 'Lock threads'
2+
# Lock closed issues that have not received any further activity for
3+
# two weeks. This does not close open issues, only humans may do that.
4+
# We find that it is easier to respond to new issues with fresh examples
5+
# rather than continuing discussions on old issues.
56

67
on:
78
schedule:
89
- cron: '0 0 * * *'
910

11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
15+
concurrency:
16+
group: lock
17+
1018
jobs:
1119
lock:
1220
runs-on: ubuntu-latest
1321
steps:
1422
- uses: dessant/lock-threads@v4
1523
with:
16-
github-token: ${{ github.token }}
1724
issue-inactive-days: 14
1825
pr-inactive-days: 14

0 commit comments

Comments
 (0)