Repository navigation
Conversation
The CI check job and the HypiHub docs notification checked out with the default persist-credentials, leaving GITHUB_TOKEN in .git/config for every later step. Neither job talks to a remote with git, so the token is not needed after checkout. The publish job installed npm@11, which resolves to whatever npm 11 release is newest when a release is cut, inside a job that holds the npm OIDC token and contents: write. Pin it to an exact version.
SanHsien
added a commit
to SanHsien/hypit
that referenced
this pull request
Nov 7, 2026
…i#460-hypit-ai#474; advance watermarks No PR was merged upstream, so nothing was cherry-picked: 11 PRs = 5 defer (hypit-ai#464 hypit-ai#466 hypit-ai#467 hypit-ai#469 hypit-ai#471, pinned in monitored) + 6 not applicable; 5 issues = 1 defer (hypit-ai#473) + 4 not applicable. hypit-ai#464 npm pin is moot because the fork gates publish jobs to upstream (b641cce). ROADMAP row updated with the deferred items. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
SanHsien
added a commit
to SanHsien/hypit
that referenced
this pull request
Nov 22, 2026
Measured over 30 days (10-23..11-21): 239 runs, ~896 weighted minutes (~215/week; Windows x2, no macOS). Top consumers: CI 414 (Windows, 37 push + 18 PR), npm package execution 219 (PR only, Windows + Linux), CodeQL 177 (40 push runs), plus 25 always-skipped HypiHub sync runs. - ci.yml: pushes skip changes that only touch fork notes and records (ROADMAP, AGENTS, FORK, NOTICE, CONTRIBUTING, upstream report, baseline, dependabot.yml, skills/, design/, docs/); tools/ and workflows stay in because the suite runs tools/tests. Drop the pull_request path filter so the required "Windows CI" check can never be stuck pending. Add persist-credentials: false to checkout (upstream PR hypit-ai#464). - codeql.yml: push scans only on JS/TS/HTML source changes; PR and weekly schedule stay unfiltered. - npm-package.yml (not required): skip PRs touching only fork maintenance files. - Delete sync-hypihub-docs.yml: needs an upstream-only secret, always skipped on the fork. - dependabot.yml: group npm security updates into one PR. - Record measurements, estimate (~896 -> ~686 weighted min / 30 days, runs 239 -> ~155), revert steps and the re-enable watch in DECISIONS, FORK and ROADMAP. Actions are suspended, so nothing ran on GitHub; verified with YAML parsing and tools/dev_check.ps1 (full). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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.
Closes #482
Problem
Two small hardening gaps are left in workflows that are otherwise least-privilege and SHA-pinned:
ci.yml(checkjob) andsync-hypihub-docs.yml(notifyjob) useactions/checkoutwith the defaultpersist-credentials: true. That writes the job'sGITHUB_TOKENinto.git/config, where every later step (dependency install scripts, the test suite, thecurldispatch step) can read it.npm-package.yml,publish-npm.ymland the automation workflows already setpersist-credentials: false. These two jobs are the only ones that don't.publish-npm.ymlrunsnpm install --global npm@11. That resolves to whichever npm 11 release is newest on the day a release is cut. It runs in the one job that holdsid-token: write(npm trusted publishing) andcontents: write.Impact / severity
Low. This is defence in depth, and nothing here can be exploited today:
contents: read, thecheckjob's token is read-only for fork PRs, and neither job uploads artifacts. Persisting the token only gives code that already runs in the job one more credential.Fix
persist-credentials: falseto the two checkouts. Neither job uses git against a remote after checkout.sync-hypihub-docsonly runs a localgit ls-tree, and the CI tests never fetch or push.[email protected], which was released on 2026-10-15. Trusted publishing needs npm >= 11.5.1, so behaviour is unchanged. A comment explains why the version is exact.Validation
actionlintreports no new findings. The only one left is an existing shellcheck info note innpm-package.yml.zizmor --offlineno longer reportsartipackedforci.ymlorsync-hypihub-docs.yml. Its remainingcache-poisoninghit onpublish-npm.ymlis a false positive:actions/[email protected]does not cache unlesscache:is set, and the job installs no dependencies.select-release-run.mjs,publish-release-candidate.mjs): the publish job's candidate selection, artifact download and publish commands are untouched.