Repository navigation
ci(skills-sync): use SKILLS_SYNC_TOKEN, a machine-account token scoped to the consumers - #213
Merged
Merged
Conversation
…d to the consumers ORG_PAT was a personal token. SKILLS_SYNC_TOKEN is a fine-grained PAT owned by frostyard-machines, with Contents and Pull requests write on the consumers in .github/skills-sync.json only. Sync PRs then show frostyard-machines as author, and a maintainer approves them under the default-branch ruleset. The sync's behavior does not change; the expiry record, its test, the operations doc and the onboarding skill follow the new name.
Contributor
Author
|
Cross-review record
|
bketelsen
approved these changes
Nov 6, 2026
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.
Summary
The skills sync now authenticates with the Actions secret
SKILLS_SYNC_TOKENinstead ofORG_PAT.SKILLS_SYNC_TOKENis a fine-grained PAT owned by the machine accountfrostyard-machines, resource ownerfrostyard. Its repository access is the 10 consumers in.github/skills-sync.jsononly, with Contents and Pull requests read and write (skills-sync operations).ORG_PATwas a personal token, so every sync PR had a personal author, and the default-branch ruleset (1 approving review, last-push approval) could only be met by a bypass. With the machine-account token, a maintainer approves the sync PR;frostyard-machinescannot approve its own PR.frostyard-core[bot].SKILLS_SYNC_TOKEN,expires_on2027-11-01, 60-day lead time.test/secret-expiry.test.mjspins the new name and date.docs/design/skills-sync-operations.mdand thefrostyard-onboard-reposkill name the new secret, its owner, and the onboarding step (add the repository to the token's repository access before the config change merges).ADRs and plans that mention
ORG_PATstay unchanged: ADRs are immutable (ADR-0033), and the plans record past work.The secret
SKILLS_SYNC_TOKENalready exists in this repository. DeleteORG_PATafter this merges and the first sync run passes.Risk tier
Risk tier: 3 —
risk:high: the PR touches risk paths (ADR-0068).Matched paths in
.github/risk-paths.jsonand why the change is safe:.github/workflows/**→.github/workflows/sync-skills.yml: 1 line, the secret name inGH_TOKEN.permissions: {}andpersist-credentials: falsestay.scripts/sync-skills.sh: a comment and the text of the missing-token error. No logic change.Docs housekeeping
check:docsgreen); no new doc.Verification
mise x -- make verify: 388 tests, 388 pass, 0 fail (includesnode scripts/check-docs.mjs).npm run check:secret-expiry:ok SKILLS_SYNC_TOKEN expires on 2027-11-01 in 360 day(s); warns at 60 day(s).node --test test/secret-expiry.test.mjs: 12 pass.frostyard-machines.