Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ name: Dependabot auto-merge

on: pull_request

# Read-only by default; the one job that needs it grants itself the minimum below.
permissions:
contents: write # enable auto-merge on the PR
pull-requests: write # required by gh pr merge
contents: read

jobs:
auto-merge:
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
timeout-minutes: 5
# Scoped to the job, not the workflow: enabling auto-merge is a pull-request
# write, and the merge itself is performed later by GitHub, so nothing here
# needs contents: write (least privilege).
permissions:
pull-requests: write
steps:
- name: Fetch Dependabot metadata
id: meta
Expand Down