From 2235827c0e567eed43db5310cb83bdec6e2e27bf Mon Sep 17 00:00:00 2001 From: Mike Jensen Date: Mon, 23 Jan 2023 06:42:39 -0700 Subject: [PATCH] Update dependabot-batcher to use GitHub app for authentication (#20342) --- .github/workflows/dependabot-batcher.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dependabot-batcher.yaml b/.github/workflows/dependabot-batcher.yaml index 803673dba14..22a677f306d 100644 --- a/.github/workflows/dependabot-batcher.yaml +++ b/.github/workflows/dependabot-batcher.yaml @@ -10,18 +10,21 @@ on: workflow_dispatch: schedule: - cron: '0 21 * * 0' # At 9:00 PM every Sunday UTC - -permissions: - pull-requests: write - contents: write - + jobs: dependabot-batcher: name: 'Combine Dependabot PRs' runs-on: ubuntu-latest steps: + - name: Generate GitHub Token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: 'Dependabot Batcher' uses: Legal-and-General/dependabot-batcher@v1.0.2 with: - token: ${{ secrets.GITHUB_TOKEN }} #required + token: ${{ steps.generate_token.outputs.token }} #required baseBranchName: 'master'