Subscribe free
Morning Merge · Monday, November 23, 20263 min read

pnpm 11.29 stops reading OTP from config files

Also: OAuth tokens you can't get back, and secrets in Claude Code settings

A quiet weekend for news, and the best of it is about secrets landing where they shouldn't: a registry header, a discarded refresh token, a settings file in git.

The main thing

An orange courier robot lifts a crate with a hose sticking out off a conveyor

pnpm 11.29 stops reading otp from config files. Pass --otp on the command line or set PNPM_CONFIG_OTP. An otp in pnpm-workspace.yaml or a global config.yaml is now ignored with a warning, and pnpm config set otp fails.

The reason is the strange part. A repository could write otp: ${NPM_TOKEN} next to its own registry:, and pnpm publish sent that environment variable to the registry the same file named, in the npm-otp header of its first request. Your token, delivered to whoever wrote the config.

Installs tighten too. pnpm install now rejects file:, link: and path-based workspace: dependencies declared by non-local packages, with ERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. It also enforces blockExoticSubdeps against pnpm-lock.yaml. Before, a lockfile with git or tarball URL subdependencies installed anyway.

Tarball downloads now send registry credentials only over HTTPS or loopback HTTP. Global commands (-g) stop loading .pnpmfile.cjs, pnpm-workspace.yaml and .npmrc from the current directory.

A Docker-build annoyance is gone: without a TTY, pnpm install no longer fails when it has to recreate an incompatible node_modules. It recreates it and warns.

On 12.x, pnpm 12.23 carries the same OTP and HTTPS-only fixes. It also removes platform variants, so a frozen install of a lockfile that records them fails with ERR_PNPM_BROKEN_LOCKFILE; run pnpm install to resolve it again.

If your release job keeps otp in a config file, move it to PNPM_CONFIG_OTP before your next publish.

Lessons from production

An orange courier robot drops a new key into a chest box as the old key falls

Nango on running OAuth for 1,000+ APIs. In May 2025, an if that never fired kept refreshed credentials from being saved. Nango reverted it in under two hours, but scheduled jobs had already refreshed and discarded tokens for hundreds of connections.

Providers that rotate refresh tokens, Airtable and Atlassian among them, had invalidated the old ones by then, so those users had to go through the consent screen again. Nango's rule now is to treat refresh tokens like money, not cache: persist the new one before anything else can fail.

The rest is a catalog of OAuth providers not being interchangeable. Exact Online rejects refreshes made more than 30 seconds before expiry, so a "refresh 15 minutes early" rule failed every time. Zoho CRM's token endpoint returns HTTP 200 with the error in the body. If you store third-party tokens, check the order of your write path today.

GitHub Actions accepts invalid YAML. A workflow with a multi-line, single-quoted flow string whose closing line sits at its parent's indentation runs fine on Actions. YAML 1.2.2 § 8.2.3 says it needs one more space, so conforming parsers, and linters like zizmor, reject it.

The author's best guess is that Actions parses with YamlDotNet 5.3.0, from 2018, and that even 18.1.0 still has the bug for single-quoted strings. The author isn't sure GitHub has a clean path to conformance, so expect your tools to disagree with it.

Before you push

An orange courier robot pulls a key out of an open box beside a truck

Apiiro says Claude Code's "don't ask again" leaks secrets. Approve a shell command with "Yes, and don't ask again" and Claude Code saves it as a permission rule in .claude/settings.local.json, including any password in the command. InfoQ reports the finding.

Claude Code adds that file to your global git ignore list, not the repo's .gitignore, so a folder that becomes a repo later, or a clone on another machine, isn't covered. Apiiro counted 1,122 secrets in those files and 1,160 more in git history, shared settings and transcripts, across 63 organizations. GitGuardian found 31,088 on public GitHub, 5,343 still valid.

Scanners like gitleaks and TruffleHog missed some because the secrets sat inside shell commands. Add .claude/settings.local.json to each repo's own .gitignore, and check your git history yourself.

Vercel Flags can block a deploy with missing flags. A flag declared in code but never created in the project silently falls back to its default, which can turn on a feature you meant to keep off. The new Flag Definitions Present Deployment Check fails and lists the missing ones.

It reads your Flags SDK discovery endpoint and needs FLAGS_SECRET set. Enable it in Build and Deployment settings and mark it required; it's on all plans.

If anything in your release path reads a secret from a file the repo controls, move it out this week.

← All Morning Merge issues

Get this in your inbox every morning.

Free. Five minutes. Unsubscribe in one click.

Subscribe free →