Skip to content

fix(ci): Scope EA features sync token to sentry-options-automator - #20838

Draft
sentry-junior[bot] wants to merge 3 commits into
masterfrom
fix/sync-ea-features-token-scope
Draft

sentry-junior[bot] wants to merge 3 commits into
masterfrom
fix/sync-ea-features-token-scope

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

The Sync Early Adopter Features workflow (sync-ea-features.yml, added in #17011) fails every time it tries to clone sentry-options-automator:

remote: Repository not found.
fatal: repository 'https://github.com/getsentry/sentry-options-automator.git/' not found

actions/create-github-app-token is called without owner/repositories, so the token it creates only covers sentry-docs. sentry-options-automator is private, so the clone returns "not found". The app is already installed on sentry-options-automator; that repo's own workflows create tokens from SENTRY_INTERNAL_APP_ID.

Changes

  • Scope the app token to getsentry/sentry-docs and getsentry/sentry-options-automator.
  • Create the token before checkout and check out with it. The sync branch is then pushed by the app instead of the default GITHUB_TOKEN, which this workflow never grants contents: write. Pushes made with GITHUB_TOKEN also don't trigger CI on the resulting PR.
  • Add the ea-features-sync label to .github/labels.yml. gh pr create --label ea-features-sync fails when the label doesn't exist in the repo, and it doesn't today.
  • Declare Integration: AWS Lambda, Python, and sdk-docs-audit in .github/labels.yml, using their current colors. These labels exist in the repo but were never added to the file. Any change to labels.yml runs the label sync, and the sync deletes every label that the file doesn't list. sdk-docs-audit is in active use.

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

via shannon.anahata.

--

View Session [Sentry]

The sync workflow has failed every scheduled run because the GitHub App
token is created without owner/repositories, so it only covers
sentry-docs. Cloning the private sentry-options-automator repo then fails
with 'Repository not found'.

Scope the token to both repos, check out with the app token so the sync
branch push and PR come from the app, and add the ea-features-sync label
that gh pr create expects.

Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
develop-docs Ready Ready Preview Nov 17, 2026 12:05am UTC
sentry-docs Ready Ready Preview Nov 17, 2026 12:05am UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Nov 16, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 16, 2026 23:52
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🏷 The following changes will be made to the repository labels

Progress: resolved 1, reused 0, downloaded 0, added 0
 WARN  3 deprecated subdependencies found: har-validator@5.1.5, request@2.88.2, uuid@3.4.0
Packages: +108
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 108, reused 0, downloaded 108, added 108, done
Syncing labels for "getsentry/sentry-docs"
Validating provided labels
Fetching labels from GitHub
 > Missing: the "ea-features-sync" label is missing from the repo. It will be created.
This is a dry run. No changes have been made on GitHub

Changing labels.yml triggers the label sync, which deletes repo labels
missing from the file. Declare the three labels that exist today but
were never added here, so merging doesn't remove them.
Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>

This branch was successfully deployed

2 active deployments
Preview – sentry-docs — dade34a3 Deployed Nov 17, 2026 by vercel[bot]
Preview – develop-docs — dade34a3 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant