Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a74f71c

Browse files
committed
set workflow permissions
1 parent c5c2ff5 commit a74f71c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/lock.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
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.
26

37
on:
48
schedule:
59
- cron: '0 0 * * *'
610

11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
15+
concurrency:
16+
group: lock
17+
718
jobs:
819
lock:
920
runs-on: ubuntu-latest
1021
steps:
11-
- uses: dessant/lock-threads@v3
22+
- uses: dessant/lock-threads@v4
1223
with:
13-
github-token: ${{ github.token }}
1424
issue-inactive-days: 14
1525
pr-inactive-days: 14

0 commit comments

Comments
 (0)