set workflow permissions
This commit is contained in:
parent
3812a52e96
commit
9da947a279
1 changed files with 11 additions and 4 deletions
15
.github/workflows/lock.yaml
vendored
15
.github/workflows/lock.yaml
vendored
|
|
@ -1,18 +1,25 @@
|
||||||
# This does not automatically close "stale" issues. Instead, it locks closed issues after 2 weeks of no activity.
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
name: 'Lock threads'
|
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:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: lock
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lock:
|
lock:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v4
|
- uses: dessant/lock-threads@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{ github.token }}
|
|
||||||
issue-inactive-days: 14
|
issue-inactive-days: 14
|
||||||
pr-inactive-days: 14
|
pr-inactive-days: 14
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue