ci: re-render managed files with @j4k/align #6
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/realign-managed-files"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Re-renders this repo's aligner-managed files with the released
@j4k/align@1.82.2. This repo lives in thej4k-ossorg (notj4k) and was missed by regular fleet alignment, so its managed files were pre-migration.Working-tree changes in this PR (all rendered by the aligner, none hand-edited):
.forgejo/workflows/pr-review.yml— the big one. The old version fetched the review tool withnpm exec --package=axrecipe@7againstnpm.j4k.devauthenticated bysecrets.NPM_TOKEN. Since the orgNPM_TOKENwas deleted at the end of the registry migration, every PR-review draw against this repo has been failing. The re-rendered workflow dropsNPM_TOKENentirely and uses the current OIDC form: it mints a per-runACTIONS_ID_TOKENatvars.NPM_READ_AUDIENCEand scoped-pre-fetches the tools into a temp prefix —npm install --prefix "$review_tools" --ignore-scripts @j4k/axrecipe@8 @j4k/axrun@2 @j4k/axinstall@3— then runs the pinned bin directly. NoNPM_TOKENreference remains..forgejo/workflows/commit-msg.yml— drops the GitHub-stylepermissions:block that Forgejo ignores (and warns about)..gitignore— adds.claude/worktrees/so a nested agent-worktreeoxlint.config.tscan't crash oxlint's directory walk.Forge-side changes already applied by
--fixmainnow setsenable_status_check=truewith the derived required contextcommit-msg / commitlint (pull_request)(previouslyenable_status_check=falsewith no contexts). Contexts are derived per repo from the workflows its traits render; this repo requires only the commitlint context.Why the PR Review draws still run red on THIS PR (expected, non-gating)
pr-review.ymltriggers onpull_request_target, which Forgejo always evaluates from the base branch, not the PR head. The base branch (main) still carries the old pre-migrationpr-review.ymlthat references the deletedNPM_TOKEN, so the draws scheduled against this PR run the OLD workflow and fail. The re-rendered workflow only takes effect for PRs opened after this one merges. PR Review is advisory and is deliberately excluded from the required status contexts, so these red draws do not gate this PR. The only required context here iscommit-msg / commitlint (pull_request), which runs from the PR head and is unaffected.Owner follow-ups (cannot be done from this PR)
NPM_READ_AUDIENCEActions variable is missing on this repo. The re-renderedpr-review.ymlneeds it, and its value is a server-generated audience the aligner cannot supply. Set it before merging (or PR-review draws will still fail after merge):fgj actions variable create NPM_READ_AUDIENCE '<value>' -R j4k-oss/agent-skills --hostname code.j4k.devNPM_TOKENorg secret inj4k-oss. Thej4k-ossorg still carries a staleNPM_TOKENorg secret from before the registry migration. It is no longer referenced by any managed workflow after this PR. Left untouched here on purpose — deleting an org-level secret is the owner's call.