GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing github.com — feat(publish-gate): acknowledge a specific new dependency by unional · Pull Request #56 · repobuddy/.github Conversation
Contributor
The gate blocks on new runtime dependencies, which is correct — that is the shape a compromised release takes. But legitimate releases add dependencies too, and there was no way to say yes short of deleting the gate from a repo's
The mechanism
{
"acknowledgedDependencies": {
"eslint-plugin-harmony": {
"@typescript-eslint/utils": "Replaces @typescript-eslint/experimental-utils, which its own maintainers deprecated and renamed. Same publisher, same role."
}
}
}Why this is not a bypassAn escape hatch is only worth having if it cannot quietly become a blanket exemption:
Stale acks — where the dependency has since shipped and is now in the published baseline, so it no longer diffs as new — are reported as safe to delete, so the file does not accumulate permanent exemptions. Verification
End-to-end against the real
Note for the releaseThis is on the
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsA new runtime dependency blocks by default, which is right — it is the shape a compromised release takes. But legitimate releases add dependencies too, and the gate offered no way to say yes short of removing it from the release workflow. eslint-plugin-harmony hit this replacing the deprecated @typescript-eslint/experimental-utils with @typescript-eslint/utils: a rename by the same publisher, indistinguishable to the gate from an injected dependency. Add `.github/publish-gate.json` in the consuming repo, so the acknowledgement is reviewed in the same PR that adds the dependency, by the same people. Narrow, and fails closed: - an ack names one dependency of one package; wildcards are rejected - the reason is required and must be non-empty, so an ack records a judgement rather than a wish for silence - an ack for some other dependency, or under some other package name, does nothing - a malformed or unparseable file blocks the whole run rather than degrading to permissive — if the gate cannot read what was approved it cannot tell approved from unapproved for any package - acknowledged deps are printed with their reasons, so an ack is visible in the job summary rather than silent Once a dependency ships it is in the published baseline and no longer diffs as new, leaving the ack inert. Those are reported as stale and safe to delete so the file does not accumulate permanent exemptions. There is still no input to disable the gate. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Soh3yt33myhRT23UcW4Roh Signed-off-by: unional <[email protected]>
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
unional
added a commit
that referenced
this pull request
* feat: cut the v2 line for @changesets/cli v3 Moves both changesets release workflows from changesets/action@v1 to @v2.0.0 and renames the inputs the major renamed: version -> version-script publish -> publish-script commit -> commit-message Actions ignores unknown `with:` keys, but action v2 does not: it validates the legacy names and aborts with "The following inputs have been renamed". Its own message misspells the target as "commit-mesage"; the accepted input per action.yml is commit-message. Also for the token-based workflow: pass CI_GITHUB_TOKEN as the github-token *input*, not only as the GITHUB_TOKEN env var. v2 defaults push-with-git-cli to false and pushes release commits and tags through the GitHub API using that input, so supplying it only via env meant the custom token was ignored. Both workflows are raised to contents: write and pull-requests: write, which that API path requires. This branch is the v2 line, paired with @changesets/cli v3, and is published as the v2 tag. main stays on v1 for the four consumers still on CLI v2. Refs: #43 Co-Authored-By: Claude Opus 5 <[email protected]> * fix(setup-playwright): skip when the repo has no Playwright (#52) `setup-playwright`'s first step ran `pnpm exec playwright --version` bare, which exits 1 when Playwright is not installed. `pnpm-verify.yml` and both release workflows call the action unconditionally, so any consumer without browser tests died there — after a clean `pnpm install` and before ever reaching `pnpm verify`. Every other repo on these workflows is a visual-testing repo, which is why it stayed hidden until repobuddy/jest-watch-toggle-config-2 adopted them and had to inline a local copy of the workflow to get green. The probe is now also the presence check: it is guarded, and the cache and install steps run only when it found a version. Detection asks "can this project run playwright", the same question the install step asks, so the two cannot disagree. Existing callers are fixed with no change on their side. `pnpm-verify.yml` also gains `skip-playwright` (boolean, default false) to force-skip when Playwright *is* installed, matching cyberuni/.github's input of the same name and semantics — repos move between the two orgs. Internal action refs move from `@main` to `@v2`, the moving alias of this line, so a consumer pinned at `@v2` gets the action from `v2` as well. That closes the README's "known gap". Claude-Session: https://claude.ai/code/session_014RLRX3QtRpgCfDt16KShQC Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> * feat(publish-gate): port pnpm-publish-gate to the v2 line (#54) The eight repos transferred from cyberuni to repobuddy on 2026-09-02 all call `cyberuni/.github/.github/workflows/pnpm-publish-gate.yml@v2` from release.yml. Rewiring them onto their own org was blocked because this repo has no gate. Ported from cyberuni/.github, where it was written and proven. The two scripts are copied verbatim — they have no dependencies and no org-specific references. Two deliberate differences in the workflow: - node and pnpm are set up inline with pnpm/action-setup + actions/setup-node, matching every other workflow here. cyberuni's copy calls its setup-node-pnpm composite, which this repo does not have. - the script checkout pins `ref: v2` rather than a branch. cyberuni releases from `main`, so `ref: main` is correct there. Here `main` is the v1 line and `v2.x` is the v2 line, so `ref: main` would pull v1-line scripts into a v2-line run. Lands on v2.x because every consumer that needs it is on @changesets/cli v3. Claude-Session: https://claude.ai/code/session_01ETjy9oQGyETyFmDBdR9Egz Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> * feat(publish-gate): acknowledge a specific new dependency (#56) A new runtime dependency blocks by default, which is right — it is the shape a compromised release takes. But legitimate releases add dependencies too, and the gate offered no way to say yes short of removing it from the release workflow. eslint-plugin-harmony hit this replacing the deprecated @typescript-eslint/experimental-utils with @typescript-eslint/utils: a rename by the same publisher, indistinguishable to the gate from an injected dependency. Add `.github/publish-gate.json` in the consuming repo, so the acknowledgement is reviewed in the same PR that adds the dependency, by the same people. Narrow, and fails closed: - an ack names one dependency of one package; wildcards are rejected - the reason is required and must be non-empty, so an ack records a judgement rather than a wish for silence - an ack for some other dependency, or under some other package name, does nothing - a malformed or unparseable file blocks the whole run rather than degrading to permissive — if the gate cannot read what was approved it cannot tell approved from unapproved for any package - acknowledged deps are printed with their reasons, so an ack is visible in the job summary rather than silent Once a dependency ships it is in the published baseline and no longer diffs as new, leaving the ack inert. Those are reported as stale and safe to delete so the file does not accumulate permanent exemptions. There is still no input to disable the gate. Claude-Session: https://claude.ai/code/session_01Soh3yt33myhRT23UcW4Roh Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> * fix(release): open the Version Packages PR with the repobuddy App token (#61) A PR opened with GITHUB_TOKEN does not trigger `on: pull_request` workflows, so the Version Packages PR gets no checks and needs an admin bypass to merge. The changesets workflows that used GITHUB_TOKEN now accept optional RELEASE_APP_ID and RELEASE_APP_PRIVATE_KEY secrets, mint an app token when both are set, and hand it to checkout and changesets/action. Without them they fall back to the built-in token, as before. Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(release): start CI on the Version Packages PR without a stored secret (v2 line) (#63) * fix(release): start CI on the Version Packages PR without a stored secret (v2 line) Replace the optional GitHub App token from #61 with a secretless dispatch. GITHUB_TOKEN-caused events start no workflows, so the version PR got no checks and stayed blocked on the required `code / all-checks`. workflow_dispatch is the one event GITHUB_TOKEN may trigger, so after changesets/action opens or updates the PR, the release job runs `gh workflow run <ci-workflow> --ref changeset-release/<branch>`. - Remove RELEASE_APP_ID / RELEASE_APP_PRIVATE_KEY, HAS_RELEASE_APP, the create-github-app-token step and the token fallbacks. - Update the README caller example and adoption steps. - Add a `ci-workflow` input (default pull-request.yml) and document `actions: write`; callers must grant it and add `workflow_dispatch:` to their CI workflow. A failed dispatch warns, never fails the release. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: unional <[email protected]> * fix(release): do not declare actions: write in the reusable workflow A called workflow cannot request a permission its caller did not grant; the run fails at startup. Existing callers grant only id-token, contents and pull-requests, so declaring actions: write would break every release. The dispatch stays fail-soft: without the caller grant it 403s and warns, now with a message that names the missing actions: write grant. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: unional <[email protected]> --------- Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(release): let the release workflow inherit the caller's permissions (v2 line) (#65) The top-level permissions block capped GITHUB_TOKEN and set actions to none, so the Version Packages PR CI dispatch failed with 403 even when the caller granted actions: write. Without the block the job inherits the caller's grant. Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * fix(release): approve the Version Packages PR's parked runs instead of dispatching CI (v2 line) (#67) GitHub parks the version PR's pull_request runs (CI, CodeQL) as action_required because github-actions[bot] opened it. Dispatching CI satisfied the all-checks rule but never produced the CodeQL result, so the PR stayed blocked. Approve the parked runs with GITHUB_TOKEN (actions: write) instead, fail-soft, and drop the ci-workflow input. Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * chore: drop the Renovate rule that pinned the v1 line Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: unional <[email protected]> --------- Signed-off-by: unional <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | ||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |