summaryrefslogtreecommitdiff
path: root/.github/workflows/autobot.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/autobot.yaml')
-rw-r--r--.github/workflows/autobot.yaml15
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 }}