Repository navigation
fix(sync-bots): fail the run when no fleet App token was minted - #301
Merged
Merged
Conversation
nvim-sync, starship-sync and theme-sync warn when the mint is skipped or fails (#269), but the run still concludes green, and a green scheduled run reaches nobody: the PR it opens with GITHUB_TOKEN gets no CI and sits BLOCKED, as #265 did and as dotgibson/dotfiles-nvim#16 did behind the same kind of green run. Each bot now ends with a step that fails when no token was minted. It runs after the PR step, so #269's reason for a warning, letting a real drift land behind a manual nudge, still holds; its other reason, not reddening a fork, is already covered by the job-level owner guard. The error names whether the org secret/variable is not shared with this repo or the App is not installed on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the changes that surface missing App tokens as failed sync runs.
No open issues 🎉
What changed in this PR
Makes missing fleet App tokens visible as failed sync-bot runs, rather than green runs that can leave bot-created PRs blocked without CI.
Changes:
- Adds a final token check to all three sync workflows after PR creation, preserving the manual recovery path.
- Reports missing credential visibility or a failed App mint while retaining existing warnings and fork guards.
- Documents the behavior in the changelog.
| File | Description |
|---|---|
| CHANGELOG.md | Documents the new failure behavior and recovery path. |
| .github/workflows/theme-sync.yml | Fails theme-sync when no App token was minted. |
| .github/workflows/starship-sync.yml | Fails starship-sync when no App token was minted. |
| .github/workflows/nvim-sync.yml | Fails nvim-sync when no App token was minted. |
Review effort: Balanced
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.
What and why
nvim-sync,starship-syncandtheme-syncalready warn when the fleet App mint is skipped or fails (#269), but the run still finishes green. Nobody reads a green scheduled run, so the PR that bot then opens withGITHUB_TOKENgets no CI and sitsBLOCKED. That's #265, and dotgibson/dotfiles-nvim#16 failed the same way, behind a green run.Each bot now ends with a step that fails the run when no token was minted. The error says whether the org secret or variable isn't shared with this repo, or the App isn't installed on it. The warning step stays as it is.
#269 made that step a warning for two reasons. This change keeps both:
if: github.repository_owner == 'dotgibson'already covers this.The same step was added to dotfiles-core's
freshness.yml(dotgibson/dotfiles-core#1290) and dotfiles-nvim's (dotgibson/dotfiles-nvim#18).Verification
pwsh -NoProfile -File tests/Invoke-Tests.ps1: 1354 passed, 0 failed, coverage 90.2%, gate passed. The pre-commit validation also passed (PowerShell syntax, JSON, editorconfig, no analyzer errors).syncjob ends with the new step after its PR step.Checklist
nvim/orstarship/starship.tomlbootstrap.ps1unchanged🤖 Generated with Claude Code