Skip to content

ci: auto-merge Dependabot PRs without a PAT - #2033

Merged
Mzack9999 merged 1 commit into
devfrom
dwisiswant0/ci/auto-merge-dependabot-prs-without-a-pat
Nov 21, 2026
Merged

Mzack9999 merged 1 commit into
devfrom
dwisiswant0/ci/auto-merge-dependabot-prs-without-a-pat

Conversation

@dwisiswant0

Copy link
Copy Markdown
Member

Proposed changes

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,
even after compat-checks.yaml passes. The workflow was disabled on
2026-10-24 to retire the token.

Replace both files with one caller of the reusable dependabot-auto-merge
workflow from projectdiscovery/workflows. It merges through the GitHub
API with GITHUB_TOKEN, runs the same compatibility checks on the pull
request's head commit, and merges only that commit.

When go.mod is out of sync, the checks now fail instead of pushing a go
mod tidy commit to the Dependabot branch. That last happened in April
2025, in #1256.

The caller is a new file because GitHub keeps a disabled workflow
disabled at its path.

Closes: #2032
Refs: projectdiscovery/workflows#10

Proof

actionlint 1.7.12 reports no issues in the new caller. On dev at 0fc3a93, the compatibility checks pass with Go 1.27.4 in a Linux sandbox: go mod download, go mod verify, go vet ./..., and an unchanged go.mod.

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works (N/A)
  • I have added necessary documentation (if appropriate) (N/A)

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,
even after compat-checks.yaml passes. The workflow was disabled on
2026-10-24 to retire the token.

Replace both files with one caller of the reusable dependabot-auto-merge
workflow from projectdiscovery/workflows. It merges through the GitHub
API with GITHUB_TOKEN, runs the same compatibility checks on the pull
request's head commit, and merges only that commit.

When go.mod is out of sync, the checks now fail instead of pushing a go
mod tidy commit to the Dependabot branch. That last happened in April
2025, in #1256.

The caller is a new file because GitHub keeps a disabled workflow
disabled at its path.

Closes: #2032
Refs: projectdiscovery/workflows#10
Signed-off-by: Dwi Siswanto <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 3

  • .github/workflows/compat-checks.yaml is excluded by !**/*.yaml
  • .github/workflows/dep-auto-merge.yml is excluded by !**/*.yml
  • .github/workflows/dependabot-auto-merge.yaml is excluded by !**/*.yaml

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: c976f086-abfe-42a3-bbdf-18d9dc82e43b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@Mzack9999
Mzack9999 merged commit 732936b into dev Nov 21, 2026
4 checks passed
@Mzack9999
Mzack9999 deleted the dwisiswant0/ci/auto-merge-dependabot-prs-without-a-pat branch November 21, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependabot PRs no longer merge automatically

2 participants