diff options
| author | seth <[email protected]> | 2024-10-09 11:03:43 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-10-09 11:03:43 -0400 |
| commit | a973c5b9ddff092cc0aebf3992e8d5d23cffb5ab (patch) | |
| tree | 08b73e22b83229eeff29246b747ee3e4db8f57c6 /.github | |
| parent | d17bca56238e9ca326d60e58230d0d354f23bfe8 (diff) | |
ci: don't use app to merge dependabot PRs
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/autobot.yaml | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/.github/workflows/autobot.yaml b/.github/workflows/autobot.yaml index 9c7e8f6..0457591 100644 --- a/.github/workflows/autobot.yaml +++ b/.github/workflows/autobot.yaml @@ -10,23 +10,20 @@ jobs: runs-on: ubuntu-latest - steps: - - name: Generate GitHub App token - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.APP_ID }} - private-key: ${{ secrets.PRIVATE_KEY }} + permissions: + contents: write + pull-requests: write + steps: - name: Fetch metadata uses: dependabot/fetch-metadata@v2 id: metadata with: - github-token: ${{ steps.app-token.outputs.token }} + github-token: ${{ github.token }} - name: Enable auto-merge if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' }} run: gh pr merge --auto --squash "$PR" env: PR: ${{ github.event.pull_request.html_url }} - GH_TOKEN: ${{ steps.app-token.outputs.token }} + GH_TOKEN: ${{ github.token }} |
