Use a GitHub App token in all Radius workflows #8952
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: radius-bot | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
radius-bot: | |
name: Run Radius Bot script | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github/scripts/radius-bot.js | |
sparse-checkout-cone-mode: false | |
- name: Comment analyzer | |
uses: actions/github-script@v7 | |
env: | |
TEAM_SLUG: 'approvers-radius' | |
with: | |
github-token: ${{ secrets.GH_RAD_CI_BOT_PAT }} | |
script: | | |
const script = require('./.github/scripts/radius-bot.js') | |
await script({github, context}) |