Repository navigation
fix(ci): Scope EA features sync token to sentry-options-automator - #20838
Draft
sentry-junior[bot] wants to merge 3 commits into
Draft
sentry-junior[bot] wants to merge 3 commits into
sentry-junior[bot] wants to merge 3 commits into
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
🏷 The following changes will be made to the repository labels |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:actions/create-github-app-tokenis called withoutowner/repositories, so the token it creates only coverssentry-docs.sentry-options-automatoris private, so the clone returns "not found". The app is already installed onsentry-options-automator; that repo's own workflows create tokens fromSENTRY_INTERNAL_APP_ID.Changes
getsentry/sentry-docsandgetsentry/sentry-options-automator.GITHUB_TOKEN, which this workflow never grantscontents: write. Pushes made withGITHUB_TOKENalso don't trigger CI on the resulting PR.ea-features-synclabel to.github/labels.yml.gh pr create --label ea-features-syncfails when the label doesn't exist in the repo, and it doesn't today.Integration: AWS Lambda,Python, andsdk-docs-auditin.github/labels.yml, using their current colors. These labels exist in the repo but were never added to the file. Any change tolabels.ymlruns the label sync, and the sync deletes every label that the file doesn't list.sdk-docs-auditis in active use.IS YOUR CHANGE URGENT?
PRE-MERGE CHECKLIST
via shannon.anahata.
--
View Session [Sentry]