Skip to content

Commit 293f095

Browse files
authored
Merge pull request #225 from Sander0542/fix/lock-threads-workflow
fix: Add permissions to Lock Threads workflow
2 parents 3e86941 + 6e80e02 commit 293f095

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/lock.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
# DO NOT EDIT - This GitHub Workflow is managed by automation
2-
# https://github.com/hashicorp/terraform-devex-repos
31
name: 'Lock Threads'
42

53
on:
64
schedule:
7-
- cron: '43 20 * * *'
5+
- cron: '0 * * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
discussions: write
12+
13+
concurrency:
14+
group: lock-threads
815

916
jobs:
10-
lock:
17+
action:
1118
runs-on: ubuntu-latest
1219
steps:
13-
# NOTE: When TSCCR updates the GitHub action version, update the template workflow file to avoid drift:
14-
# https://github.com/hashicorp/terraform-devex-repos/blob/main/modules/repo/workflows/lock.tftpl
15-
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v5.0.1
16-
with:
17-
github-token: ${{ github.token }}
18-
issue-inactive-days: '30'
19-
issue-lock-reason: resolved
20-
pr-inactive-days: '30'
21-
pr-lock-reason: resolved
20+
- uses: dessant/lock-threads@v5

0 commit comments

Comments
 (0)