From aaaab39d76ef63ab6450979048f87a95f31cd12e Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Thu, 3 Dec 2026 19:01:16 +0700 Subject: [PATCH] ci: auto-merge Dependabot PRs with the reusable workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit auto-merge.yaml never merged a Dependabot pull request. Its job runs only for events Dependabot triggers, but the workflow starts on pull request reviews, which people submit, and on runs of a "♾️ Compatibility Check" workflow that this repository doesn't have. Its merge step also asks Dependabot to merge with an @dependabot merge comment, a command GitHub stopped supporting on 2026-01-27. Replace it with a caller of the reusable dependabot-auto-merge workflow from projectdiscovery/workflows. It runs on pull requests into dev, runs the Go compatibility checks (go mod verify, go vet, and a go.mod sync check) on the pull request's head commit, and merges only that commit through the GitHub API with GITHUB_TOKEN. The workflow no longer uses DEPENDABOT_PAT. Closes: #236 Refs: projectdiscovery/workflows#10 Signed-off-by: Dwi Siswanto --- .github/workflows/auto-merge.yaml | 33 ++++++++++--------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/.github/workflows/auto-merge.yaml b/.github/workflows/auto-merge.yaml index 302b94a..92c5c70 100644 --- a/.github/workflows/auto-merge.yaml +++ b/.github/workflows/auto-merge.yaml @@ -1,28 +1,15 @@ name: 🤖 Auto Merge on: - pull_request_review: - types: [submitted] - workflow_run: - workflows: ["♾️ Compatibility Check"] - types: - - completed - -permissions: - pull-requests: write - issues: write - repository-projects: write + pull_request: + branches: + - dev jobs: - auto-merge: - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' - steps: - - uses: actions/checkout@v7 - with: - token: ${{ secrets.DEPENDABOT_PAT }} - - - uses: ahmadnassri/action-dependabot-auto-merge@v2 - with: - github-token: ${{ secrets.DEPENDABOT_PAT }} - target: all \ No newline at end of file + dependabot: + uses: projectdiscovery/workflows/.github/workflows/dependabot-auto-merge.yaml@v1 + permissions: + contents: write + pull-requests: write + with: + go-compat-checks: true