Repository navigation
fix(freshness): fail the run when no App token was minted - #18
Merged
Merged
Conversation
The org never shared FLEET_APP_PRIVATE_KEY with this repo, so the mint step skipped on HAS_APP_KEY=false and the PR step fell back to GITHUB_TOKEN. GitHub starts no workflow for a PR that token opens, so ci.yml's required contexts never arrived and #16 sat BLOCKED behind a green run until it was closed and reopened by hand. The key is shared now and the bot's PRs are App-authored (#17). A last step reds the run if the mint ever yields no token again, after the PR step so the PR still opens, and names whether the key/variable or the App install is the missing half. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the plugin-refresh authentication safeguard.
No open issues 🎉
What changed in this PR
Makes missing fleet App authentication visible in the plugin-refresh workflow, preventing a misleading green run when fallback-token PRs cannot trigger required CI.
Changes:
- Adds a final PR-mode check that fails when no App token was minted, while preserving the existing PR creation fallback.
- Reports missing secret or variable visibility, or the mint outcome with an installation troubleshooting hint.
- Documents the authentication failure and new safeguard in the changelog.
| File | Description |
|---|---|
CHANGELOG.md |
Records the blocked-PR incident and authentication safeguard. |
.github/workflows/freshness.yml |
Adds the post-PR token check, error annotation, and job summary. |
Review effort: Balanced
5 of 6 tasks
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 & why
#16 sat
BLOCKEDbehind a green freshness run. The org'sFLEET_APP_PRIVATE_KEYwas never shared with this repo, so the mint step skipped (HAS_APP_KEY: false) and the PR step fell back toGITHUB_TOKEN. GitHub starts no workflow for a PR opened with that token, soci.yml's six required contexts never arrived.The key is shared and the App is installed now. A
mode=prrun today loggedHAS_APP_KEY: true, and #17 was opened bydotgibson-fleet-sync.This PR adds a final step to the freshness job. If no token was minted, the run goes red and the error says which half is missing: the org secret or variable, or the App install. It runs after the PR step, so the PR still opens. The bot can't go quietly unauthored again.
The same step is going into Core's
freshness.yml, along with registering this repo as an App self-PR install in dotfiles-core'sfleet-app-scope.shandGITHUB-APP-AUTH.md. That's a separate PR in dotgibson/dotfiles-core.Checks
make audit-offlinedoesn't run under Git Bash on Windows: its helper library fails to load. CI's lint (actionlint) andci.ymlare the check here.🤖 Generated with Claude Code