Update dependabot-batcher to use GitHub app for authentication (#20342)

This commit is contained in:
Mike Jensen 2023-01-23 06:42:39 -07:00 committed by GitHub
parent b94edcf450
commit 2235827c0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'