Swap from the Lock GH App to lock-threads GH Action

The Lock App [is unhealthy][1]. GitHub Actions now has [a better
security model][2] such that we think we can safely use it.

The time of day to run the action was randomly generated.

[1]: https://github.com/dessant/lock-threads-app/issues/2
[2]: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
This commit is contained in:
Eric Anderson 2021-06-02 15:26:56 -07:00 committed by Eric Anderson
parent 087d7bc7d5
commit 01a6364b05
2 changed files with 20 additions and 2 deletions

2
.github/lock.yml vendored
View File

@ -1,2 +0,0 @@
daysUntilLock: 90
lockComment: false

20
.github/workflows/lock.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: 'Lock Threads'
on:
workflow_dispatch:
schedule:
- cron: '37 3 * * *'
permissions:
issues: write
pull-requests: write
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: 90
pr-lock-inactive-days: 90