Skip to content

Commit

Permalink
ci(workflows): [no-response] use bot token
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Apr 12, 2024
1 parent cfa5e8d commit 647ffca
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issue_comment
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#schedule
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issue_comment
# - https://github.com/actions/create-github-app-token
# - https://github.com/lee-dohm/no-response

---
Expand All @@ -18,12 +19,16 @@ on:
schedule:
# five minutes after the hour, every hour
- cron: 5 * * * *
permissions:
issues: write
jobs:
no-response:
runs-on: ubuntu-latest
steps:
- id: bot-token
name: Get bot token
uses: actions/[email protected]
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
- id: close-issues
name: Closes issues missing actionable info
uses: lee-dohm/[email protected]
Expand All @@ -35,4 +40,4 @@ jobs:
you have or find the answers needed so next steps, if any, can be determined.
daysUntilClose: 14
responseRequiredLabel: status:awaiting-answers
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.bot-token.outputs.token }}

0 comments on commit 647ffca

Please sign in to comment.