Skip to content

ci: use the shared Dependabot auto-merge gate, add a 7-day cooldown - #19

Merged
loks0n merged 2 commits into
mainfrom
ci/dependabot-shared-gate
Oct 28, 2026
Merged

loks0n merged 2 commits into
mainfrom
ci/dependabot-shared-gate

Conversation

@loks0n

@loks0n loks0n commented Oct 28, 2026

Copy link
Copy Markdown
Member

Replaces this repo's dependabot-auto-merge.yml with a call to the shared workflow from appwrite/.github#132, pinned to its merge commit.

The shared gate runs after each workflow a PR triggers, from the default branch, so a PR can't change it. For a Dependabot patch or minor update it waits for every workflow run, check run and commit status on the exact head SHA, approves when all of them pass, and merges with --match-head-commit. Majors and failures stay for a human. Because it merges directly, the repo doesn't need Allow auto-merge or required status checks.

Adds cooldown: default-days: 7 to every update entry, matching appwrite/appwrite, so a release is a week old before Dependabot proposes it. That gives a compromised release time to get yanked before it's auto-merged. Security updates ignore cooldown.

Part of fixing Dependabot auto-merge across both orgs: 0 bot merges in 30 days, 266 open PRs.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hansi-codes

hansi-codes Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The workflow-runs permission raised in the open finding is now present, and this incremental change introduces no remaining issue.

This pull request replaces the repository-local Dependabot auto-merge job with a pinned shared workflow invoked after CI completes, and adds a seven-day cooldown to npm and GitHub Actions updates. The shared gate evaluates checks on the exact Dependabot commit before approving and merging eligible patch and minor updates.

Latest changes: The newest commit grants the workflow actions: read permission so the shared gate can inspect workflow runs.

Verdict New comments Fixed Still open
✅ Approved 0 1 0
📂 Walkthrough · 2
File Change
.github/dependabot.yml Adds a seven-day cooldown for npm and GitHub Actions version updates.
.github/workflows/dependabot-auto-merge.yml Invokes the pinned shared auto-merge workflow after CI completes, with permissions for reading workflow runs, checks, and statuses and updating pull requests.
✅ Fixed since the last review · 1
  • Grant read access to Actions workflow runs · .github/workflows/dependabot-auto-merge.yml:13

Reviewed the commits since 41bb480 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Tier B · 1 blocking finding to address. Summary

The shared gate lists the commit's workflow runs, which needs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@loks0n
loks0n merged commit 37f459e into main Oct 28, 2026
2 checks passed
@loks0n
loks0n deleted the ci/dependabot-shared-gate branch October 28, 2026 13:32
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