From 01a6364b0575ea4be13c505ed7f6dad5118ba99a Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Wed, 2 Jun 2021 15:26:56 -0700 Subject: [PATCH] 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/ --- .github/lock.yml | 2 -- .github/workflows/lock.yml | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) delete mode 100644 .github/lock.yml create mode 100644 .github/workflows/lock.yml diff --git a/.github/lock.yml b/.github/lock.yml deleted file mode 100644 index 119e4840be..0000000000 --- a/.github/lock.yml +++ /dev/null @@ -1,2 +0,0 @@ -daysUntilLock: 90 -lockComment: false diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 0000000000..a1e113591a --- /dev/null +++ b/.github/workflows/lock.yml @@ -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