Skip to content

chore: drop automation-sa-sre from CODEOWNERS and the AI review workflow - #925

Merged
Kamirus merged 1 commit into
mainfrom
chore/drop-automation-sa-sre
Nov 20, 2026
Merged

Kamirus merged 1 commit into
mainfrom
chore/drop-automation-sa-sre

Conversation

@Kamirus

@Kamirus Kamirus commented Nov 19, 2026

Copy link
Copy Markdown
Collaborator

The automation-sa-sre service account has no role left on mops. AI reviews approve as the caffeine-ci-ai-reviewer App since #920, and its token secret is gone from the repo.

  • CODEOWNERS no longer requests its review on every PR. No ruleset requires code owner review, so this changes only who gets auto-requested.
  • The workflow dismisses stale approvals from the App only. No open PR holds an approval from the service account, and once it loses write access, an old approval of its would not count toward the rule anyway.

The matching infra change drops its maintain access on this repo.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kamirus
Kamirus requested review from a team and automation-sa-sre as code owners November 19, 2026 20:46
@github-actions

Copy link
Copy Markdown
Contributor

Cursor AI review

👍 APPROVE — looks safe to merge

Category Assessment Details
Summary ✅ Removes the retired automation-sa-sre account from the catch-all CODEOWNERS rule and from the AI review workflow’s stale-approval dismissal filter. Approvals are still submitted and dismissed only as the AI reviewer App.
Code Quality ✅ The two-login list in the “Submit or dismiss GitHub approval” step is replaced by a direct login comparison. No new helper or behavior beyond dropping that account.
Consistency ✅ The workflow header comment matches the App-only rate-limit note. Dismissal still requires APPROVED, the App login, and the <!-- cursor-ai-review-approval --> marker, the same marker the submit path writes.
Security ✅ Read .github/workflows/ai-pr-review.yml end to end. permissions stay contents: read and pull-requests: write; on: pull_request is unchanged; the draft, same-repo, non-fork, dependabot, and skip-ai-review guard is unchanged (lines 37–47). App token minting (lines 409–424) is unchanged. The dismiss/submit step (lines 426–506) still approves only when the verdict is APPROVE, as REVIEWER_LOGIN (app-slug[bot]), and dismisses every other verdict only for reviews that are APPROVED, from that login, and contain the approval marker. A repo search shows automation-sa-sre only in the removed hunks.
Tests ✅ No product or snapshot tests apply. The changed predicate is the inline filter at lines 467–471; this workflow has no separate test harness, and the App login plus marker checks are the same path that submits the approval.
Maintainability ✅ One retired identity is gone from CODEOWNERS and from the dismissal special case, so later edits of this gate have a single approver login.

Verdict

Decision: APPROVE
Risk: Very Low
Reason: The change only stops requesting and auto-dismissing a retired service account. The App’s verdict-gated approval, stale-dismissal for that App, permissions, and fork/draft gates are unchanged.


Generated for commit 65f776a

@caffeine-ci-ai-reviewer caffeine-ci-ai-reviewer 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.

Automated approval: the AI review verdict for 65f776a is APPROVE. See the "Cursor AI review" comment for details.

@Kamirus
Kamirus merged commit c27854b into main Nov 20, 2026
22 checks passed
@Kamirus
Kamirus deleted the chore/drop-automation-sa-sre branch November 20, 2026 13:52
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