Repository navigation
v4.70.1
Patch, cut from 4.70.0. Security fix for the CI policy check that kj harden seeds (GHSA-3xrh-frxv-mwxr), which also makes it work in projects other than kj's own.
Security
- The policy check in CI is judged from the base branch (KJC-BUG-0419, GHSA-3xrh-frxv-mwxr):
kj-policy.ymlran onpull_request, so GitHub used the PR's own copy of the workflow and a PR could rewrite the step that judges it and pass. It now runs onpull_request_target: the workflow and the kj that judges come from the base branch, and the PR is fetched into its own worktree where kj only reads it; nothing from the PR is installed or executed. Projects hardened with an earlier kj get the new workflow by runningkj hardenagain and sealing it (kj harden --commit).
Fixed
policy-checkworks outside kj's own repo (KJC-BUG-0422, issue #2666): the workflow rannpx --yes karajan-code@<version>, and npx could not tell which of the package's binaries to run, so the job failed before judging anything. The pinned kj is now installed apart (--ignore-scripts) and run with node.- Production dependencies patched (KJC-BUG-0416): fast-uri, hono, ip-address and postcss move to releases that fix their moderate advisories.