Dependabot automerge #871
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: Dependabot automerge | |
# see https://securitylab.github.com/research/github-actions-preventing-pwn-requests/ | |
# for more details on why and how | |
on: | |
workflow_run: | |
workflows: [CI] | |
branches-ignore: [main] | |
types: [completed] | |
jobs: | |
auto-merge: | |
runs-on: ubuntu-latest | |
if: > | |
${{ | |
github.actor == 'dependabot[bot]' && | |
github.event.workflow_run.event == 'pull_request' && | |
github.event.workflow_run.conclusion == 'success' | |
}} | |
steps: | |
- name: Auto merge (dependency updates) | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MERGE_METHOD: squash | |
MERGE_LABELS: "" | |
MERGE_FILTER_AUTHOR: dependabot[bot] | |
MERGE_FORKS: false | |
MERGE_DELETE_BRANCH: true |