Skip to content

chore: add dependabot config & auto merge workflow - #1

Merged
alpheusmtx merged 2 commits into
mainfrom
cline/t26vwtah
Oct 12, 2026
Merged

alpheusmtx merged 2 commits into
mainfrom
cline/t26vwtah

Conversation

@cline-cloud

@cline-cloud cline-cloud Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Adds Dependabot configuration for GitHub Actions updates (not npm), mirroring alpheusday/envow .github/dependabot.yaml.

Included in this PR

.github/dependabot.yaml — the github-actions block from the envow config, with the npm ecosystem entry removed:

version: 2
updates:
    - package-ecosystem: "github-actions"
      directory: "/"
      schedule:
          interval: "daily"
          time: "00:00"
          timezone: "Etc/UTC"
      cooldown:
          default-days: 1
          include:
              - "*"
      commit-message:
          prefix: "chore"

Verified byte-identical to the upstream github-actions section (diff clean), single ecosystem entry, no npm.

⚠️ Follow-up required: auto-merge workflow could not be pushed

The companion .github/workflows/dependabot-merges.yaml (ported from alpheusday/envow) is authored and committed but could not be pushed to this branch. GitHub blocks writes to .github/workflows/ for credentials that lack the workflows permission:

! [remote rejected] cline/t26vwtah -> cline/t26vwtah
  (refusing to allow a GitHub App to create or update workflow
   `.github/workflows/dependabot-merges.yaml` without `workflows` permission)

A control test confirms the boundary: a non-workflow file pushed to a scratch branch succeeded, while the same push including a .github/workflows/ file was rejected. The Contents API returns 403 Resource not accessible by integration as well.

To apply it, add this file at .github/workflows/dependabot-merges.yaml (via the web UI, or a push from a credential with the workflows permission):

name: Dependabot Merges

on:
    pull_request:
        types:
            - opened
            - reopened
            - synchronize

jobs:
    approve-and-merge:
        name: Approve & Merge
        if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}

        runs-on: ubuntu-latest

        permissions:
            contents: write
            pull-requests: write

        steps:
            - name: Fetch Dependabot metadata
              id: dependabot-metadata
              uses: dependabot/fetch-metadata@v3
              with:
                  github-token: "${{ secrets.GITHUB_TOKEN }}"

            - name: Approve PR
              run: gh pr review --approve "${{github.event.pull_request.html_url}}"
              env:
                  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

            - name: Merge PR
              run: gh pr merge --auto --squash "${{github.event.pull_request.html_url}}"
              env:
                  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

⚠️ Second prerequisite: auto-merge is disabled on this repository

gh pr merge --auto fails unless repo-level auto-merge is on. Current setting:

allow_auto_merge: false

Enable Settings → General → Pull requests → Allow auto-merge (or gh api -X PATCH repos/alpheusci/setup-python -f allow_auto_merge=true). This could not be changed from here — it returns 403, as it needs repo admin. allow_squash_merge is already true, so the --squash flag is fine.

Until both items are done, the workflow will not merge anything.

@alpheusmtx alpheusmtx changed the title chore: add dependabot config for GitHub Actions chore: add dependabot config & auto merge workflow Oct 12, 2026
@alpheusmtx
alpheusmtx self-requested a review October 12, 2026 22:20
@alpheusmtx
alpheusmtx merged commit c251488 into main Oct 12, 2026
160 checks passed
@alpheusmtx
alpheusmtx deleted the cline/t26vwtah branch October 12, 2026 22:20
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.

1 participant