Skip to content

ci: dogfood pr-automerge-dependabot in pr-require-checks - #683

Merged
kyle-sexton merged 2 commits into
mainfrom
ci/dogfood-pr-automerge-dependabot
Oct 5, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
ci/dogfood-pr-automerge-dependabot

Conversation

@kyle-sexton

Copy link
Copy Markdown
Contributor

No related issue: found by the actions-conventions Phase 8 sanity check (16 of 17 repos passed; ci-workflows lacked an auto-merge caller).

Summary

ci-workflows is the only repository without a caller of the shared pr-automerge-dependabot reusable, so its own vendor Dependabot bumps (e.g. #674) never arm auto-merge, contrary to the org Dependabot lanes policy (standards#684). A separate caller file cannot exist here because pr-automerge-dependabot.yml is the reusable itself, so this adds a thin dogfood caller job to pr-require-checks.yml, the pattern the Claude lanes already use.

Fix

  • New job pr-automerge-dependabot in .github/workflows/pr-require-checks.yml: pull_request events only, the same action predicate as pr-review. It has job-scoped contents: write and pull-requests: write; workflow-level permissions are unchanged.
  • It is pinned to the released reusable (@fb56986… # v0.36.0), not ./, so a pull request, a Dependabot bump of an action inside the reusable included, cannot redefine the code that holds the write token.
  • ci-status does not depend on the job, because arming waits on ci-status. ci-fanout-consolidation.test.cjs now lists it among the jobs that stay out of ci-status.

Verification

  • actionlint .github/workflows/pr-require-checks.yml: exit 0.
  • node --test .github/scripts/*.test.cjs: all pass.
  • The Claude review lanes skip pull requests that edit their caller workflow (pr-require-checks.yml); a local review stands in for them.
  • To confirm after merge: the next vendor-actions Dependabot PR in this repo shows a passing pr-automerge-dependabot / … check and auto-merge armed.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 4, 2026 20:34
Arm auto-merge on this repository's own vendor Dependabot bumps through a
thin caller job, as every other repository does through its caller file.
The job runs on pull_request events only, grants write permissions at job
level, and stays out of ci-status, which the arm waits on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin the reusable to a merged SHA, as the Claude lanes are, so a Dependabot
pull request that bumps an action inside the reusable cannot run that code
with the write token before it merges. Add the job to the test that keeps
advisory jobs out of ci-status, so a dependency on it fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 5, 2026 00:36
@kyle-sexton
kyle-sexton enabled auto-merge (squash) October 5, 2026 00:36
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T00:38:54.393540Z 86447d5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kyle-sexton
kyle-sexton merged commit 92a7aa9 into main Oct 5, 2026
50 of 54 checks passed
@kyle-sexton
kyle-sexton deleted the ci/dogfood-pr-automerge-dependabot branch October 5, 2026 00:38
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