Skip to content

Commit 7d44ba7

Browse files
committed
ci(workflows): [no-response] use bot token
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent bc8df58 commit 7d44ba7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/no-response.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issue_comment
88
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#schedule
99
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment
10+
# - https://github.com/actions/create-github-app-token
1011
# - https://github.com/lee-dohm/no-response
1112

1213
---
@@ -18,12 +19,16 @@ on:
1819
schedule:
1920
# five minutes after the hour, every hour
2021
- cron: 5 * * * *
21-
permissions:
22-
issues: write
2322
jobs:
2423
no-response:
2524
runs-on: ubuntu-latest
2625
steps:
26+
- id: bot-token
27+
name: Get bot token
28+
uses: actions/[email protected]
29+
with:
30+
app-id: ${{ secrets.BOT_APP_ID }}
31+
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
2732
- id: close-issues
2833
name: Closes issues missing actionable info
2934
uses: lee-dohm/[email protected]
@@ -35,4 +40,4 @@ jobs:
3540
you have or find the answers needed so next steps, if any, can be determined.
3641
daysUntilClose: 14
3742
responseRequiredLabel: status:awaiting-answers
38-
token: ${{ secrets.GITHUB_TOKEN }}
43+
token: ${{ steps.bot-token.outputs.token }}

0 commit comments

Comments
 (0)