From 63976355583b0dd1b50b7690f9baf15b54eb119c Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Sat, 21 Nov 2026 10:57:07 +0700 Subject: [PATCH] ci: auto-merge Dependabot PRs without a PAT dep-auto-merge.yml approved Dependabot pull requests with a personal access token, DEPENDABOT_PAT, and asked Dependabot to merge them with an @dependabot merge comment. GitHub removed that command on 2026-01-27, so Dependabot pull requests opened here since then need a manual merge. The workflow was disabled on 2026-10-24 to retire the token. Replace it with a caller of the reusable dependabot-auto-merge workflow from projectdiscovery/workflows. It merges through the GitHub API with GITHUB_TOKEN, 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. The caller is a new file because GitHub keeps a disabled workflow disabled at its path. Closes: #347 Refs: projectdiscovery/workflows#10 Signed-off-by: Dwi Siswanto --- .github/workflows/dep-auto-merge.yml | 26 -------------------- .github/workflows/dependabot-auto-merge.yaml | 15 +++++++++++ 2 files changed, 15 insertions(+), 26 deletions(-) delete mode 100644 .github/workflows/dep-auto-merge.yml create mode 100644 .github/workflows/dependabot-auto-merge.yaml diff --git a/.github/workflows/dep-auto-merge.yml b/.github/workflows/dep-auto-merge.yml deleted file mode 100644 index 49ab83f..0000000 --- a/.github/workflows/dep-auto-merge.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: 🤖 dep auto merge - -on: - pull_request: - branches: - - main - workflow_dispatch: - -permissions: - pull-requests: write - issues: write - repository-projects: write - -jobs: - automerge: - runs-on: ubuntu-latest - if: github.actor == 'dependabot[bot]' - steps: - - uses: actions/checkout@v3 - with: - token: ${{ secrets.DEPENDABOT_PAT }} - - - uses: ahmadnassri/action-dependabot-auto-merge@v2 - with: - github-token: ${{ secrets.DEPENDABOT_PAT }} - target: all diff --git a/.github/workflows/dependabot-auto-merge.yaml b/.github/workflows/dependabot-auto-merge.yaml new file mode 100644 index 0000000..27af7d2 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yaml @@ -0,0 +1,15 @@ +name: 🔀 Auto merge PR + +on: + pull_request: + branches: + - main + +jobs: + dependabot: + uses: projectdiscovery/workflows/.github/workflows/dependabot-auto-merge.yaml@v1 + permissions: + contents: write + pull-requests: write + with: + go-compat-checks: true