Skip to content

feat: Allow sentry-junior[bot] to approve releases - #9786

Merged
BYK merged 2 commits into
mainfrom
feat/allow-junior-bot-approvals
Oct 6, 2026
Merged

BYK merged 2 commits into
mainfrom
feat/allow-junior-bot-approvals

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

#9693 rejects accepted labels from every [bot] account except sentry-internal-app[bot]. That broke Junior's release flow: on #9771, sentry-junior[bot] added accepted and the workflow removed it, so a human had to approve the release by hand.

This adds an allowlist of trusted Sentry-operated release bots, which can approve any valid getsentry publish target. For now sentry-junior[bot] is the only entry. Other bots are still rejected, and malformed repos or publish paths still fail before the allowlist is checked. The rest of #9693 stays as-is: per-target authorization for humans, revalidation before ci-ready, and revoking stranded labels. Every approval check (publish.yml and ci-poller.yml) goes through authorizeApproval, so all of them pick up the allowlist.

Refs #9772

via David Cramer.

--

View Junior Session [Sentry]

@dcramer
dcramer requested a review from BYK October 6, 2026 20:29
Comment thread src/modules/approval-authorizer.js Resolved
@sentry-junior sentry-junior Bot changed the title feat: Allow sentry-junior[bot] to approve releases for its managed repos feat: Allow sentry-junior[bot] to approve releases Oct 6, 2026
@dcramer
dcramer marked this pull request as ready for review October 6, 2026 21:30
@dcramer
dcramer requested a review from a team as a code owner October 6, 2026 21:30

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ideally we'd extend our write-access check to bots too but let's go with this for now.

@BYK
BYK merged commit caecd9a into main Oct 6, 2026
14 checks passed
@BYK
BYK deleted the feat/allow-junior-bot-approvals branch October 6, 2026 21:34
BYK added a commit that referenced this pull request Oct 7, 2026
…9797)

## Summary

- Accept `getsantry[bot]` approvals for exact `auto-approve-repos.txt`
repository/path entries; reject other targets, including changed
requests.
- Require the exact GitHub bot login, stable numeric actor ID, and `Bot`
type for both Getsantry and Junior at the initial label event and
subsequent live-event checks. GitHub issue label events expose actor IDs
but no performing-App/installation ID.
- Retain Junior's existing target scope and human write/admin checks.

## Validation

- Fail-first regressions covered the #9788 Getsantry event,
swapped/missing bot IDs, lookalike actors, changed targets, and
malformed paths.
- `pnpm test -- --printConsoleTrace`: 18 files, 148 tests passed.
- `pnpm lint`, Prettier checks, generated-parser check, workflow YAML
parsing, and `git diff --check` passed.

Fixes #9772
Refs #9788, #9786
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.

2 participants