From 8ee58ab7d4e6f3deae58d7e9cbf4d1e3f5f07ac2 Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Thu, 19 Nov 2026 20:50:28 -0800 Subject: [PATCH] Stop approving Dependabot PRs with GITHUB_TOKEN main requires no approving review, so the approval does nothing for the merge. Once the org stops letting Actions approve pull requests, the step fails and the job stops before it turns on auto-merge. Auto-merge stays as it is. --- .github/workflows/dependabot-auto-merge.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 72dfaf7e0..651a105e0 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -1,6 +1,6 @@ name: Dependabot Auto-Merge -# Approves and enables auto-merge for Dependabot's patch and minor bumps, after +# Enables auto-merge for Dependabot's patch and minor bumps, after # refreshing the flake's vendorHash when the bump moved go.sum. # # A Go bump changes go.sum and leaves nix/package.nix's vendorHash stale, so @@ -78,18 +78,6 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} # CI is the safety gate — auto-merging action updates is circular. - - name: Approve patch and minor updates (excluding actions) - if: >- - ( - steps.metadata.outputs.update-type == 'version-update:semver-patch' || - steps.metadata.outputs.update-type == 'version-update:semver-minor' - ) && - steps.metadata.outputs.package-ecosystem != 'github_actions' - run: gh pr review --approve "$PR_URL" - env: - PR_URL: ${{ github.event.pull_request.html_url }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Enable auto-merge for patch and minor updates (excluding actions) if: >- (