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
12 changes: 11 additions & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ on:
required: false
type: boolean
default: true
secrets:
automerge_pat:
description: >-
Optional PAT used to enable auto-merge. When set, the eventual
server-side merge commit is attributed to the PAT owner, so the
caller repo's push workflows (CI, deploys) fire on bot merges —
GITHUB_TOKEN-attributed merges trigger nothing (GitHub recursion
guard). Cross-org callers MUST map this explicitly; `secrets:
inherit` is a silent no-op across orgs.
required: false
# GITHUB_TOKEN is automatically passed to reusable workflows; no need to declare.

jobs:
Expand Down Expand Up @@ -42,4 +52,4 @@ jobs:
run: gh pr merge --auto --${{ inputs.merge_method }} "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.automerge_pat || secrets.GITHUB_TOKEN }}