Compare commits

...
Author SHA1 Message Date
dependabot[bot] c9d65411cd build(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 (#421)
Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from
7.0.6 to 7.1.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/moxystudio/node-cross-spawn/releases">cross-spawn's
releases</a>.</em></p>
<blockquote>
<h2>v7.1.2</h2>
<h2>Bug fixes</h2>
<ul>
<li><strong>Batch files found in <code>PATH</code> see their own
directory again</strong> (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/203">#203</a>,
<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/204">#204</a>).
Since 7.1.0, a batch file run by its name, e.g. <code>gradle</code>, got
the current directory in <code>%~dp0</code> on Windows, which broke
batch files that use it to find their own files, such as Gradle's
(<code>Unable to access jarfile</code>). Batch files are now run by the
path they resolved to.</li>
</ul>
<h2>v7.1.1</h2>
<h2>Security</h2>
<p>This release fixes a command injection vulnerability that affects
Windows only (GHSA-w3gc-668g-rf8f, high).</p>
<p>7.1.0 fixed how arguments are escaped for batch files, but that
escaping only applied when cross-spawn detected that the command was a
batch file. When the command wasn't written as a plain program name or
path, e.g. it contained double quotes or a space, cross-spawn could miss
that <code>cmd.exe</code> would run a batch file, and escape the
arguments for a regular program instead, which allowed running arbitrary
commands.</p>
<p>Please upgrade. <code>cross-spawn@6</code> users can upgrade to
6.0.8.</p>
<h2>Behaviour change</h2>
<p>On Windows, commands that run through <code>cmd.exe</code> are now
always quoted. As on other platforms, the command must be the name or
path of a single program, with its arguments passed in
<code>args</code>: <code>spawn('npm install')</code> now fails with
<code>ENOENT</code> instead of running <code>npm</code> with
<code>install</code>. Also, <code>cmd.exe</code>'s message for a command
it can't find now shows the command in quotes, e.g.
<code>'&quot;foo&quot;' is not recognized as an internal or external
command</code>. See the <a
href="https://github.com/moxystudio/node-cross-spawn#windows-argument-escaping">Windows
argument escaping</a> section of the README.</p>
<h2>v7.1.0</h2>
<h2>Security</h2>
<p>This release fixes two vulnerabilities that affect Windows only:</p>
<ul>
<li><strong>Command injection when spawning batch files</strong>
(GHSA-ghv9-86vm-4v8m, high). Arguments passed to batch files outside
<code>node_modules/.bin</code>, such as <code>npm.cmd</code> or globally
installed package shims, could break out of their quotes and run
arbitrary commands. <code>%VAR%</code> and <code>!VAR!</code> could also
be expanded in some environments.</li>
<li><strong>Argument injection via backslashes before a double
quote</strong> (GHSA-m6qr-m48x-3xhh, medium). Since 7.0.4, arguments
with two or more backslashes before a double quote, or at their end,
could split into extra arguments or swallow the following ones.</li>
</ul>
<p>Please upgrade. <code>cross-spawn@6</code> users can upgrade to
6.0.7.</p>
<p>Thanks to Duong Bui Thai for privately reporting both, to <a
href="https://github.com/mohd-akram"><code>@​mohd-akram</code></a> for
reporting the batch file injection in <a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/171">#171</a>,
and to <a href="https://github.com/trackoor"><code>@​trackoor</code></a>
and <a href="https://github.com/ogffx"><code>@​ogffx</code></a> for
independently reporting and fixing the backslash issue in <a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/188">#188</a>
and <a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/190">#190</a>.</p>
<h2>Behaviour changes</h2>
<p>These only affect Windows, when a command runs through
<code>cmd.exe</code>, i.e. batch files and other non-executable
commands:</p>
<ul>
<li><strong>Line breaks now throw a <code>TypeError</code>.</strong>
<code>cmd.exe</code> can't escape them, so arguments with line breaks
used to be silently cut short. Both <code>spawn()</code> and
<code>spawn.sync()</code> now throw synchronously instead.</li>
<li><strong>Inner double quotes are escaped as <code>&quot;&quot;</code>
for batch files.</strong> Programs called by batch files that don't
follow the Microsoft C runtime conventions, such as those written in Go
or that use <code>CommandLineToArgvW</code>, may now split arguments
containing double quotes differently.</li>
<li><strong><code>cmd.exe</code> runs with <code>/e:on
/v:off</code>.</strong> This also applies to the batch file itself, e.g.
one relying on delayed expansion being enabled in the registry.</li>
<li><strong>Batch files that read an argument unquoted with
<code>%~1</code> remain unsafe</strong>, as they always were. Please
quote it, e.g. <code>&quot;%~1&quot;</code>, or forward the arguments
with <code>%*</code>.</li>
</ul>
<p>Please see the new <a
href="https://github.com/moxystudio/node-cross-spawn#windows-argument-escaping">Windows
argument escaping</a> section of the README.</p>
<h2>Other changes</h2>
<ul>
<li>Close the file descriptor when reading a shebang fails (<a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/187">#187</a>).
Thanks to <a
href="https://github.com/xiehuanyi"><code>@​xiehuanyi</code></a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md">cross-spawn's
changelog</a>.</em></p>
<blockquote>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.1.1...v7.1.2">7.1.2</a>
(2026-11-29)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>run batch files by their resolved path on Windows (<a
href="https://github.com/moxystudio/node-cross-spawn/commit/fe027b8a594c1260c45b1d1d3e5c543f2d9e8c57">fe027b8</a>),
closes <a
href="https://redirect.github.com/moxystudio/node-cross-spawn/issues/203">#203</a></li>
</ul>
<h3><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.1.0...v7.1.1">7.1.1</a>
(2026-11-28)</h3>
<h3>Bug Fixes</h3>
<ul>
<li>always quote commands run through cmd.exe (<a
href="https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9">d0ead35</a>)</li>
</ul>
<h2><a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.6...v7.1.0">7.1.0</a>
(2026-11-28)</h2>
<h3>Bug Fixes</h3>
<ul>
<li>close the file descriptor when reading a shebang fails (<a
href="https://github.com/moxystudio/node-cross-spawn/commit/9924b880434f771b2bfdb341cb567ea0d2acbe9e">9924b88</a>)</li>
<li>escape commands and arguments safely when running them through
cmd.exe (<a
href="https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b">244ffea</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/9bfd202a902078177b7e80d5eed4514ee6efc2d0"><code>9bfd202</code></a>
chore(release): 7.1.2</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/fe027b8a594c1260c45b1d1d3e5c543f2d9e8c57"><code>fe027b8</code></a>
fix: run batch files by their resolved path on Windows</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/f408280b07671b1c24d22c7282259016da80403a"><code>f408280</code></a>
chore(release): 7.1.1</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9"><code>d0ead35</code></a>
fix: always quote commands run through cmd.exe</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/a03242e369749823a3c9fa120830da8e65b86c2c"><code>a03242e</code></a>
chore: upgrade dev dependencies</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/515dc55a97592a3d96745b8ed47d084baff00f1f"><code>515dc55</code></a>
chore(release): 7.1.0</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/4fcac7b265b9b3603e6a6bb9d2eefe0efa3472f4"><code>4fcac7b</code></a>
docs: document Windows argument escaping and its limitations</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b"><code>244ffea</code></a>
fix: escape commands and arguments safely when running them through
cmd.exe</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/9924b880434f771b2bfdb341cb567ea0d2acbe9e"><code>9924b88</code></a>
fix: close the file descriptor when reading a shebang fails</li>
<li><a
href="https://github.com/moxystudio/node-cross-spawn/commit/462a846b96da92565b0ff62ace437b47ea63e75a"><code>462a846</code></a>
test: support unit tests next to source files</li>
<li>Additional commits viewable in <a
href="https://github.com/moxystudio/node-cross-spawn/compare/v7.0.6...v7.1.2">compare
view</a></li>
</ul>
</details>
<details>
<summary>Install script changes</summary>
<p>This version adds <code>prepare</code> script that runs during
installation. Review the package contents before updating.</p>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cross-spawn&package-manager=npm_and_yarn&previous-version=7.0.6&new-version=7.1.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/actions/create-github-app-token/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-04 22:57:05 -08:00
dependabot[bot] dfd707cab9 fix(deps): bump p-retry from 8.0.1 to 9.0.0 (#418)
Bumps [p-retry](https://github.com/sindresorhus/p-retry) from 8.0.1 to
9.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/sindresorhus/p-retry/releases">p-retry's
releases</a>.</em></p>
<blockquote>
<h2>v9.0.0</h2>
<h3>Breaking</h3>
<ul>
<li>Once <code>signal</code> is aborted, the promise always rejects with
the abort reason and no more callbacks are called dff55ff 1d8bd87
62d4a51
<ul>
<li>Before, if the abort came during an attempt or a callback,
<code>shouldConsumeRetry</code>, <code>onFailedAttempt</code>, and
<code>shouldRetry</code> could still run. The promise could also reject
with the operation's error instead of the abort reason.</li>
<li>The abort reason now also wins over an <code>AbortError</code>
thrown by the operation.</li>
</ul>
</li>
<li><code>shouldConsumeRetry</code> returning nothing now counts as
<code>true</code> e80456b
<ul>
<li>Before, a callback that forgot to <code>return</code> made failures
skip the <code>retries</code> budget, so retries never ran out.</li>
</ul>
</li>
<li>Validate the <code>randomize</code>, <code>unref</code>, and
<code>signal</code> options e80456b dff55ff
<ul>
<li><code>randomize</code> and <code>unref</code> must be booleans, and
<code>signal</code> must be an <code>AbortSignal</code>. Other values
now throw a <code>TypeError</code>.</li>
</ul>
</li>
</ul>
<h3>Improvements</h3>
<ul>
<li>Make the <code>message</code> argument of <code>AbortError</code>
optional 62d4a51</li>
<li>Keep the <code>this</code> type of the function passed to
<code>makeRetriable</code> 2f34d75</li>
<li>Allow explicitly passing <code>undefined</code> for options when
using <code>exactOptionalPropertyTypes</code> 2f34d75</li>
</ul>
<h3>Fixes</h3>
<ul>
<li>Fix very long retry delays firing immediately  4100a6d
<ul>
<li><code>setTimeout</code> runs a delay above 2147483647ms (about 24.9
days) right away. Delays are now capped at that value.</li>
</ul>
</li>
<li>Fix <code>NaN</code> retry delay when <code>minTimeout</code> is
<code>0</code> and <code>factor</code> grows to <code>Infinity</code>
4100a6d</li>
<li>Fix a nested <code>AbortError</code> escaping instead of its cause
dff55ff</li>
<li>Fix a thrown value that cannot be stringified replacing the real
failure 9ba0763</li>
<li>Fix the stack of the error wrapped by <code>AbortError</code>
00a53aa 33d5e2b
<ul>
<li>It now has the correct message and starts at the caller instead of
inside p-retry.</li>
</ul>
</li>
<li>Call <code>shouldConsumeRetry</code> also when
<code>maxRetryTime</code> has run out, so the callbacks always run in
the documented order bd5d4a8</li>
<li>Report <code>retryDelay: 0</code> for a <code>TypeError</code> that
is never retried 127e14e</li>
</ul>
<hr />
<p><a
href="https://github.com/sindresorhus/p-retry/compare/v8.0.1...v9.0.0">https://github.com/sindresorhus/p-retry/compare/v8.0.1...v9.0.0</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/ac3c4cdb7f015e1f71825e4274e2323a49b615eb"><code>ac3c4cd</code></a>
9.0.0</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/2f34d753ec4163e1959b89fc263a2b2b98801bea"><code>2f34d75</code></a>
Tweaks</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/f6e099a4aaa00cce64ebc787818cbfba5e9df856"><code>f6e099a</code></a>
Drop the <code>Number.isFinite</code> special cases for
<code>retries</code></li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/33d5e2beb58f81db172f36c7f1bcc79d9107625f"><code>33d5e2b</code></a>
Start the stack of the wrapped AbortError error at the caller</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/90dd863d3d3078b83cbe4c7c7d706f1d95592b8b"><code>90dd863</code></a>
More tests</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/84125f74bd6cb6c7508f89aebc422ec3236e0bc0"><code>84125f7</code></a>
Fix the readme structure and sync the <code>retryDelay</code> note</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/11cd55b001a076d72fbcd57ae48ab131dd56f49e"><code>11cd55b</code></a>
Only compute the retry delay when a retry is still possible</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/127e14ef77ddb49c32615cbfd45d5584bdcdaae0"><code>127e14e</code></a>
Round a fractional <code>maxTimeout</code> up</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/4a2fb437465d2d75870cb71e7ba18558c29a60a7"><code>4a2fb43</code></a>
Simplify the tests and add missing coverage</li>
<li><a
href="https://github.com/sindresorhus/p-retry/commit/ece57b2920f5185d60e755fa516133411af1c938"><code>ece57b2</code></a>
Improve the docs for zero delays and aborts</li>
<li>Additional commits viewable in <a
href="https://github.com/sindresorhus/p-retry/compare/v8.0.1...v9.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=p-retry&package-manager=npm_and_yarn&previous-version=8.0.1&new-version=9.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-04 20:38:41 -08:00
dependabot[bot] 5cb53d9b48 build(deps-dev): bump undici from 8.12.4 to 8.14.0 in the development-dependencies group (#417)
Bumps the development-dependencies group with 1 update:
[undici](https://github.com/nodejs/undici).

Updates `undici` from 8.12.4 to 8.14.0
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/nodejs/undici/releases">undici's
releases</a>.</em></p>
<blockquote>
<h2>v8.14.0</h2>
<h2>What's Changed</h2>
<ul>
<li>fix(deduplicate): do not deduplicate requests with a body by <a
href="https://github.com/arshsmith1"><code>@​arshsmith1</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6240">nodejs/undici#6240</a></li>
<li>feat(decompress): add preserveHeaders option by <a
href="https://github.com/domenic"><code>@​domenic</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6239">nodejs/undici#6239</a></li>
<li>fix(fetch): preserve falsy abort reasons by <a
href="https://github.com/rome-xi"><code>@​rome-xi</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6232">nodejs/undici#6232</a></li>
<li>fix(socks5): handle bracketed IPv6 literals for proxy and target
hosts by <a
href="https://github.com/hoanle0126"><code>@​hoanle0126</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6243">nodejs/undici#6243</a></li>
<li>fix(cache): restore backing list in place on failed batch operations
by <a href="https://github.com/hoanle0126"><code>@​hoanle0126</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6245">nodejs/undici#6245</a></li>
<li>build(deps-dev): bump fast-check from 4.10.2 to 4.10.3 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/nodejs/undici/pull/6252">nodejs/undici#6252</a></li>
<li>build(deps-dev): bump <code>@​fastify/busboy</code> from 3.2.5 to
3.2.6 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/nodejs/undici/pull/6250">nodejs/undici#6250</a></li>
<li>build(deps-dev): bump borp from 1.0.0 to 1.0.1 by <a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot]
in <a
href="https://redirect.github.com/nodejs/undici/pull/6251">nodejs/undici#6251</a></li>
<li>fix: destroy HTTP/1 sockets on error by <a
href="https://github.com/ferhatelmas"><code>@​ferhatelmas</code></a> in
<a
href="https://redirect.github.com/nodejs/undici/pull/6255">nodejs/undici#6255</a></li>
<li>fix(h2): reset aborted streams with CANCEL by <a
href="https://github.com/gabedemesa"><code>@​gabedemesa</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6201">nodejs/undici#6201</a></li>
<li>fix(http2): dispatch requests before SETTINGS up to the recommended
100 by <a
href="https://github.com/MIbtehajNasar"><code>@​MIbtehajNasar</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6203">nodejs/undici#6203</a></li>
<li>test(pool): cover a protocol probe whose request is rejected before
dispatch by <a
href="https://github.com/MIbtehajNasar"><code>@​MIbtehajNasar</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6142">nodejs/undici#6142</a></li>
<li>docs: fix the urllib3 advisory and GOAWAY frame links by <a
href="https://github.com/qodelicious"><code>@​qodelicious</code></a> in
<a
href="https://redirect.github.com/nodejs/undici/pull/6067">nodejs/undici#6067</a></li>
<li>test(h2): check bounded refusals alongside healthy requests by <a
href="https://github.com/BridgeAR"><code>@​BridgeAR</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6072">nodejs/undici#6072</a></li>
<li>ci: remove the vendored milo directory recursively by <a
href="https://github.com/dylanpulver"><code>@​dylanpulver</code></a> in
<a
href="https://redirect.github.com/nodejs/undici/pull/6071">nodejs/undici#6071</a></li>
<li>feat(retry): add a resume option to disable mid-body resumption by
<a
href="https://github.com/MIbtehajNasar"><code>@​MIbtehajNasar</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6096">nodejs/undici#6096</a></li>
<li>fix(h2): preserve request AsyncLocalStorage context for body chunks
by <a href="https://github.com/mcollina"><code>@​mcollina</code></a> in
<a
href="https://redirect.github.com/nodejs/undici/pull/6209">nodejs/undici#6209</a></li>
<li>fix(websocket): make WebSocket kRef/kUnref non-enumerable by <a
href="https://github.com/jasnell"><code>@​jasnell</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5795">nodejs/undici#5795</a></li>
<li>fix(websocket): add brand-checks to WebSocket kRef/kUnref by <a
href="https://github.com/jasnell"><code>@​jasnell</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/5798">nodejs/undici#5798</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/rome-xi"><code>@​rome-xi</code></a> made
their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6232">nodejs/undici#6232</a></li>
<li><a
href="https://github.com/hoanle0126"><code>@​hoanle0126</code></a> made
their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6243">nodejs/undici#6243</a></li>
<li><a
href="https://github.com/gabedemesa"><code>@​gabedemesa</code></a> made
their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6201">nodejs/undici#6201</a></li>
<li><a
href="https://github.com/dylanpulver"><code>@​dylanpulver</code></a>
made their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6071">nodejs/undici#6071</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v8.13.1...v8.14.0">https://github.com/nodejs/undici/compare/v8.13.1...v8.14.0</a></p>
<h2>v8.13.1</h2>
<h2>What's Changed</h2>
<ul>
<li>fix(agent): close unused pool after aborted request by <a
href="https://github.com/helmipradita"><code>@​helmipradita</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6211">nodejs/undici#6211</a></li>
<li>fix(h2): replace a connection whose PING goes unanswered by <a
href="https://github.com/MIbtehajNasar"><code>@​MIbtehajNasar</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6074">nodejs/undici#6074</a></li>
<li>fix(proxy-agent): decode SOCKS5 credentials from the proxy URI by <a
href="https://github.com/alkaz-nodemaven"><code>@​alkaz-nodemaven</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6040">nodejs/undici#6040</a></li>
<li>fix(h2): preserve request AsyncLocalStorage context for onInfo by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6208">nodejs/undici#6208</a></li>
<li>fix(fetch): preserve empty strings when inspecting
<code>FormData</code> by <a
href="https://github.com/LiviaMedeiros"><code>@​LiviaMedeiros</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6183">nodejs/undici#6183</a></li>
<li>fix: do not send a request on a connection verified for another
servername by <a
href="https://github.com/mcollina"><code>@​mcollina</code></a> in <a
href="https://redirect.github.com/nodejs/undici/pull/6233">nodejs/undici#6233</a></li>
<li>fix(pipeline): abort request when response body is dropped early by
<a href="https://github.com/ferhatelmas"><code>@​ferhatelmas</code></a>
in <a
href="https://redirect.github.com/nodejs/undici/pull/6225">nodejs/undici#6225</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/helmipradita"><code>@​helmipradita</code></a>
made their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6211">nodejs/undici#6211</a></li>
<li><a
href="https://github.com/MIbtehajNasar"><code>@​MIbtehajNasar</code></a>
made their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6074">nodejs/undici#6074</a></li>
<li><a
href="https://github.com/alkaz-nodemaven"><code>@​alkaz-nodemaven</code></a>
made their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6040">nodejs/undici#6040</a></li>
<li><a
href="https://github.com/ferhatelmas"><code>@​ferhatelmas</code></a>
made their first contribution in <a
href="https://redirect.github.com/nodejs/undici/pull/6225">nodejs/undici#6225</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/nodejs/undici/compare/v8.13.0...v8.13.1">https://github.com/nodejs/undici/compare/v8.13.0...v8.13.1</a></p>
<h2>v8.13.0</h2>
<h2>What's Changed</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/nodejs/undici/commit/f7a6f8f89b503aae3a3e30700c7bca2874c98387"><code>f7a6f8f</code></a>
Bumped v8.14.0 (<a
href="https://redirect.github.com/nodejs/undici/issues/6262">#6262</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/4a7eb932c1a84aa0f429db38cd3661111e0cec36"><code>4a7eb93</code></a>
fix(websocket): add brand-checks to WebSocket kRef/kUnref (<a
href="https://redirect.github.com/nodejs/undici/issues/5798">#5798</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/d69e48edcd548db2221ad7d4e63759fe3d2b5563"><code>d69e48e</code></a>
fix(websocket): make kRef/kUnref non-enumerable (<a
href="https://redirect.github.com/nodejs/undici/issues/5795">#5795</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/3277b3ace37cf5757f5063497928cd1a4ea3a31f"><code>3277b3a</code></a>
fix(h2): preserve request AsyncLocalStorage context for body chunks (<a
href="https://redirect.github.com/nodejs/undici/issues/6209">#6209</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/30a88a17b195eb03275c94594bb39876122c7cd5"><code>30a88a1</code></a>
feat(retry): add a resume option to disable mid-body resumption (<a
href="https://redirect.github.com/nodejs/undici/issues/6096">#6096</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/72709b15651f77ecf80047cb919d8b5c9e4cd297"><code>72709b1</code></a>
ci: remove the vendored milo directory recursively (<a
href="https://redirect.github.com/nodejs/undici/issues/6071">#6071</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/60a96dc850ed48913281365b7c76ce0221e17402"><code>60a96dc</code></a>
test(h2): check bounded refusals alongside healthy requests (<a
href="https://redirect.github.com/nodejs/undici/issues/6072">#6072</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/f944001d79e221bdf6f6f6509896d89a6105bcac"><code>f944001</code></a>
docs: fix the urllib3 advisory and GOAWAY frame links (<a
href="https://redirect.github.com/nodejs/undici/issues/6067">#6067</a>)</li>
<li><a
href="https://github.com/nodejs/undici/commit/180d007e6ed1c7f8d3c8796f8fe4072e3ea01c46"><code>180d007</code></a>
test(pool): cover a protocol probe whose request is rejected before
dispatch ...</li>
<li><a
href="https://github.com/nodejs/undici/commit/dd2bd50a6ce78e3ad4f352aff1c62935abcac27b"><code>dd2bd50</code></a>
fix(http2): dispatch requests before SETTINGS up to the recommended 100
(<a
href="https://redirect.github.com/nodejs/undici/issues/6203">#6203</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/nodejs/undici/compare/v8.12.4...v8.14.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=undici&package-manager=npm_and_yarn&previous-version=8.12.4&new-version=8.14.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-04 20:37:10 -08:00
create-app-token-action-releaser[bot] f418cff399 chore(main): release 3.4.0 (#415) 2026-11-18 07:08:55 -08:00
09c1ab7079 feat: bump actions/setup-node from 6 to 7 (#410)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6
to 7.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/actions/setup-node/releases">actions/setup-node's
releases</a>.</em></p>
<blockquote>
<h2>v7.0.0</h2>
<h2>What's Changed</h2>
<h3>Enhancements:</h3>
<ul>
<li>Add cache-primary-key and cache-matched-key as outputs by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1577">actions/setup-node#1577</a></li>
<li>Migrate to ESM and upgrade dependencies by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1574">actions/setup-node#1574</a></li>
</ul>
<h3>Bug fixes:</h3>
<ul>
<li>Remove dummy NODE_AUTH_TOKEN export by <a
href="https://github.com/gowridurgad"><code>@​gowridurgad</code></a> in
<a
href="https://redirect.github.com/actions/setup-node/pull/1558">actions/setup-node#1558</a></li>
<li>Only use <code>mirrorToken</code> in <code>getManifest</code> if
it's provided by <a
href="https://github.com/deiga"><code>@​deiga</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
</ul>
<h3>Documentation updates:</h3>
<ul>
<li>Add documentation for publishing to npm with Trusted Publisher
(OIDC) by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li>docs: Update restore-only cache documentation by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1550">actions/setup-node#1550</a></li>
<li>docs: Update caching recommendations to mitigate cache poisoning
risks by <a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1567">actions/setup-node#1567</a></li>
</ul>
<h3>Dependency update:</h3>
<ul>
<li>Upgrade <code>@​actions/cache</code> to 5.1.0, log cache write
denied by <a
href="https://github.com/jasongin"><code>@​jasongin</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a
href="https://github.com/chiranjib-swain"><code>@​chiranjib-swain</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1536">actions/setup-node#1536</a></li>
<li><a href="https://github.com/deiga"><code>@​deiga</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1548">actions/setup-node#1548</a></li>
<li><a href="https://github.com/jasongin"><code>@​jasongin</code></a>
made their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1569">actions/setup-node#1569</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v7.0.0">https://github.com/actions/setup-node/compare/v6...v7.0.0</a></p>
<h2>v6.5.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update <code>@​actions/cache</code> to 5.1.0 and add security
overrides for undici and fast-xml-parser by <a
href="https://github.com/HarithaVattikuti"><code>@​HarithaVattikuti</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1579">actions/setup-node#1579</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0">https://github.com/actions/setup-node/compare/v6.4.0...v6.5.0</a></p>
<h2>v6.4.0</h2>
<h2>What's Changed</h2>
<h3>Dependency updates:</h3>
<ul>
<li>Upgrade <a
href="https://github.com/actions"><code>@​actions</code></a>
dependencies by <a
href="https://github.com/Copilot"><code>@​Copilot</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
<li>Update Node.js versions in versions.yml and bump package to v6.4.0
by <a
href="https://github.com/priya-kinthali"><code>@​priya-kinthali</code></a>
in <a
href="https://redirect.github.com/actions/setup-node/pull/1533">actions/setup-node#1533</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a> made
their first contribution in <a
href="https://redirect.github.com/actions/setup-node/pull/1525">actions/setup-node#1525</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/actions/setup-node/compare/v6...v6.4.0">https://github.com/actions/setup-node/compare/v6...v6.4.0</a></p>
<h2>v6.3.0</h2>
<h2>What's Changed</h2>
<h3>Enhancements:</h3>
<ul>
<li>Support parsing <code>devEngines</code> field by <a
href="https://github.com/susnux"><code>@​susnux</code></a> in <a
href="https://redirect.github.com/actions/setup-node/pull/1283">actions/setup-node#1283</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/actions/setup-node/commit/949feb2413d6458794dcd2491c4babbbce0c15c1"><code>949feb2</code></a>
Bump eslint from 10.5.0 to 10.11.0 and package.json from 7.0.0 to 7.1.0
(<a
href="https://redirect.github.com/actions/setup-node/issues/1635">#1635</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/7207c4f1189c7ee83ddf20c7c68bd1af6fdd751c"><code>7207c4f</code></a>
chore: update dependencies and add license files (<a
href="https://redirect.github.com/actions/setup-node/issues/1642">#1642</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/54337e0d02de9202d0948aaff36ad556375497b9"><code>54337e0</code></a>
Bump eslint-plugin-n from 18.1.0 to 18.3.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1638">#1638</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/fb54fa8c14c63410cc752f0ae3b7b3ca6af161fc"><code>fb54fa8</code></a>
Bump jest-each from 30.4.1 to 30.5.2 (<a
href="https://redirect.github.com/actions/setup-node/issues/1636">#1636</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/7f84f1d52d0c56afb45c62fee31a93b843cea4d6"><code>7f84f1d</code></a>
Bump pnpm/action-setup from 6.0.10 to 6.1.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1631">#1631</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/0c54c7b07420dcba69a7d832587f55ebdf771c9e"><code>0c54c7b</code></a>
Bump <code>@​typescript-eslint/parser</code> from 8.62.0 to 8.70.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1615">#1615</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/a8294190049a9c296f01b9a432aff41dd83d8284"><code>a829419</code></a>
Bump <code>@​types/semver</code> from 7.7.1 to 7.8.0 (<a
href="https://redirect.github.com/actions/setup-node/issues/1616">#1616</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/680d1e489b82f1243de15bc7665c0007e3c9a860"><code>680d1e4</code></a>
Support absolute paths in node-version-file (<a
href="https://redirect.github.com/actions/setup-node/issues/1633">#1633</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/db0fb3a98ed314b69026b6e8c9be26a7e2fe65a8"><code>db0fb3a</code></a>
Bump baseline-browser-mapping from 2.10.38 to 2.11.22 (<a
href="https://redirect.github.com/actions/setup-node/issues/1629">#1629</a>)</li>
<li><a
href="https://github.com/actions/setup-node/commit/94196ee1d15439c1b6651cd87ef14e88ec435966"><code>94196ee</code></a>
Bump pnpm/action-setup from 6.0.9 to 6.0.10 (<a
href="https://redirect.github.com/actions/setup-node/issues/1602">#1602</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/actions/setup-node/compare/v6...v7">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/setup-node&package-manager=github_actions&previous-version=6&new-version=7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parkerbxyz <17183625+parkerbxyz@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-11-17 21:31:58 -08:00
01b8009bd6 test: strip ANSI escape codes from snapshot output (#412)
Strips ANSI escape codes from captured `stdout` and `stderr` before
comparing test output to snapshots.

When `FORCE_COLOR` is set (some terminals and tools set it), Node
colorizes logged errors, so
`main-token-get-owner-set-client-error.test.js` fails locally even
though it passes in CI. With this change, snapshots match regardless of
color settings. CI output is unchanged.

Split out from #411.

Co-authored-by: Aiqiao Yan <55104035+aiqiaoy@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
2026-11-17 21:31:31 -08:00
dependabot[bot] e056864841 build(deps-dev): bump undici from 8.12.3 to 8.12.4 (#416) 2026-11-17 21:06:08 -08:00
dependabot[bot] 679345a20e feat: bump actions/stale from 10 to 11 (#409) 2026-11-17 21:05:22 -08:00
dependabot[bot] 660c44c8ce feat: bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the github-actions group (#408) 2026-11-17 21:04:30 -08:00
dependabot[bot] 18e9994c8d fix(deps): bump undici (#406) 2026-11-17 21:04:07 -08:00
11 changed files with 275 additions and 90 deletions

No files matched your search

+2 -1
View File
@@ -40,10 +40,11 @@ jobs:
ref: ${{ fromJSON(steps.release-please.outputs.pr).headBranchName }} ref: ${{ fromJSON(steps.release-please.outputs.pr).headBranchName }}
token: ${{ steps.app-token.outputs.token }} token: ${{ steps.app-token.outputs.token }}
- uses: actions/setup-node@v6 - uses: actions/setup-node@v7
if: steps.release-please.outputs.prs_created == 'true' if: steps.release-please.outputs.prs_created == 'true'
with: with:
node-version-file: package.json node-version-file: package.json
package-manager-cache: false
- run: npm ci - run: npm ci
if: steps.release-please.outputs.prs_created == 'true' if: steps.release-please.outputs.prs_created == 'true'
+1 -1
View File
@@ -23,7 +23,7 @@ jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/stale@v10 - uses: actions/stale@v11
with: with:
operations-per-run: 100 operations-per-run: 100
days-before-stale: ${{ env.DAYS_BEFORE_STALE }} days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
+3 -4
View File
@@ -23,7 +23,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- uses: actions/setup-node@v6 - uses: actions/setup-node@v7
with: with:
node-version-file: package.json node-version-file: package.json
@@ -37,7 +37,7 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- uses: actions/setup-node@v6 - uses: actions/setup-node@v7
with: with:
node-version-file: package.json node-version-file: package.json
- run: npm ci - run: npm ci
@@ -62,10 +62,9 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.event.pull_request.base.repo.owner.login
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- uses: actions/setup-node@v6 - uses: actions/setup-node@v7
with: with:
node-version-file: package.json node-version-file: package.json
cache: 'npm'
- run: npm ci - run: npm ci
- run: npm run build - run: npm run build
- uses: ./ # Uses the action in the root directory - uses: ./ # Uses the action in the root directory
@@ -22,16 +22,17 @@ jobs:
COMMIT_MESSAGE: 'feat: update permission inputs' COMMIT_MESSAGE: 'feat: update permission inputs'
steps: steps:
- uses: actions/checkout@v7 - uses: actions/checkout@v7
- uses: actions/setup-node@v6 - uses: actions/setup-node@v7
with: with:
node-version-file: package.json node-version-file: package.json
package-manager-cache: false
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Run permission inputs update script - name: Run permission inputs update script
run: node scripts/update-permission-inputs.js run: node scripts/update-permission-inputs.js
- name: Commit changes - name: Commit changes
id: auto-commit id: auto-commit
uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0 uses: stefanzweifel/git-auto-commit-action@d0b01107b5db882071f96de5dd4b54961ea93f4c # v7.2.1
with: with:
commit_message: ${{ env.COMMIT_MESSAGE }} commit_message: ${{ env.COMMIT_MESSAGE }}
- name: Update PR title - name: Update PR title
+1 -1
View File
@@ -1,3 +1,3 @@
{ {
".": "3.3.0" ".": "3.4.0"
} }
+14
View File
@@ -1,5 +1,19 @@
# Changelog # Changelog
## [3.4.0](https://github.com/actions/create-github-app-token/compare/v3.3.0...v3.4.0) (2026-11-18)
### Features
* bump actions/setup-node from 6 to 7 ([#410](https://github.com/actions/create-github-app-token/issues/410)) ([09c1ab7](https://github.com/actions/create-github-app-token/commit/09c1ab7079f14af5f0d64c9325739c49a8541f56))
* bump actions/stale from 10 to 11 ([#409](https://github.com/actions/create-github-app-token/issues/409)) ([679345a](https://github.com/actions/create-github-app-token/commit/679345a20e2e07130130e6cf0301b9e897f18cd5))
* bump stefanzweifel/git-auto-commit-action from 7.2.0 to 7.2.1 in the github-actions group ([#408](https://github.com/actions/create-github-app-token/issues/408)) ([660c44c](https://github.com/actions/create-github-app-token/commit/660c44c8ce22207448fbba2730cd2913052c9de3))
### Bug Fixes
* **deps:** bump undici ([#406](https://github.com/actions/create-github-app-token/issues/406)) ([18e9994](https://github.com/actions/create-github-app-token/commit/18e9994c8d13ac7c7e2bbcc3355a1a4f31d30de7))
## [3.3.0](https://github.com/actions/create-github-app-token/compare/v3.2.0...v3.3.0) (2026-10-12) ## [3.3.0](https://github.com/actions/create-github-app-token/compare/v3.2.0...v3.3.0) (2026-10-12)
+114 -29
View File
@@ -2103,6 +2103,7 @@ var require_dispatcher = __commonJS({
var require_dispatcher_base = __commonJS({ var require_dispatcher_base = __commonJS({
"node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js"(exports2, module2) { "node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js"(exports2, module2) {
"use strict"; "use strict";
var buffer = require("node:buffer");
var Dispatcher = require_dispatcher(); var Dispatcher = require_dispatcher();
var { var {
ClientDestroyedError, ClientDestroyedError,
@@ -2114,6 +2115,7 @@ var require_dispatcher_base = __commonJS({
var kOnClosed = /* @__PURE__ */ Symbol("onClosed"); var kOnClosed = /* @__PURE__ */ Symbol("onClosed");
var kInterceptedDispatch = /* @__PURE__ */ Symbol("Intercepted Dispatch"); var kInterceptedDispatch = /* @__PURE__ */ Symbol("Intercepted Dispatch");
var kWebSocketOptions = /* @__PURE__ */ Symbol("webSocketOptions"); var kWebSocketOptions = /* @__PURE__ */ Symbol("webSocketOptions");
var kEventSourceOptions = /* @__PURE__ */ Symbol("eventSourceOptions");
var DispatcherBase = class extends Dispatcher { var DispatcherBase = class extends Dispatcher {
constructor(opts) { constructor(opts) {
super(); super();
@@ -2122,6 +2124,7 @@ var require_dispatcher_base = __commonJS({
this[kClosed] = false; this[kClosed] = false;
this[kOnClosed] = []; this[kOnClosed] = [];
this[kWebSocketOptions] = opts?.webSocket ?? {}; this[kWebSocketOptions] = opts?.webSocket ?? {};
this[kEventSourceOptions] = opts?.eventSource ?? {};
} }
get webSocketOptions() { get webSocketOptions() {
return { return {
@@ -2129,6 +2132,11 @@ var require_dispatcher_base = __commonJS({
maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024 maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024
}; };
} }
get eventSourceOptions() {
return {
maxEventSize: this[kEventSourceOptions].maxEventSize ?? buffer.kStringMaxLength
};
}
get destroyed() { get destroyed() {
return this[kDestroyed]; return this[kDestroyed];
} }
@@ -6276,7 +6284,6 @@ var require_client_h1 = __commonJS({
socket[kSocketUsed] = false; socket[kSocketUsed] = false;
socket[kParser] = new Parser(client, socket, llhttpInstance); socket[kParser] = new Parser(client, socket, llhttpInstance);
addListener(socket, "error", function(err) { addListener(socket, "error", function(err) {
assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
const parser = this[kParser]; const parser = this[kParser];
if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) { if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
const parserErr = parser.finish(); const parserErr = parser.finish();
@@ -6960,7 +6967,6 @@ var require_client_h2 = __commonJS({
client[kHTTP2Session] = session; client[kHTTP2Session] = session;
socket[kHTTP2Session] = session; socket[kHTTP2Session] = session;
util.addListener(socket, "error", function(err) { util.addListener(socket, "error", function(err) {
assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
this[kError] = err; this[kError] = err;
this[kClient][kOnError](err); this[kClient][kOnError](err);
}); });
@@ -7019,7 +7025,6 @@ var require_client_h2 = __commonJS({
} }
} }
function onHttp2SessionError(err) { function onHttp2SessionError(err) {
assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
this[kSocket][kError] = err; this[kSocket][kError] = err;
this[kClient][kOnError](err); this[kClient][kOnError](err);
} }
@@ -7713,9 +7718,10 @@ var require_client = __commonJS({
// h2 // h2
maxConcurrentStreams, maxConcurrentStreams,
allowH2, allowH2,
webSocket webSocket,
eventSource
} = {}) { } = {}) {
super({ webSocket }); super({ webSocket, eventSource });
if (keepAlive !== void 0) { if (keepAlive !== void 0) {
throw new InvalidArgumentError("unsupported keepAlive, use pipelining=0 instead"); throw new InvalidArgumentError("unsupported keepAlive, use pipelining=0 instead");
} }
@@ -8612,7 +8618,7 @@ var require_agent = __commonJS({
return opts && opts.connections === 1 ? new Client(origin, opts) : new Pool(origin, opts); return opts && opts.connections === 1 ? new Client(origin, opts) : new Pool(origin, opts);
} }
var Agent3 = class extends DispatcherBase { var Agent3 = class extends DispatcherBase {
constructor({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) { constructor({ factory = defaultFactory, maxRedirections = 0, connect, tls, ...options } = {}) {
if (typeof factory !== "function") { if (typeof factory !== "function") {
throw new InvalidArgumentError("factory must be a function."); throw new InvalidArgumentError("factory must be a function.");
} }
@@ -8626,8 +8632,11 @@ var require_agent = __commonJS({
if (connect && typeof connect !== "function") { if (connect && typeof connect !== "function") {
connect = { ...connect }; connect = { ...connect };
} }
if (tls && typeof tls !== "function") {
tls = { ...tls };
}
this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })]; this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })];
this[kOptions] = { ...util.deepClone(options), connect }; this[kOptions] = { ...util.deepClone(options), connect, tls };
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0; this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
this[kMaxRedirections] = maxRedirections; this[kMaxRedirections] = maxRedirections;
this[kFactory] = factory; this[kFactory] = factory;
@@ -14355,8 +14364,9 @@ var require_fetch = __commonJS({
} }
); );
response.body = { stream, source: null, length: null }; response.body = { stream, source: null, length: null };
fetchParams.controller.onAborted = onAborted; if (!fetchParams.controller.resume) {
fetchParams.controller.on("terminated", onAborted); fetchParams.controller.on("terminated", onAborted);
}
fetchParams.controller.resume = async () => { fetchParams.controller.resume = async () => {
while (true) { while (true) {
let bytes; let bytes;
@@ -14456,7 +14466,6 @@ var require_fetch = __commonJS({
headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true); headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true);
} }
location = headersList.get("location", true); location = headersList.get("location", true);
this.body = new Readable({ read: resume });
const decoders = []; const decoders = [];
const willFollow = location && request2.redirect === "follow" && redirectStatusSet.has(status); const willFollow = location && request2.redirect === "follow" && redirectStatusSet.has(status);
if (request2.method !== "HEAD" && request2.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) { if (request2.method !== "HEAD" && request2.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) {
@@ -14464,7 +14473,7 @@ var require_fetch = __commonJS({
const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : []; const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : [];
const maxContentEncodings = 5; const maxContentEncodings = 5;
if (codings.length > maxContentEncodings) { if (codings.length > maxContentEncodings) {
reject(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`)); this.abort(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`));
return true; return true;
} }
for (let i = codings.length - 1; i >= 0; --i) { for (let i = codings.length - 1; i >= 0; --i) {
@@ -14494,6 +14503,7 @@ var require_fetch = __commonJS({
} }
} }
} }
this.body = new Readable({ read: resume });
const onError = this.onError.bind(this); const onError = this.onError.bind(this);
resolve2({ resolve2({
status, status,
@@ -14519,9 +14529,6 @@ var require_fetch = __commonJS({
if (this.abort) { if (this.abort) {
fetchParams.controller.off("terminated", this.abort); fetchParams.controller.off("terminated", this.abort);
} }
if (fetchParams.controller.onAborted) {
fetchParams.controller.off("terminated", fetchParams.controller.onAborted);
}
fetchParams.controller.ended = true; fetchParams.controller.ended = true;
this.body.push(null); this.body.push(null);
}, },
@@ -17595,6 +17602,16 @@ var require_receiver = __commonJS({
if (isControlFrame(this.#info.opcode)) { if (isControlFrame(this.#info.opcode)) {
this.#loop = this.parseControlFrame(body); this.#loop = this.parseControlFrame(body);
this.#state = parserStates.INFO; this.#state = parserStates.INFO;
const socket = this.ws[kResponse].socket;
if (this.#loop && socket.writableNeedDrain) {
this.#loop = false;
socket.once("drain", () => {
if (this.destroyed) return;
this.#loop = true;
this.run(callback);
});
return;
}
} else { } else {
if (!this.#info.compressed) { if (!this.#info.compressed) {
if (!this.writeFragments(body)) { if (!this.writeFragments(body)) {
@@ -18288,6 +18305,7 @@ var require_util8 = __commonJS({
var require_eventsource_stream = __commonJS({ var require_eventsource_stream = __commonJS({
"node_modules/@actions/http-client/node_modules/undici/lib/web/eventsource/eventsource-stream.js"(exports2, module2) { "node_modules/@actions/http-client/node_modules/undici/lib/web/eventsource/eventsource-stream.js"(exports2, module2) {
"use strict"; "use strict";
var buffer = require("node:buffer");
var { Transform } = require("node:stream"); var { Transform } = require("node:stream");
var { isASCIINumber, isValidLastEventId } = require_util8(); var { isASCIINumber, isValidLastEventId } = require_util8();
var BOM = [239, 187, 191]; var BOM = [239, 187, 191];
@@ -18295,24 +18313,28 @@ var require_eventsource_stream = __commonJS({
var CR = 13; var CR = 13;
var COLON = 58; var COLON = 58;
var SPACE = 32; var SPACE = 32;
var defaultMaxEventSize = buffer.kStringMaxLength;
var DATA = Buffer.from("data"); var DATA = Buffer.from("data");
var EVENT = Buffer.from("event"); var EVENT = Buffer.from("event");
var ID = Buffer.from("id"); var ID = Buffer.from("id");
var RETRY = Buffer.from("retry"); var RETRY = Buffer.from("retry");
function isASCIINumberBytes(buffer, start) { var minParserItems = 1024;
if (start >= buffer.length) { var maxParserItems = 131072;
var bytesPerParserItem = 128;
function isASCIINumberBytes(buffer2, start) {
if (start >= buffer2.length) {
return false; return false;
} }
for (let i = start; i < buffer.length; i++) { for (let i = start; i < buffer2.length; i++) {
if (buffer[i] < 48 || buffer[i] > 57) { if (buffer2[i] < 48 || buffer2[i] > 57) {
return false; return false;
} }
} }
return true; return true;
} }
function isValidLastEventIdBytes(buffer, start) { function isValidLastEventIdBytes(buffer2, start) {
for (let i = start; i < buffer.length; i++) { for (let i = start; i < buffer2.length; i++) {
if (buffer[i] === 0) { if (buffer2[i] === 0) {
return false; return false;
} }
} }
@@ -18329,6 +18351,11 @@ var require_eventsource_stream = __commonJS({
} }
return true; return true;
} }
function createMaxEventSizeExceededError() {
const error2 = new Error("EventSource message size exceeded");
error2.aborted = false;
return error2;
}
var EventSourceStream = class extends Transform { var EventSourceStream = class extends Transform {
/** /**
* @type {eventSourceSettings} * @type {eventSourceSettings}
@@ -18355,6 +18382,13 @@ var require_eventsource_stream = __commonJS({
pos = 0; pos = 0;
lineChunkIndex = 0; lineChunkIndex = 0;
linePos = 0; linePos = 0;
lineLength = 0;
eventSize = 0;
eventFieldSizes = { data: 0, event: 0, id: 0, retry: 0 };
dataLineCount = 0;
maxEventSize;
maxDataLines;
maxBufferedChunks;
event = { event = {
data: void 0, data: void 0,
event: void 0, event: void 0,
@@ -18363,6 +18397,7 @@ var require_eventsource_stream = __commonJS({
}; };
/** /**
* @param {object} options * @param {object} options
* @param {number} [options.maxEventSize]
* @param {eventSourceSettings} options.eventSourceSettings * @param {eventSourceSettings} options.eventSourceSettings
* @param {Function} [options.push] * @param {Function} [options.push]
*/ */
@@ -18370,6 +18405,10 @@ var require_eventsource_stream = __commonJS({
options.readableObjectMode = true; options.readableObjectMode = true;
super(options); super(options);
this.state = options.eventSourceSettings || {}; this.state = options.eventSourceSettings || {};
this.maxEventSize = options.maxEventSize ?? defaultMaxEventSize;
const parserItemLimit = this.maxEventSize > 0 ? Math.min(maxParserItems, Math.max(minParserItems, Math.floor(this.maxEventSize / bytesPerParserItem))) : 0;
this.maxDataLines = parserItemLimit;
this.maxBufferedChunks = parserItemLimit;
if (options.push) { if (options.push) {
this.push = options.push; this.push = options.push;
} }
@@ -18385,6 +18424,10 @@ var require_eventsource_stream = __commonJS({
callback(); callback();
return; return;
} }
if (this.maxEventSize > 0 && this.chunks.length >= this.maxBufferedChunks && chunk[0] !== LF && chunk[0] !== CR) {
callback(createMaxEventSizeExceededError());
return;
}
this.chunks.push(chunk); this.chunks.push(chunk);
if (this.checkBOM) { if (this.checkBOM) {
if (this.handleBOM()) { if (this.handleBOM()) {
@@ -18421,18 +18464,32 @@ var require_eventsource_stream = __commonJS({
if (byte === CR) { if (byte === CR) {
this.crlfCheck = true; this.crlfCheck = true;
} }
try {
this.parseLine(this.readLine(), this.event); this.parseLine(this.readLine(), this.event);
} catch (error2) {
callback(error2);
return;
}
this.consumeCurrentByte(); this.consumeCurrentByte();
this.eventEndCheck = true; this.eventEndCheck = true;
continue; continue;
} }
if (this.maxEventSize > 0 && ++this.lineLength > this.maxEventSize + 7) {
callback(createMaxEventSizeExceededError());
return;
}
this.advanceCursor(); this.advanceCursor();
} }
callback(); callback();
} }
_destroy(error2, callback) {
this.chunks.length = 0;
this.clearEvent();
super._destroy(error2, callback);
}
/** /**
* @param {Buffer} line * @param {Buffer} line
* @param {EventStreamEvent} event * @param {EventSourceStreamEvent} event
*/ */
parseLine(line, event) { parseLine(line, event) {
if (line.length === 0) { if (line.length === 0) {
@@ -18452,6 +18509,12 @@ var require_eventsource_stream = __commonJS({
} }
} }
if (isFieldName(line, fieldLength, DATA)) { if (isFieldName(line, fieldLength, DATA)) {
if (this.maxEventSize > 0 && this.dataLineCount >= this.maxDataLines) {
throw createMaxEventSizeExceededError();
}
const valueBytes = line.length - valueStart;
const dataSize = this.eventFieldSizes.data + (event.data === void 0 ? 0 : 1) + valueBytes;
this.setEventFieldSize("data", dataSize);
const value = line.toString("utf8", valueStart); const value = line.toString("utf8", valueStart);
if (event.data === void 0) { if (event.data === void 0) {
event.data = value; event.data = value;
@@ -18459,27 +18522,38 @@ var require_eventsource_stream = __commonJS({
event.data += ` event.data += `
${value}`; ${value}`;
} }
this.dataLineCount++;
return; return;
} }
if (isFieldName(line, fieldLength, RETRY)) { if (isFieldName(line, fieldLength, RETRY)) {
if (isASCIINumberBytes(line, valueStart)) { if (isASCIINumberBytes(line, valueStart)) {
this.setEventFieldSize("retry", line.length - valueStart);
event.retry = line.toString("utf8", valueStart); event.retry = line.toString("utf8", valueStart);
} }
return; return;
} }
if (isFieldName(line, fieldLength, ID)) { if (isFieldName(line, fieldLength, ID)) {
if (isValidLastEventIdBytes(line, valueStart)) { if (isValidLastEventIdBytes(line, valueStart)) {
this.setEventFieldSize("id", line.length - valueStart);
event.id = line.toString("utf8", valueStart); event.id = line.toString("utf8", valueStart);
} }
return; return;
} }
if (isFieldName(line, fieldLength, EVENT)) { if (isFieldName(line, fieldLength, EVENT)) {
const value = line.toString("utf8", valueStart); if (valueStart < line.length) {
if (value.length > 0) { this.setEventFieldSize("event", line.length - valueStart);
event.event = value; event.event = line.toString("utf8", valueStart);
} }
} }
} }
setEventFieldSize(field, size) {
const eventSize = this.eventSize - this.eventFieldSizes[field] + size;
if (this.maxEventSize > 0 && eventSize > this.maxEventSize) {
throw createMaxEventSizeExceededError();
}
this.eventSize = eventSize;
this.eventFieldSizes[field] = size;
}
/** /**
* @param {EventSourceStreamEvent} event * @param {EventSourceStreamEvent} event
*/ */
@@ -18506,6 +18580,12 @@ ${value}`;
this.event.event = void 0; this.event.event = void 0;
this.event.id = void 0; this.event.id = void 0;
this.event.retry = void 0; this.event.retry = void 0;
this.eventSize = 0;
this.dataLineCount = 0;
this.eventFieldSizes.data = 0;
this.eventFieldSizes.event = 0;
this.eventFieldSizes.id = 0;
this.eventFieldSizes.retry = 0;
} }
hasPendingEvent() { hasPendingEvent() {
return this.event.data !== void 0 || this.event.event !== void 0 || this.event.id !== void 0 || this.event.retry !== void 0; return this.event.data !== void 0 || this.event.event !== void 0 || this.event.id !== void 0 || this.event.retry !== void 0;
@@ -18530,13 +18610,15 @@ ${value}`;
syncLineStartToCursor() { syncLineStartToCursor() {
this.lineChunkIndex = this.chunkIndex; this.lineChunkIndex = this.chunkIndex;
this.linePos = this.pos; this.linePos = this.pos;
this.lineLength = 0;
this.dropConsumedChunks(); this.dropConsumedChunks();
} }
dropConsumedChunks() { dropConsumedChunks() {
while (this.lineChunkIndex > 0) { if (this.lineChunkIndex > 0) {
this.chunks.shift(); const consumed = this.lineChunkIndex;
this.lineChunkIndex--; this.chunks.splice(0, consumed);
this.chunkIndex--; this.lineChunkIndex = 0;
this.chunkIndex -= consumed;
} }
if (this.chunkIndex === this.chunks.length) { if (this.chunkIndex === this.chunks.length) {
this.chunks.length = 0; this.chunks.length = 0;
@@ -18639,6 +18721,7 @@ var require_eventsource = __commonJS({
var { delay } = require_util8(); var { delay } = require_util8();
var { kEnumerableProperty } = require_util(); var { kEnumerableProperty } = require_util();
var { environmentSettingsObject } = require_util2(); var { environmentSettingsObject } = require_util2();
var { getGlobalDispatcher } = require_global2();
var experimentalWarned = false; var experimentalWarned = false;
var defaultReconnectionTime = 3e3; var defaultReconnectionTime = 3e3;
var CONNECTING = 0; var CONNECTING = 0;
@@ -18779,6 +18862,7 @@ var require_eventsource = __commonJS({
this.#state.origin = response.urlList[response.urlList.length - 1].origin; this.#state.origin = response.urlList[response.urlList.length - 1].origin;
const eventSourceStream = new EventSourceStream({ const eventSourceStream = new EventSourceStream({
eventSourceSettings: this.#state, eventSourceSettings: this.#state,
maxEventSize: this.#dispatcher.eventSourceOptions?.maxEventSize,
push: (event) => { push: (event) => {
this.dispatchEvent(createFastMessageEvent( this.dispatchEvent(createFastMessageEvent(
event.type, event.type,
@@ -18911,7 +18995,8 @@ var require_eventsource = __commonJS({
{ {
key: "dispatcher", key: "dispatcher",
// undici only // undici only
converter: webidl.converters.any converter: webidl.converters.any,
defaultValue: () => getGlobalDispatcher()
} }
]); ]);
module2.exports = { module2.exports = {
+114 -29
View File
@@ -2101,6 +2101,7 @@ var require_dispatcher = __commonJS({
var require_dispatcher_base = __commonJS({ var require_dispatcher_base = __commonJS({
"node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js"(exports2, module2) { "node_modules/@actions/http-client/node_modules/undici/lib/dispatcher/dispatcher-base.js"(exports2, module2) {
"use strict"; "use strict";
var buffer = require("node:buffer");
var Dispatcher = require_dispatcher(); var Dispatcher = require_dispatcher();
var { var {
ClientDestroyedError, ClientDestroyedError,
@@ -2112,6 +2113,7 @@ var require_dispatcher_base = __commonJS({
var kOnClosed = /* @__PURE__ */ Symbol("onClosed"); var kOnClosed = /* @__PURE__ */ Symbol("onClosed");
var kInterceptedDispatch = /* @__PURE__ */ Symbol("Intercepted Dispatch"); var kInterceptedDispatch = /* @__PURE__ */ Symbol("Intercepted Dispatch");
var kWebSocketOptions = /* @__PURE__ */ Symbol("webSocketOptions"); var kWebSocketOptions = /* @__PURE__ */ Symbol("webSocketOptions");
var kEventSourceOptions = /* @__PURE__ */ Symbol("eventSourceOptions");
var DispatcherBase = class extends Dispatcher { var DispatcherBase = class extends Dispatcher {
constructor(opts) { constructor(opts) {
super(); super();
@@ -2120,6 +2122,7 @@ var require_dispatcher_base = __commonJS({
this[kClosed] = false; this[kClosed] = false;
this[kOnClosed] = []; this[kOnClosed] = [];
this[kWebSocketOptions] = opts?.webSocket ?? {}; this[kWebSocketOptions] = opts?.webSocket ?? {};
this[kEventSourceOptions] = opts?.eventSource ?? {};
} }
get webSocketOptions() { get webSocketOptions() {
return { return {
@@ -2127,6 +2130,11 @@ var require_dispatcher_base = __commonJS({
maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024 maxPayloadSize: this[kWebSocketOptions].maxPayloadSize ?? 128 * 1024 * 1024
}; };
} }
get eventSourceOptions() {
return {
maxEventSize: this[kEventSourceOptions].maxEventSize ?? buffer.kStringMaxLength
};
}
get destroyed() { get destroyed() {
return this[kDestroyed]; return this[kDestroyed];
} }
@@ -6274,7 +6282,6 @@ var require_client_h1 = __commonJS({
socket[kSocketUsed] = false; socket[kSocketUsed] = false;
socket[kParser] = new Parser(client, socket, llhttpInstance); socket[kParser] = new Parser(client, socket, llhttpInstance);
addListener(socket, "error", function(err) { addListener(socket, "error", function(err) {
assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
const parser = this[kParser]; const parser = this[kParser];
if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) { if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
const parserErr = parser.finish(); const parserErr = parser.finish();
@@ -6958,7 +6965,6 @@ var require_client_h2 = __commonJS({
client[kHTTP2Session] = session; client[kHTTP2Session] = session;
socket[kHTTP2Session] = session; socket[kHTTP2Session] = session;
util.addListener(socket, "error", function(err) { util.addListener(socket, "error", function(err) {
assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
this[kError] = err; this[kError] = err;
this[kClient][kOnError](err); this[kClient][kOnError](err);
}); });
@@ -7017,7 +7023,6 @@ var require_client_h2 = __commonJS({
} }
} }
function onHttp2SessionError(err) { function onHttp2SessionError(err) {
assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
this[kSocket][kError] = err; this[kSocket][kError] = err;
this[kClient][kOnError](err); this[kClient][kOnError](err);
} }
@@ -7711,9 +7716,10 @@ var require_client = __commonJS({
// h2 // h2
maxConcurrentStreams, maxConcurrentStreams,
allowH2, allowH2,
webSocket webSocket,
eventSource
} = {}) { } = {}) {
super({ webSocket }); super({ webSocket, eventSource });
if (keepAlive !== void 0) { if (keepAlive !== void 0) {
throw new InvalidArgumentError("unsupported keepAlive, use pipelining=0 instead"); throw new InvalidArgumentError("unsupported keepAlive, use pipelining=0 instead");
} }
@@ -8610,7 +8616,7 @@ var require_agent = __commonJS({
return opts && opts.connections === 1 ? new Client(origin, opts) : new Pool(origin, opts); return opts && opts.connections === 1 ? new Client(origin, opts) : new Pool(origin, opts);
} }
var Agent3 = class extends DispatcherBase { var Agent3 = class extends DispatcherBase {
constructor({ factory = defaultFactory, maxRedirections = 0, connect, ...options } = {}) { constructor({ factory = defaultFactory, maxRedirections = 0, connect, tls, ...options } = {}) {
if (typeof factory !== "function") { if (typeof factory !== "function") {
throw new InvalidArgumentError("factory must be a function."); throw new InvalidArgumentError("factory must be a function.");
} }
@@ -8624,8 +8630,11 @@ var require_agent = __commonJS({
if (connect && typeof connect !== "function") { if (connect && typeof connect !== "function") {
connect = { ...connect }; connect = { ...connect };
} }
if (tls && typeof tls !== "function") {
tls = { ...tls };
}
this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })]; this[kInterceptors] = options.interceptors?.Agent && Array.isArray(options.interceptors.Agent) ? options.interceptors.Agent : [createRedirectInterceptor({ maxRedirections })];
this[kOptions] = { ...util.deepClone(options), connect }; this[kOptions] = { ...util.deepClone(options), connect, tls };
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0; this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
this[kMaxRedirections] = maxRedirections; this[kMaxRedirections] = maxRedirections;
this[kFactory] = factory; this[kFactory] = factory;
@@ -14353,8 +14362,9 @@ var require_fetch = __commonJS({
} }
); );
response.body = { stream, source: null, length: null }; response.body = { stream, source: null, length: null };
fetchParams.controller.onAborted = onAborted; if (!fetchParams.controller.resume) {
fetchParams.controller.on("terminated", onAborted); fetchParams.controller.on("terminated", onAborted);
}
fetchParams.controller.resume = async () => { fetchParams.controller.resume = async () => {
while (true) { while (true) {
let bytes; let bytes;
@@ -14454,7 +14464,6 @@ var require_fetch = __commonJS({
headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true); headersList.append(bufferToLowerCasedHeaderName(rawHeaders[i]), rawHeaders[i + 1].toString("latin1"), true);
} }
location = headersList.get("location", true); location = headersList.get("location", true);
this.body = new Readable({ read: resume });
const decoders = []; const decoders = [];
const willFollow = location && request2.redirect === "follow" && redirectStatusSet.has(status); const willFollow = location && request2.redirect === "follow" && redirectStatusSet.has(status);
if (request2.method !== "HEAD" && request2.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) { if (request2.method !== "HEAD" && request2.method !== "CONNECT" && !nullBodyStatus.includes(status) && !willFollow) {
@@ -14462,7 +14471,7 @@ var require_fetch = __commonJS({
const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : []; const codings = contentEncoding ? contentEncoding.toLowerCase().split(",") : [];
const maxContentEncodings = 5; const maxContentEncodings = 5;
if (codings.length > maxContentEncodings) { if (codings.length > maxContentEncodings) {
reject(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`)); this.abort(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`));
return true; return true;
} }
for (let i = codings.length - 1; i >= 0; --i) { for (let i = codings.length - 1; i >= 0; --i) {
@@ -14492,6 +14501,7 @@ var require_fetch = __commonJS({
} }
} }
} }
this.body = new Readable({ read: resume });
const onError = this.onError.bind(this); const onError = this.onError.bind(this);
resolve2({ resolve2({
status, status,
@@ -14517,9 +14527,6 @@ var require_fetch = __commonJS({
if (this.abort) { if (this.abort) {
fetchParams.controller.off("terminated", this.abort); fetchParams.controller.off("terminated", this.abort);
} }
if (fetchParams.controller.onAborted) {
fetchParams.controller.off("terminated", fetchParams.controller.onAborted);
}
fetchParams.controller.ended = true; fetchParams.controller.ended = true;
this.body.push(null); this.body.push(null);
}, },
@@ -17593,6 +17600,16 @@ var require_receiver = __commonJS({
if (isControlFrame(this.#info.opcode)) { if (isControlFrame(this.#info.opcode)) {
this.#loop = this.parseControlFrame(body); this.#loop = this.parseControlFrame(body);
this.#state = parserStates.INFO; this.#state = parserStates.INFO;
const socket = this.ws[kResponse].socket;
if (this.#loop && socket.writableNeedDrain) {
this.#loop = false;
socket.once("drain", () => {
if (this.destroyed) return;
this.#loop = true;
this.run(callback);
});
return;
}
} else { } else {
if (!this.#info.compressed) { if (!this.#info.compressed) {
if (!this.writeFragments(body)) { if (!this.writeFragments(body)) {
@@ -18286,6 +18303,7 @@ var require_util8 = __commonJS({
var require_eventsource_stream = __commonJS({ var require_eventsource_stream = __commonJS({
"node_modules/@actions/http-client/node_modules/undici/lib/web/eventsource/eventsource-stream.js"(exports2, module2) { "node_modules/@actions/http-client/node_modules/undici/lib/web/eventsource/eventsource-stream.js"(exports2, module2) {
"use strict"; "use strict";
var buffer = require("node:buffer");
var { Transform } = require("node:stream"); var { Transform } = require("node:stream");
var { isASCIINumber, isValidLastEventId } = require_util8(); var { isASCIINumber, isValidLastEventId } = require_util8();
var BOM = [239, 187, 191]; var BOM = [239, 187, 191];
@@ -18293,24 +18311,28 @@ var require_eventsource_stream = __commonJS({
var CR = 13; var CR = 13;
var COLON = 58; var COLON = 58;
var SPACE = 32; var SPACE = 32;
var defaultMaxEventSize = buffer.kStringMaxLength;
var DATA = Buffer.from("data"); var DATA = Buffer.from("data");
var EVENT = Buffer.from("event"); var EVENT = Buffer.from("event");
var ID = Buffer.from("id"); var ID = Buffer.from("id");
var RETRY = Buffer.from("retry"); var RETRY = Buffer.from("retry");
function isASCIINumberBytes(buffer, start) { var minParserItems = 1024;
if (start >= buffer.length) { var maxParserItems = 131072;
var bytesPerParserItem = 128;
function isASCIINumberBytes(buffer2, start) {
if (start >= buffer2.length) {
return false; return false;
} }
for (let i = start; i < buffer.length; i++) { for (let i = start; i < buffer2.length; i++) {
if (buffer[i] < 48 || buffer[i] > 57) { if (buffer2[i] < 48 || buffer2[i] > 57) {
return false; return false;
} }
} }
return true; return true;
} }
function isValidLastEventIdBytes(buffer, start) { function isValidLastEventIdBytes(buffer2, start) {
for (let i = start; i < buffer.length; i++) { for (let i = start; i < buffer2.length; i++) {
if (buffer[i] === 0) { if (buffer2[i] === 0) {
return false; return false;
} }
} }
@@ -18327,6 +18349,11 @@ var require_eventsource_stream = __commonJS({
} }
return true; return true;
} }
function createMaxEventSizeExceededError() {
const error2 = new Error("EventSource message size exceeded");
error2.aborted = false;
return error2;
}
var EventSourceStream = class extends Transform { var EventSourceStream = class extends Transform {
/** /**
* @type {eventSourceSettings} * @type {eventSourceSettings}
@@ -18353,6 +18380,13 @@ var require_eventsource_stream = __commonJS({
pos = 0; pos = 0;
lineChunkIndex = 0; lineChunkIndex = 0;
linePos = 0; linePos = 0;
lineLength = 0;
eventSize = 0;
eventFieldSizes = { data: 0, event: 0, id: 0, retry: 0 };
dataLineCount = 0;
maxEventSize;
maxDataLines;
maxBufferedChunks;
event = { event = {
data: void 0, data: void 0,
event: void 0, event: void 0,
@@ -18361,6 +18395,7 @@ var require_eventsource_stream = __commonJS({
}; };
/** /**
* @param {object} options * @param {object} options
* @param {number} [options.maxEventSize]
* @param {eventSourceSettings} options.eventSourceSettings * @param {eventSourceSettings} options.eventSourceSettings
* @param {Function} [options.push] * @param {Function} [options.push]
*/ */
@@ -18368,6 +18403,10 @@ var require_eventsource_stream = __commonJS({
options.readableObjectMode = true; options.readableObjectMode = true;
super(options); super(options);
this.state = options.eventSourceSettings || {}; this.state = options.eventSourceSettings || {};
this.maxEventSize = options.maxEventSize ?? defaultMaxEventSize;
const parserItemLimit = this.maxEventSize > 0 ? Math.min(maxParserItems, Math.max(minParserItems, Math.floor(this.maxEventSize / bytesPerParserItem))) : 0;
this.maxDataLines = parserItemLimit;
this.maxBufferedChunks = parserItemLimit;
if (options.push) { if (options.push) {
this.push = options.push; this.push = options.push;
} }
@@ -18383,6 +18422,10 @@ var require_eventsource_stream = __commonJS({
callback(); callback();
return; return;
} }
if (this.maxEventSize > 0 && this.chunks.length >= this.maxBufferedChunks && chunk[0] !== LF && chunk[0] !== CR) {
callback(createMaxEventSizeExceededError());
return;
}
this.chunks.push(chunk); this.chunks.push(chunk);
if (this.checkBOM) { if (this.checkBOM) {
if (this.handleBOM()) { if (this.handleBOM()) {
@@ -18419,18 +18462,32 @@ var require_eventsource_stream = __commonJS({
if (byte === CR) { if (byte === CR) {
this.crlfCheck = true; this.crlfCheck = true;
} }
try {
this.parseLine(this.readLine(), this.event); this.parseLine(this.readLine(), this.event);
} catch (error2) {
callback(error2);
return;
}
this.consumeCurrentByte(); this.consumeCurrentByte();
this.eventEndCheck = true; this.eventEndCheck = true;
continue; continue;
} }
if (this.maxEventSize > 0 && ++this.lineLength > this.maxEventSize + 7) {
callback(createMaxEventSizeExceededError());
return;
}
this.advanceCursor(); this.advanceCursor();
} }
callback(); callback();
} }
_destroy(error2, callback) {
this.chunks.length = 0;
this.clearEvent();
super._destroy(error2, callback);
}
/** /**
* @param {Buffer} line * @param {Buffer} line
* @param {EventStreamEvent} event * @param {EventSourceStreamEvent} event
*/ */
parseLine(line, event) { parseLine(line, event) {
if (line.length === 0) { if (line.length === 0) {
@@ -18450,6 +18507,12 @@ var require_eventsource_stream = __commonJS({
} }
} }
if (isFieldName(line, fieldLength, DATA)) { if (isFieldName(line, fieldLength, DATA)) {
if (this.maxEventSize > 0 && this.dataLineCount >= this.maxDataLines) {
throw createMaxEventSizeExceededError();
}
const valueBytes = line.length - valueStart;
const dataSize = this.eventFieldSizes.data + (event.data === void 0 ? 0 : 1) + valueBytes;
this.setEventFieldSize("data", dataSize);
const value = line.toString("utf8", valueStart); const value = line.toString("utf8", valueStart);
if (event.data === void 0) { if (event.data === void 0) {
event.data = value; event.data = value;
@@ -18457,27 +18520,38 @@ var require_eventsource_stream = __commonJS({
event.data += ` event.data += `
${value}`; ${value}`;
} }
this.dataLineCount++;
return; return;
} }
if (isFieldName(line, fieldLength, RETRY)) { if (isFieldName(line, fieldLength, RETRY)) {
if (isASCIINumberBytes(line, valueStart)) { if (isASCIINumberBytes(line, valueStart)) {
this.setEventFieldSize("retry", line.length - valueStart);
event.retry = line.toString("utf8", valueStart); event.retry = line.toString("utf8", valueStart);
} }
return; return;
} }
if (isFieldName(line, fieldLength, ID)) { if (isFieldName(line, fieldLength, ID)) {
if (isValidLastEventIdBytes(line, valueStart)) { if (isValidLastEventIdBytes(line, valueStart)) {
this.setEventFieldSize("id", line.length - valueStart);
event.id = line.toString("utf8", valueStart); event.id = line.toString("utf8", valueStart);
} }
return; return;
} }
if (isFieldName(line, fieldLength, EVENT)) { if (isFieldName(line, fieldLength, EVENT)) {
const value = line.toString("utf8", valueStart); if (valueStart < line.length) {
if (value.length > 0) { this.setEventFieldSize("event", line.length - valueStart);
event.event = value; event.event = line.toString("utf8", valueStart);
} }
} }
} }
setEventFieldSize(field, size) {
const eventSize = this.eventSize - this.eventFieldSizes[field] + size;
if (this.maxEventSize > 0 && eventSize > this.maxEventSize) {
throw createMaxEventSizeExceededError();
}
this.eventSize = eventSize;
this.eventFieldSizes[field] = size;
}
/** /**
* @param {EventSourceStreamEvent} event * @param {EventSourceStreamEvent} event
*/ */
@@ -18504,6 +18578,12 @@ ${value}`;
this.event.event = void 0; this.event.event = void 0;
this.event.id = void 0; this.event.id = void 0;
this.event.retry = void 0; this.event.retry = void 0;
this.eventSize = 0;
this.dataLineCount = 0;
this.eventFieldSizes.data = 0;
this.eventFieldSizes.event = 0;
this.eventFieldSizes.id = 0;
this.eventFieldSizes.retry = 0;
} }
hasPendingEvent() { hasPendingEvent() {
return this.event.data !== void 0 || this.event.event !== void 0 || this.event.id !== void 0 || this.event.retry !== void 0; return this.event.data !== void 0 || this.event.event !== void 0 || this.event.id !== void 0 || this.event.retry !== void 0;
@@ -18528,13 +18608,15 @@ ${value}`;
syncLineStartToCursor() { syncLineStartToCursor() {
this.lineChunkIndex = this.chunkIndex; this.lineChunkIndex = this.chunkIndex;
this.linePos = this.pos; this.linePos = this.pos;
this.lineLength = 0;
this.dropConsumedChunks(); this.dropConsumedChunks();
} }
dropConsumedChunks() { dropConsumedChunks() {
while (this.lineChunkIndex > 0) { if (this.lineChunkIndex > 0) {
this.chunks.shift(); const consumed = this.lineChunkIndex;
this.lineChunkIndex--; this.chunks.splice(0, consumed);
this.chunkIndex--; this.lineChunkIndex = 0;
this.chunkIndex -= consumed;
} }
if (this.chunkIndex === this.chunks.length) { if (this.chunkIndex === this.chunks.length) {
this.chunks.length = 0; this.chunks.length = 0;
@@ -18637,6 +18719,7 @@ var require_eventsource = __commonJS({
var { delay } = require_util8(); var { delay } = require_util8();
var { kEnumerableProperty } = require_util(); var { kEnumerableProperty } = require_util();
var { environmentSettingsObject } = require_util2(); var { environmentSettingsObject } = require_util2();
var { getGlobalDispatcher } = require_global2();
var experimentalWarned = false; var experimentalWarned = false;
var defaultReconnectionTime = 3e3; var defaultReconnectionTime = 3e3;
var CONNECTING = 0; var CONNECTING = 0;
@@ -18777,6 +18860,7 @@ var require_eventsource = __commonJS({
this.#state.origin = response.urlList[response.urlList.length - 1].origin; this.#state.origin = response.urlList[response.urlList.length - 1].origin;
const eventSourceStream = new EventSourceStream({ const eventSourceStream = new EventSourceStream({
eventSourceSettings: this.#state, eventSourceSettings: this.#state,
maxEventSize: this.#dispatcher.eventSourceOptions?.maxEventSize,
push: (event) => { push: (event) => {
this.dispatchEvent(createFastMessageEvent( this.dispatchEvent(createFastMessageEvent(
event.type, event.type,
@@ -18909,7 +18993,8 @@ var require_eventsource = __commonJS({
{ {
key: "dispatcher", key: "dispatcher",
// undici only // undici only
converter: webidl.converters.any converter: webidl.converters.any,
defaultValue: () => getGlobalDispatcher()
} }
]); ]);
module2.exports = { module2.exports = {
+17 -17
View File
@@ -1,26 +1,26 @@
{ {
"name": "create-github-app-token", "name": "create-github-app-token",
"version": "3.3.0", "version": "3.4.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "create-github-app-token", "name": "create-github-app-token",
"version": "3.3.0", "version": "3.4.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^3.0.1", "@actions/core": "^3.0.1",
"@octokit/auth-app": "^8.3.1", "@octokit/auth-app": "^8.3.1",
"@octokit/request": "^10.0.8", "@octokit/request": "^10.0.8",
"is-network-error": "^1.3.2", "is-network-error": "^1.3.2",
"p-retry": "^8.0.1" "p-retry": "^9.0.0"
}, },
"devDependencies": { "devDependencies": {
"@octokit/openapi": "^24.0.0", "@octokit/openapi": "^24.0.0",
"c8": "^12.0.0", "c8": "^12.0.0",
"esbuild": "^0.28.2", "esbuild": "^0.28.2",
"open-cli": "^9.0.0", "open-cli": "^9.0.0",
"undici": "^8.11.2", "undici": "^8.14.0",
"yaml": "^2.9.1" "yaml": "^2.9.1"
}, },
"engines": { "engines": {
@@ -57,9 +57,9 @@
} }
}, },
"node_modules/@actions/http-client/node_modules/undici": { "node_modules/@actions/http-client/node_modules/undici": {
"version": "6.29.0", "version": "6.29.1",
"resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz", "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz",
"integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==", "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=18.17" "node": ">=18.17"
@@ -908,9 +908,9 @@
"dev": true "dev": true
}, },
"node_modules/cross-spawn": { "node_modules/cross-spawn": {
"version": "7.0.6", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz",
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -1498,12 +1498,12 @@
} }
}, },
"node_modules/p-retry": { "node_modules/p-retry": {
"version": "8.0.1", "version": "9.0.0",
"resolved": "https://registry.npmjs.org/p-retry/-/p-retry-8.0.1.tgz", "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-9.0.0.tgz",
"integrity": "sha512-NAigyu8hfvJe7MsS18mnc4is0MZtau3QMdBklaJKK23oBQb6occO3UPM3vHmTckW8KhfyjMZaUOqdTFEYliHgg==", "integrity": "sha512-HuEats8gYn/UUYa5uyveyQGv75mQmwdFtuMgnZlS12dj/7bdnJSO6keaTjgcZUhvkANTj5EO3lACUmV3xmgj0Q==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"is-network-error": "^1.3.0" "is-network-error": "^1.3.2"
}, },
"engines": { "engines": {
"node": ">=22" "node": ">=22"
@@ -1806,9 +1806,9 @@
} }
}, },
"node_modules/undici": { "node_modules/undici": {
"version": "8.11.2", "version": "8.14.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-8.11.2.tgz", "resolved": "https://registry.npmjs.org/undici/-/undici-8.14.0.tgz",
"integrity": "sha512-u4UB2/IrKdU6lFxumHmmo1a3fCQO5tzQllRorfoRS63txhrB7xTpSn1PftwC4qEHkOaqP95fCWW4lJzwErwzhQ==", "integrity": "sha512-MqM6wqORYo0jb1WFUwFKZTFWFz6VeBMPj9op5Hq+RvlrQjISQCyLEfx5+/iqOLWC/LL1HliJ5t0NP1BgYpXeVQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
+3 -3
View File
@@ -2,7 +2,7 @@
"name": "create-github-app-token", "name": "create-github-app-token",
"private": true, "private": true,
"type": "module", "type": "module",
"version": "3.3.0", "version": "3.4.0",
"description": "GitHub Action for creating a GitHub App Installation Access Token", "description": "GitHub Action for creating a GitHub App Installation Access Token",
"engines": { "engines": {
"node": ">=24.4.0" "node": ">=24.4.0"
@@ -20,14 +20,14 @@
"@octokit/auth-app": "^8.3.1", "@octokit/auth-app": "^8.3.1",
"@octokit/request": "^10.0.8", "@octokit/request": "^10.0.8",
"is-network-error": "^1.3.2", "is-network-error": "^1.3.2",
"p-retry": "^8.0.1" "p-retry": "^9.0.0"
}, },
"devDependencies": { "devDependencies": {
"@octokit/openapi": "^24.0.0", "@octokit/openapi": "^24.0.0",
"c8": "^12.0.0", "c8": "^12.0.0",
"esbuild": "^0.28.2", "esbuild": "^0.28.2",
"open-cli": "^9.0.0", "open-cli": "^9.0.0",
"undici": "^8.11.2", "undici": "^8.14.0",
"yaml": "^2.9.1" "yaml": "^2.9.1"
} }
} }
+3 -3
View File
@@ -1,6 +1,6 @@
import { readdirSync } from "node:fs"; import { readdirSync } from "node:fs";
import { execFile } from "node:child_process"; import { execFile } from "node:child_process";
import { promisify } from "node:util"; import { promisify, stripVTControlCharacters } from "node:util";
import { snapshot, test } from "node:test"; import { snapshot, test } from "node:test";
@@ -60,8 +60,8 @@ for (const file of testFiles) {
({ stderr, stdout } = error); ({ stderr, stdout } = error);
} }
const trimmedStderr = stderr.replace(/\r?\n$/, ""); const trimmedStderr = stripVTControlCharacters(stderr).replace(/\r?\n$/, "");
const trimmedStdout = stdout.replace(/\r?\n$/, ""); const trimmedStdout = stripVTControlCharacters(stdout).replace(/\r?\n$/, "");
await t.test("stderr", (t) => { await t.test("stderr", (t) => {
if (trimmedStderr) t.assert.snapshot(trimmedStderr); if (trimmedStderr) t.assert.snapshot(trimmedStderr);
else t.assert.strictEqual(trimmedStderr, ""); else t.assert.strictEqual(trimmedStderr, "");