Compare commits

...

3 Commits

Author SHA1 Message Date
semantic-release-bot 29824e69f5 build(release): 2.2.1 [skip ci]
## [2.2.1](https://github.com/actions/create-github-app-token/compare/v2.2.0...v2.2.1) (2025-12-05)

### Bug Fixes

* **deps:** bump the production-dependencies group with 2 updates ([#311](https://github.com/actions/create-github-app-token/issues/311)) ([b212e6a](https://github.com/actions/create-github-app-token/commit/b212e6a739dec02d8488610fbaf8f049f82ee999))
2025-12-05 22:53:03 +00:00
dependabot[bot] b212e6a739 fix(deps): bump the production-dependencies group with 2 updates (#311)
Bumps the production-dependencies group with 2 updates:
[@octokit/auth-app](https://github.com/octokit/auth-app.js) and
[@octokit/request](https://github.com/octokit/request.js).

Updates `@octokit/auth-app` from 8.1.1 to 8.1.2
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/octokit/auth-app.js/releases"><code>@​octokit/auth-app</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v8.1.2</h2>
<h2><a
href="https://github.com/octokit/auth-app.js/compare/v8.1.1...v8.1.2">8.1.2</a>
(2025-10-31)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> update dependency
<code>@​octokit/types</code> to v16 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/731">#731</a>)
(<a
href="https://github.com/octokit/auth-app.js/commit/016958a122fcd868c36f5c82200e5dfd14a90266">016958a</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/octokit/auth-app.js/commit/016958a122fcd868c36f5c82200e5dfd14a90266"><code>016958a</code></a>
fix(deps): update dependency <code>@​octokit/types</code> to v16 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/731">#731</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/6290a83e69d4b9912abe90e6a67108eb38e396df"><code>6290a83</code></a>
ci(action): update peter-evans/create-or-update-comment action to v5 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/723">#723</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/767ba94f5008c636b227cc429e8fad3fd9c81262"><code>767ba94</code></a>
ci(action): update actions/setup-node action to v6 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/727">#727</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/a6b03f2d5fd57f6d4dda580ce04ac39c5db2e95f"><code>a6b03f2</code></a>
ci(action): update github/codeql-action action to v4 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/726">#726</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/f6eb9c8e3403c385cc6a7494373b93eb5e1873c0"><code>f6eb9c8</code></a>
chore(deps): update dependency node to v24 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/730">#730</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/f50e21a0a071d4780e84bdf080396bde66268a74"><code>f50e21a</code></a>
ci(action): update actions/setup-node action to v5 (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/718">#718</a>)</li>
<li><a
href="https://github.com/octokit/auth-app.js/commit/7f24cee3c5d05a614b89b87c84ccdd5d4aea37b1"><code>7f24cee</code></a>
build(deps): lock file maintenance (<a
href="https://redirect.github.com/octokit/auth-app.js/issues/719">#719</a>)</li>
<li>See full diff in <a
href="https://github.com/octokit/auth-app.js/compare/v8.1.1...v8.1.2">compare
view</a></li>
</ul>
</details>
<br />

Updates `@octokit/request` from 10.0.5 to 10.0.7
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/octokit/request.js/releases"><code>@​octokit/request</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v10.0.7</h2>
<h2><a
href="https://github.com/octokit/request.js/compare/v10.0.6...v10.0.7">10.0.7</a>
(2025-11-13)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>readme:</strong> properly structure the options for custom
agent (<a
href="https://redirect.github.com/octokit/request.js/issues/786">#786</a>)
(<a
href="https://github.com/octokit/request.js/commit/f17c1c13c7cba81187c419da06b815ed741c950c">f17c1c1</a>),
closes <a
href="https://redirect.github.com/octokit/request.js/issues/785">#785</a></li>
</ul>
<h2>v10.0.6</h2>
<h2><a
href="https://github.com/octokit/request.js/compare/v10.0.5...v10.0.6">10.0.6</a>
(2025-10-30)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>deps:</strong> update dependency
<code>@​octokit/types</code> to v16 (<a
href="https://redirect.github.com/octokit/request.js/issues/783">#783</a>)
(<a
href="https://github.com/octokit/request.js/commit/1aeac5672c04bc508e46796660465b1b67cf397c">1aeac56</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/octokit/request.js/commit/f17c1c13c7cba81187c419da06b815ed741c950c"><code>f17c1c1</code></a>
fix(readme): properly structure the options for custom agent (<a
href="https://redirect.github.com/octokit/request.js/issues/786">#786</a>)</li>
<li><a
href="https://github.com/octokit/request.js/commit/ea46fa9cd46f970fad5e286e6fdd2ea46929ac5d"><code>ea46fa9</code></a>
ci(action): update github/codeql-action action to v4 (<a
href="https://redirect.github.com/octokit/request.js/issues/778">#778</a>)</li>
<li><a
href="https://github.com/octokit/request.js/commit/8166d281814326b3e11d60b1895e623f2fd51c9e"><code>8166d28</code></a>
chore(deps): update vitest monorepo to v4 (major) (<a
href="https://redirect.github.com/octokit/request.js/issues/781">#781</a>)</li>
<li><a
href="https://github.com/octokit/request.js/commit/1aeac5672c04bc508e46796660465b1b67cf397c"><code>1aeac56</code></a>
fix(deps): update dependency <code>@​octokit/types</code> to v16 (<a
href="https://redirect.github.com/octokit/request.js/issues/783">#783</a>)</li>
<li><a
href="https://github.com/octokit/request.js/commit/b5b08a2ffde04d7c9ee3452ff86459836981e7f6"><code>b5b08a2</code></a>
ci(action): update actions/setup-node action to v6 (<a
href="https://redirect.github.com/octokit/request.js/issues/779">#779</a>)</li>
<li><a
href="https://github.com/octokit/request.js/commit/9a78123cc35f1c7cb5ac0e3cce4c2331ea5dca6e"><code>9a78123</code></a>
chore(deps): update dependency <code>@​types/node</code> to v24 (<a
href="https://redirect.github.com/octokit/request.js/issues/782">#782</a>)</li>
<li>See full diff in <a
href="https://github.com/octokit/request.js/compare/v10.0.5...v10.0.7">compare
view</a></li>
</ul>
</details>
<br />


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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@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>
2025-12-05 14:52:29 -08:00
Parker Brown 8efbf9bf0f ci: create stale workflow (#309)
Introduces a GitHub Actions workflow that automatically marks issues and
pull requests as stale after 180 days of inactivity and closes them
after an additional 60 days. This helps keep the repository clean and
maintainable by prompting action on inactive items.
2025-11-22 00:07:32 -08:00
5 changed files with 189 additions and 134 deletions
+34
View File
@@ -0,0 +1,34 @@
# This workflow warns and then closes issues that have had no activity for a specified amount of time.
# https://github.com/actions/stale
name: Stale
on:
workflow_dispatch:
schedule:
# 00:00 UTC on Mondays
- cron: '0 0 * * 1'
permissions:
issues: write
pull-requests: write
env:
DAYS_BEFORE_STALE: 180
DAYS_BEFORE_CLOSE: 60
STALE_LABEL: 'stale'
STALE_LABEL_URL: ${{github.server_url}}/${{github.repository}}/labels/stale
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v10
with:
operations-per-run: 100
days-before-stale: ${{ env.DAYS_BEFORE_STALE }}
days-before-close: ${{ env.DAYS_BEFORE_CLOSE }}
stale-issue-label: ${{ env.STALE_LABEL }}
stale-pr-label: ${{ env.STALE_LABEL }}
stale-issue-message: 'This issue has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this issue if it is no longer needed. If this issue is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.'
stale-pr-message: 'This pull request has been marked ${{ env.STALE_LABEL_URL }} because it has been open for ${{ env.DAYS_BEFORE_STALE }} days with no activity. Please close this pull request if it is no longer needed. If this pull request is still relevant and you would like it to remain open, simply update it within the next ${{ env.DAYS_BEFORE_CLOSE }} days.'
+48 -37
View File
@@ -9201,7 +9201,7 @@ var require_readable = __commonJS({
var kBody = Symbol("kBody");
var kAbort = Symbol("abort");
var kContentType = Symbol("kContentType");
var noop = () => {
var noop2 = () => {
};
module2.exports = class BodyReadable extends Readable {
constructor({
@@ -9323,7 +9323,7 @@ var require_readable = __commonJS({
return new Promise((resolve, reject) => {
const signalListenerCleanup = signal ? util.addAbortListener(signal, () => {
this.destroy();
}) : noop;
}) : noop2;
this.on("close", function() {
signalListenerCleanup();
if (signal && signal.aborted) {
@@ -9331,7 +9331,7 @@ var require_readable = __commonJS({
} else {
resolve(null);
}
}).on("error", noop).on("data", function(chunk) {
}).on("error", noop2).on("data", function(chunk) {
limit -= chunk.length;
if (limit <= 0) {
this.destroy();
@@ -20879,7 +20879,7 @@ var require_util8 = __commonJS({
yield* this[kBody];
}
};
function noop() {
function noop2() {
}
function wrapRequestBody(body) {
if (isStream(body)) {
@@ -21290,7 +21290,7 @@ var require_util8 = __commonJS({
}
var setupConnectTimeout = process.platform === "win32" ? (socketWeakRef, opts) => {
if (!opts.timeout) {
return noop;
return noop2;
}
let s1 = null;
let s2 = null;
@@ -21306,7 +21306,7 @@ var require_util8 = __commonJS({
};
} : (socketWeakRef, opts) => {
if (!opts.timeout) {
return noop;
return noop2;
}
let s1 = null;
const fastTimer = timers.setFastTimeout(() => {
@@ -25556,12 +25556,12 @@ var require_body2 = __commonJS({
random = (max) => Math.floor(Math.random() * max);
}
var textEncoder = new TextEncoder();
function noop() {
function noop2() {
}
var streamRegistry = new FinalizationRegistry((weakRef) => {
const stream = weakRef.deref();
if (stream && !stream.locked && !isDisturbed(stream) && !isErrored(stream)) {
stream.cancel("Response object has been garbage collected").catch(noop);
stream.cancel("Response object has been garbage collected").catch(noop2);
}
});
function extractBody(object, keepalive = false) {
@@ -27650,7 +27650,7 @@ var require_client2 = __commonJS({
var getDefaultNodeMaxHeaderSize = http && http.maxHeaderSize && Number.isInteger(http.maxHeaderSize) && http.maxHeaderSize > 0 ? () => http.maxHeaderSize : () => {
throw new InvalidArgumentError("http module not available or http.maxHeaderSize invalid");
};
var noop = () => {
var noop2 = () => {
};
function getPipelining(client) {
return client[kPipelining] ?? client[kHTTPContext]?.defaultPipelining ?? 1;
@@ -27924,7 +27924,7 @@ var require_client2 = __commonJS({
return;
}
if (client.destroyed) {
util.destroy(socket.on("error", noop), new ClientDestroyedError());
util.destroy(socket.on("error", noop2), new ClientDestroyedError());
client[kResume]();
return;
}
@@ -27932,7 +27932,7 @@ var require_client2 = __commonJS({
try {
client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
} catch (err2) {
socket.destroy().on("error", noop);
socket.destroy().on("error", noop2);
handleConnectError(client, err2, { host, hostname, protocol, port });
client[kResume]();
return;
@@ -28716,7 +28716,7 @@ var require_proxy_agent2 = __commonJS({
function defaultFactory(origin, opts) {
return new Pool(origin, opts);
}
var noop = () => {
var noop2 = () => {
};
function defaultAgentFactory(origin, opts) {
if (opts.connections === 1) {
@@ -28833,7 +28833,7 @@ var require_proxy_agent2 = __commonJS({
servername: this[kProxyTls]?.servername || proxyHostname
});
if (statusCode !== 200) {
socket.on("error", noop).destroy();
socket.on("error", noop2).destroy();
callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`));
}
if (opts2.protocol !== "https:") {
@@ -29500,7 +29500,7 @@ var require_readable2 = __commonJS({
var kContentLength = Symbol("kContentLength");
var kUsed = Symbol("kUsed");
var kBytesRead = Symbol("kBytesRead");
var noop = () => {
var noop2 = () => {
};
var BodyReadable = class extends Readable {
/**
@@ -29725,7 +29725,7 @@ var require_readable2 = __commonJS({
} else {
this.on("close", resolve);
}
this.on("error", noop).on("data", () => {
this.on("error", noop2).on("data", () => {
if (this[kBytesRead] > limit) {
this.destroy();
}
@@ -29894,7 +29894,7 @@ var require_api_request2 = __commonJS({
var { Readable } = require_readable2();
var { InvalidArgumentError, RequestAbortedError } = require_errors2();
var util = require_util8();
function noop() {
function noop2() {
}
var RequestHandler = class extends AsyncResource {
constructor(opts, callback) {
@@ -29921,7 +29921,7 @@ var require_api_request2 = __commonJS({
super("UNDICI_REQUEST");
} catch (err) {
if (util.isStream(body)) {
util.destroy(body.on("error", noop), err);
util.destroy(body.on("error", noop2), err);
}
throw err;
}
@@ -29944,7 +29944,7 @@ var require_api_request2 = __commonJS({
this.removeAbortListener = util.addAbortListener(signal, () => {
this.reason = signal.reason ?? new RequestAbortedError();
if (this.res) {
util.destroy(this.res.on("error", noop), this.reason);
util.destroy(this.res.on("error", noop2), this.reason);
} else if (this.abort) {
this.abort(this.reason);
}
@@ -29997,7 +29997,7 @@ var require_api_request2 = __commonJS({
});
} catch (err) {
this.res = null;
util.destroy(res.on("error", noop), err);
util.destroy(res.on("error", noop2), err);
queueMicrotask(() => {
throw err;
});
@@ -30022,13 +30022,13 @@ var require_api_request2 = __commonJS({
if (res) {
this.res = null;
queueMicrotask(() => {
util.destroy(res.on("error", noop), err);
util.destroy(res.on("error", noop2), err);
});
}
if (body) {
this.body = null;
if (util.isStream(body)) {
body.on("error", noop);
body.on("error", noop2);
util.destroy(body, err);
}
}
@@ -30124,7 +30124,7 @@ var require_api_stream2 = __commonJS({
var { InvalidArgumentError, InvalidReturnValueError } = require_errors2();
var util = require_util8();
var { addSignal, removeSignal } = require_abort_signal2();
function noop() {
function noop2() {
}
var StreamHandler = class extends AsyncResource {
constructor(opts, factory, callback) {
@@ -30151,7 +30151,7 @@ var require_api_stream2 = __commonJS({
super("UNDICI_STREAM");
} catch (err) {
if (util.isStream(body)) {
util.destroy(body.on("error", noop), err);
util.destroy(body.on("error", noop2), err);
}
throw err;
}
@@ -30293,7 +30293,7 @@ var require_api_pipeline2 = __commonJS({
} = require_errors2();
var util = require_util8();
var { addSignal, removeSignal } = require_abort_signal2();
function noop() {
function noop2() {
}
var kResume = Symbol("resume");
var PipelineRequest = class extends Readable {
@@ -30353,7 +30353,7 @@ var require_api_pipeline2 = __commonJS({
this.abort = null;
this.context = null;
this.onInfo = onInfo || null;
this.req = new PipelineRequest().on("error", noop);
this.req = new PipelineRequest().on("error", noop2);
this.ret = new Duplex({
readableObjectMode: opts.objectMode,
autoDestroy: true,
@@ -30424,7 +30424,7 @@ var require_api_pipeline2 = __commonJS({
context
});
} catch (err) {
this.res.on("error", noop);
this.res.on("error", noop2);
throw err;
}
if (!body || typeof body.on !== "function") {
@@ -32646,7 +32646,7 @@ var require_redirect_handler = __commonJS({
var EE = require("node:events");
var redirectableStatusCodes = [300, 301, 302, 303, 307, 308];
var kBody = Symbol("body");
var noop = () => {
var noop2 = () => {
};
var BodyAsyncIterable = class {
constructor(body) {
@@ -32709,14 +32709,14 @@ var require_redirect_handler = __commonJS({
if ((statusCode === 301 || statusCode === 302) && this.opts.method === "POST") {
this.opts.method = "GET";
if (util.isStream(this.opts.body)) {
util.destroy(this.opts.body.on("error", noop));
util.destroy(this.opts.body.on("error", noop2));
}
this.opts.body = null;
}
if (statusCode === 303 && this.opts.method !== "HEAD") {
this.opts.method = "GET";
if (util.isStream(this.opts.body)) {
util.destroy(this.opts.body.on("error", noop));
util.destroy(this.opts.body.on("error", noop2));
}
this.opts.body = null;
}
@@ -34104,7 +34104,7 @@ var require_cache_handler = __commonJS({
isEtagUsable
} = require_cache2();
var { parseHttpDate } = require_date();
function noop() {
function noop2() {
}
var HEURISTICALLY_CACHEABLE_STATUS_CODES = [
200,
@@ -34185,7 +34185,7 @@ var require_cache_handler = __commonJS({
);
if (!util.safeHTTPMethods.includes(this.#cacheKey.method) && statusCode >= 200 && statusCode <= 399) {
try {
this.#store.delete(this.#cacheKey)?.catch?.(noop);
this.#store.delete(this.#cacheKey)?.catch?.(noop2);
} catch {
}
return downstreamOnHeaders();
@@ -42681,7 +42681,7 @@ var RequestError = class extends Error {
*/
response;
constructor(message, statusCode, options) {
super(message);
super(message, { cause: options.cause });
this.name = "HttpError";
this.status = Number.parseInt(statusCode);
if (Number.isNaN(this.status)) {
@@ -42705,7 +42705,7 @@ var RequestError = class extends Error {
};
// node_modules/@octokit/request/dist-bundle/index.js
var VERSION2 = "10.0.5";
var VERSION2 = "10.0.7";
var defaults_default = {
headers: {
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
@@ -42719,6 +42719,7 @@ function isPlainObject2(value) {
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
}
var noop = () => "";
async function fetchWrapper(requestOptions) {
const fetch = requestOptions.request?.fetch || globalThis.fetch;
if (!fetch) {
@@ -42820,7 +42821,7 @@ async function fetchWrapper(requestOptions) {
async function getResponseData(response) {
const contentType = response.headers.get("content-type");
if (!contentType) {
return response.text().catch(() => "");
return response.text().catch(noop);
}
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
if (isJSONResponse(mimetype)) {
@@ -42832,9 +42833,12 @@ async function getResponseData(response) {
return text;
}
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
return response.text().catch(() => "");
return response.text().catch(noop);
} else {
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
return response.arrayBuffer().catch(
/* v8 ignore next -- @preserve */
() => new ArrayBuffer(0)
);
}
}
function isJSONResponse(mimetype) {
@@ -44148,7 +44152,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
return sendRequestWithRetries(state, request2, options, createdAt, retries);
}
}
var VERSION6 = "8.1.1";
var VERSION6 = "8.1.2";
function createAppAuth(options) {
if (!options.appId) {
throw new Error("[@octokit/auth-app] appId option is required");
@@ -44589,6 +44593,13 @@ undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
toad-cache/dist/toad-cache.mjs:
(**
* toad-cache
+47 -36
View File
@@ -9195,7 +9195,7 @@ var require_readable = __commonJS({
var kBody = Symbol("kBody");
var kAbort = Symbol("abort");
var kContentType = Symbol("kContentType");
var noop = () => {
var noop2 = () => {
};
module2.exports = class BodyReadable extends Readable {
constructor({
@@ -9317,7 +9317,7 @@ var require_readable = __commonJS({
return new Promise((resolve, reject) => {
const signalListenerCleanup = signal ? util.addAbortListener(signal, () => {
this.destroy();
}) : noop;
}) : noop2;
this.on("close", function() {
signalListenerCleanup();
if (signal && signal.aborted) {
@@ -9325,7 +9325,7 @@ var require_readable = __commonJS({
} else {
resolve(null);
}
}).on("error", noop).on("data", function(chunk) {
}).on("error", noop2).on("data", function(chunk) {
limit -= chunk.length;
if (limit <= 0) {
this.destroy();
@@ -20873,7 +20873,7 @@ var require_util8 = __commonJS({
yield* this[kBody];
}
};
function noop() {
function noop2() {
}
function wrapRequestBody(body) {
if (isStream(body)) {
@@ -21284,7 +21284,7 @@ var require_util8 = __commonJS({
}
var setupConnectTimeout = process.platform === "win32" ? (socketWeakRef, opts) => {
if (!opts.timeout) {
return noop;
return noop2;
}
let s1 = null;
let s2 = null;
@@ -21300,7 +21300,7 @@ var require_util8 = __commonJS({
};
} : (socketWeakRef, opts) => {
if (!opts.timeout) {
return noop;
return noop2;
}
let s1 = null;
const fastTimer = timers.setFastTimeout(() => {
@@ -25550,12 +25550,12 @@ var require_body2 = __commonJS({
random = (max) => Math.floor(Math.random() * max);
}
var textEncoder = new TextEncoder();
function noop() {
function noop2() {
}
var streamRegistry = new FinalizationRegistry((weakRef) => {
const stream = weakRef.deref();
if (stream && !stream.locked && !isDisturbed(stream) && !isErrored(stream)) {
stream.cancel("Response object has been garbage collected").catch(noop);
stream.cancel("Response object has been garbage collected").catch(noop2);
}
});
function extractBody(object, keepalive = false) {
@@ -27644,7 +27644,7 @@ var require_client2 = __commonJS({
var getDefaultNodeMaxHeaderSize = http && http.maxHeaderSize && Number.isInteger(http.maxHeaderSize) && http.maxHeaderSize > 0 ? () => http.maxHeaderSize : () => {
throw new InvalidArgumentError("http module not available or http.maxHeaderSize invalid");
};
var noop = () => {
var noop2 = () => {
};
function getPipelining(client) {
return client[kPipelining] ?? client[kHTTPContext]?.defaultPipelining ?? 1;
@@ -27918,7 +27918,7 @@ var require_client2 = __commonJS({
return;
}
if (client.destroyed) {
util.destroy(socket.on("error", noop), new ClientDestroyedError());
util.destroy(socket.on("error", noop2), new ClientDestroyedError());
client[kResume]();
return;
}
@@ -27926,7 +27926,7 @@ var require_client2 = __commonJS({
try {
client[kHTTPContext] = socket.alpnProtocol === "h2" ? connectH2(client, socket) : connectH1(client, socket);
} catch (err2) {
socket.destroy().on("error", noop);
socket.destroy().on("error", noop2);
handleConnectError(client, err2, { host, hostname, protocol, port });
client[kResume]();
return;
@@ -28710,7 +28710,7 @@ var require_proxy_agent2 = __commonJS({
function defaultFactory(origin, opts) {
return new Pool(origin, opts);
}
var noop = () => {
var noop2 = () => {
};
function defaultAgentFactory(origin, opts) {
if (opts.connections === 1) {
@@ -28827,7 +28827,7 @@ var require_proxy_agent2 = __commonJS({
servername: this[kProxyTls]?.servername || proxyHostname
});
if (statusCode !== 200) {
socket.on("error", noop).destroy();
socket.on("error", noop2).destroy();
callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`));
}
if (opts2.protocol !== "https:") {
@@ -29494,7 +29494,7 @@ var require_readable2 = __commonJS({
var kContentLength = Symbol("kContentLength");
var kUsed = Symbol("kUsed");
var kBytesRead = Symbol("kBytesRead");
var noop = () => {
var noop2 = () => {
};
var BodyReadable = class extends Readable {
/**
@@ -29719,7 +29719,7 @@ var require_readable2 = __commonJS({
} else {
this.on("close", resolve);
}
this.on("error", noop).on("data", () => {
this.on("error", noop2).on("data", () => {
if (this[kBytesRead] > limit) {
this.destroy();
}
@@ -29888,7 +29888,7 @@ var require_api_request2 = __commonJS({
var { Readable } = require_readable2();
var { InvalidArgumentError, RequestAbortedError } = require_errors2();
var util = require_util8();
function noop() {
function noop2() {
}
var RequestHandler = class extends AsyncResource {
constructor(opts, callback) {
@@ -29915,7 +29915,7 @@ var require_api_request2 = __commonJS({
super("UNDICI_REQUEST");
} catch (err) {
if (util.isStream(body)) {
util.destroy(body.on("error", noop), err);
util.destroy(body.on("error", noop2), err);
}
throw err;
}
@@ -29938,7 +29938,7 @@ var require_api_request2 = __commonJS({
this.removeAbortListener = util.addAbortListener(signal, () => {
this.reason = signal.reason ?? new RequestAbortedError();
if (this.res) {
util.destroy(this.res.on("error", noop), this.reason);
util.destroy(this.res.on("error", noop2), this.reason);
} else if (this.abort) {
this.abort(this.reason);
}
@@ -29991,7 +29991,7 @@ var require_api_request2 = __commonJS({
});
} catch (err) {
this.res = null;
util.destroy(res.on("error", noop), err);
util.destroy(res.on("error", noop2), err);
queueMicrotask(() => {
throw err;
});
@@ -30016,13 +30016,13 @@ var require_api_request2 = __commonJS({
if (res) {
this.res = null;
queueMicrotask(() => {
util.destroy(res.on("error", noop), err);
util.destroy(res.on("error", noop2), err);
});
}
if (body) {
this.body = null;
if (util.isStream(body)) {
body.on("error", noop);
body.on("error", noop2);
util.destroy(body, err);
}
}
@@ -30118,7 +30118,7 @@ var require_api_stream2 = __commonJS({
var { InvalidArgumentError, InvalidReturnValueError } = require_errors2();
var util = require_util8();
var { addSignal, removeSignal } = require_abort_signal2();
function noop() {
function noop2() {
}
var StreamHandler = class extends AsyncResource {
constructor(opts, factory, callback) {
@@ -30145,7 +30145,7 @@ var require_api_stream2 = __commonJS({
super("UNDICI_STREAM");
} catch (err) {
if (util.isStream(body)) {
util.destroy(body.on("error", noop), err);
util.destroy(body.on("error", noop2), err);
}
throw err;
}
@@ -30287,7 +30287,7 @@ var require_api_pipeline2 = __commonJS({
} = require_errors2();
var util = require_util8();
var { addSignal, removeSignal } = require_abort_signal2();
function noop() {
function noop2() {
}
var kResume = Symbol("resume");
var PipelineRequest = class extends Readable {
@@ -30347,7 +30347,7 @@ var require_api_pipeline2 = __commonJS({
this.abort = null;
this.context = null;
this.onInfo = onInfo || null;
this.req = new PipelineRequest().on("error", noop);
this.req = new PipelineRequest().on("error", noop2);
this.ret = new Duplex({
readableObjectMode: opts.objectMode,
autoDestroy: true,
@@ -30418,7 +30418,7 @@ var require_api_pipeline2 = __commonJS({
context
});
} catch (err) {
this.res.on("error", noop);
this.res.on("error", noop2);
throw err;
}
if (!body || typeof body.on !== "function") {
@@ -32640,7 +32640,7 @@ var require_redirect_handler = __commonJS({
var EE = require("node:events");
var redirectableStatusCodes = [300, 301, 302, 303, 307, 308];
var kBody = Symbol("body");
var noop = () => {
var noop2 = () => {
};
var BodyAsyncIterable = class {
constructor(body) {
@@ -32703,14 +32703,14 @@ var require_redirect_handler = __commonJS({
if ((statusCode === 301 || statusCode === 302) && this.opts.method === "POST") {
this.opts.method = "GET";
if (util.isStream(this.opts.body)) {
util.destroy(this.opts.body.on("error", noop));
util.destroy(this.opts.body.on("error", noop2));
}
this.opts.body = null;
}
if (statusCode === 303 && this.opts.method !== "HEAD") {
this.opts.method = "GET";
if (util.isStream(this.opts.body)) {
util.destroy(this.opts.body.on("error", noop));
util.destroy(this.opts.body.on("error", noop2));
}
this.opts.body = null;
}
@@ -34098,7 +34098,7 @@ var require_cache_handler = __commonJS({
isEtagUsable
} = require_cache2();
var { parseHttpDate } = require_date();
function noop() {
function noop2() {
}
var HEURISTICALLY_CACHEABLE_STATUS_CODES = [
200,
@@ -34179,7 +34179,7 @@ var require_cache_handler = __commonJS({
);
if (!util.safeHTTPMethods.includes(this.#cacheKey.method) && statusCode >= 200 && statusCode <= 399) {
try {
this.#store.delete(this.#cacheKey)?.catch?.(noop);
this.#store.delete(this.#cacheKey)?.catch?.(noop2);
} catch {
}
return downstreamOnHeaders();
@@ -42707,7 +42707,7 @@ var RequestError = class extends Error {
*/
response;
constructor(message, statusCode, options) {
super(message);
super(message, { cause: options.cause });
this.name = "HttpError";
this.status = Number.parseInt(statusCode);
if (Number.isNaN(this.status)) {
@@ -42731,7 +42731,7 @@ var RequestError = class extends Error {
};
// node_modules/@octokit/request/dist-bundle/index.js
var VERSION2 = "10.0.5";
var VERSION2 = "10.0.7";
var defaults_default = {
headers: {
"user-agent": `octokit-request.js/${VERSION2} ${getUserAgent()}`
@@ -42745,6 +42745,7 @@ function isPlainObject2(value) {
const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
}
var noop = () => "";
async function fetchWrapper(requestOptions) {
const fetch = requestOptions.request?.fetch || globalThis.fetch;
if (!fetch) {
@@ -42846,7 +42847,7 @@ async function fetchWrapper(requestOptions) {
async function getResponseData(response) {
const contentType = response.headers.get("content-type");
if (!contentType) {
return response.text().catch(() => "");
return response.text().catch(noop);
}
const mimetype = (0, import_fast_content_type_parse.safeParse)(contentType);
if (isJSONResponse(mimetype)) {
@@ -42858,9 +42859,12 @@ async function getResponseData(response) {
return text;
}
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
return response.text().catch(() => "");
return response.text().catch(noop);
} else {
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
return response.arrayBuffer().catch(
/* v8 ignore next -- @preserve */
() => new ArrayBuffer(0)
);
}
}
function isJSONResponse(mimetype) {
@@ -42944,4 +42948,11 @@ undici/lib/web/fetch/body.js:
undici/lib/websocket/frame.js:
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
+58 -59
View File
@@ -1,16 +1,16 @@
{
"name": "create-github-app-token",
"version": "2.2.0",
"version": "2.2.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "create-github-app-token",
"version": "2.2.0",
"version": "2.2.1",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.11.1",
"@octokit/auth-app": "^8.1.1",
"@octokit/auth-app": "^8.1.2",
"@octokit/request": "^10.0.3",
"p-retry": "^7.1.0",
"undici": "^7.16.0"
@@ -697,16 +697,16 @@
}
},
"node_modules/@octokit/auth-app": {
"version": "8.1.1",
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-8.1.1.tgz",
"integrity": "sha512-yW9YUy1cuqWlz8u7908ed498wJFt42VYsYWjvepjojM4BdZSp4t+5JehFds7LfvYi550O/GaUI94rgbhswvxfA==",
"version": "8.1.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-8.1.2.tgz",
"integrity": "sha512-db8VO0PqXxfzI6GdjtgEFHY9tzqUql5xMFXYA12juq8TeTgPAuiiP3zid4h50lwlIP457p5+56PnJOgd2GGBuw==",
"license": "MIT",
"dependencies": {
"@octokit/auth-oauth-app": "^9.0.2",
"@octokit/auth-oauth-user": "^6.0.1",
"@octokit/request": "^10.0.5",
"@octokit/request-error": "^7.0.1",
"@octokit/types": "^15.0.0",
"@octokit/auth-oauth-app": "^9.0.3",
"@octokit/auth-oauth-user": "^6.0.2",
"@octokit/request": "^10.0.6",
"@octokit/request-error": "^7.0.2",
"@octokit/types": "^16.0.0",
"toad-cache": "^3.7.0",
"universal-github-app-jwt": "^2.2.0",
"universal-user-agent": "^7.0.0"
@@ -716,15 +716,15 @@
}
},
"node_modules/@octokit/auth-oauth-app": {
"version": "9.0.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-9.0.2.tgz",
"integrity": "sha512-vmjSHeuHuM+OxZLzOuoYkcY3OPZ8erJ5lfswdTmm+4XiAKB5PmCk70bA1is4uwSl/APhRVAv4KHsgevWfEKIPQ==",
"version": "9.0.3",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-9.0.3.tgz",
"integrity": "sha512-+yoFQquaF8OxJSxTb7rnytBIC2ZLbLqA/yb71I4ZXT9+Slw4TziV9j/kyGhUFRRTF2+7WlnIWsePZCWHs+OGjg==",
"license": "MIT",
"dependencies": {
"@octokit/auth-oauth-device": "^8.0.2",
"@octokit/auth-oauth-user": "^6.0.1",
"@octokit/request": "^10.0.5",
"@octokit/types": "^15.0.0",
"@octokit/auth-oauth-device": "^8.0.3",
"@octokit/auth-oauth-user": "^6.0.2",
"@octokit/request": "^10.0.6",
"@octokit/types": "^16.0.0",
"universal-user-agent": "^7.0.0"
},
"engines": {
@@ -732,14 +732,14 @@
}
},
"node_modules/@octokit/auth-oauth-device": {
"version": "8.0.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-8.0.2.tgz",
"integrity": "sha512-KW7Ywrz7ei7JX+uClWD2DN1259fnkoKuVdhzfpQ3/GdETaCj4Tx0IjvuJrwhP/04OhcMu5yR6tjni0V6LBihdw==",
"version": "8.0.3",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-8.0.3.tgz",
"integrity": "sha512-zh2W0mKKMh/VWZhSqlaCzY7qFyrgd9oTWmTmHaXnHNeQRCZr/CXy2jCgHo4e4dJVTiuxP5dLa0YM5p5QVhJHbw==",
"license": "MIT",
"dependencies": {
"@octokit/oauth-methods": "^6.0.1",
"@octokit/request": "^10.0.5",
"@octokit/types": "^15.0.0",
"@octokit/oauth-methods": "^6.0.2",
"@octokit/request": "^10.0.6",
"@octokit/types": "^16.0.0",
"universal-user-agent": "^7.0.0"
},
"engines": {
@@ -747,15 +747,15 @@
}
},
"node_modules/@octokit/auth-oauth-user": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-6.0.1.tgz",
"integrity": "sha512-vlKsL1KUUPvwXpv574zvmRd+/4JiDFXABIZNM39+S+5j2kODzGgjk7w5WtiQ1x24kRKNaE7v9DShNbw43UA3Hw==",
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-6.0.2.tgz",
"integrity": "sha512-qLoPPc6E6GJoz3XeDG/pnDhJpTkODTGG4kY0/Py154i/I003O9NazkrwJwRuzgCalhzyIeWQ+6MDvkUmKXjg/A==",
"license": "MIT",
"dependencies": {
"@octokit/auth-oauth-device": "^8.0.2",
"@octokit/oauth-methods": "^6.0.1",
"@octokit/request": "^10.0.5",
"@octokit/types": "^15.0.0",
"@octokit/auth-oauth-device": "^8.0.3",
"@octokit/oauth-methods": "^6.0.2",
"@octokit/request": "^10.0.6",
"@octokit/types": "^16.0.0",
"universal-user-agent": "^7.0.0"
},
"engines": {
@@ -763,12 +763,12 @@
}
},
"node_modules/@octokit/endpoint": {
"version": "11.0.1",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.1.tgz",
"integrity": "sha512-7P1dRAZxuWAOPI7kXfio88trNi/MegQ0IJD3vfgC3b+LZo1Qe6gRJc2v0mz2USWWJOKrB2h5spXCzGbw+fAdqA==",
"version": "11.0.2",
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.2.tgz",
"integrity": "sha512-4zCpzP1fWc7QlqunZ5bSEjxc6yLAlRTnDwKtgXfcI/FxxGoqedDG8V2+xJ60bV2kODqcGB+nATdtap/XYq2NZQ==",
"license": "MIT",
"dependencies": {
"@octokit/types": "^15.0.0",
"@octokit/types": "^16.0.0",
"universal-user-agent": "^7.0.2"
},
"engines": {
@@ -785,15 +785,15 @@
}
},
"node_modules/@octokit/oauth-methods": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-6.0.1.tgz",
"integrity": "sha512-xi6Iut3izMCFzXBJtxxJehxJmAKjE8iwj6L5+raPRwlTNKAbOOBJX7/Z8AF5apD4aXvc2skwIdOnC+CQ4QuA8Q==",
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-6.0.2.tgz",
"integrity": "sha512-HiNOO3MqLxlt5Da5bZbLV8Zarnphi4y9XehrbaFMkcoJ+FL7sMxH/UlUsCVxpddVu4qvNDrBdaTVE2o4ITK8ng==",
"license": "MIT",
"dependencies": {
"@octokit/oauth-authorization-url": "^8.0.0",
"@octokit/request": "^10.0.5",
"@octokit/request-error": "^7.0.1",
"@octokit/types": "^15.0.0"
"@octokit/request": "^10.0.6",
"@octokit/request-error": "^7.0.2",
"@octokit/types": "^16.0.0"
},
"engines": {
"node": ">= 20"
@@ -810,20 +810,20 @@
}
},
"node_modules/@octokit/openapi-types": {
"version": "26.0.0",
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-26.0.0.tgz",
"integrity": "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA==",
"version": "27.0.0",
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz",
"integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==",
"license": "MIT"
},
"node_modules/@octokit/request": {
"version": "10.0.5",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.5.tgz",
"integrity": "sha512-TXnouHIYLtgDhKo+N6mXATnDBkV05VwbR0TtMWpgTHIoQdRQfCSzmy/LGqR1AbRMbijq/EckC/E3/ZNcU92NaQ==",
"version": "10.0.7",
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.7.tgz",
"integrity": "sha512-v93h0i1yu4idj8qFPZwjehoJx4j3Ntn+JhXsdJrG9pYaX6j/XRz2RmasMUHtNgQD39nrv/VwTWSqK0RNXR8upA==",
"license": "MIT",
"dependencies": {
"@octokit/endpoint": "^11.0.1",
"@octokit/request-error": "^7.0.1",
"@octokit/types": "^15.0.0",
"@octokit/endpoint": "^11.0.2",
"@octokit/request-error": "^7.0.2",
"@octokit/types": "^16.0.0",
"fast-content-type-parse": "^3.0.0",
"universal-user-agent": "^7.0.2"
},
@@ -832,24 +832,24 @@
}
},
"node_modules/@octokit/request-error": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.0.1.tgz",
"integrity": "sha512-CZpFwV4+1uBrxu7Cw8E5NCXDWFNf18MSY23TdxCBgjw1tXXHvTrZVsXlW8hgFTOLw8RQR1BBrMvYRtuyaijHMA==",
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.0.tgz",
"integrity": "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==",
"license": "MIT",
"dependencies": {
"@octokit/types": "^15.0.0"
"@octokit/types": "^16.0.0"
},
"engines": {
"node": ">= 20"
}
},
"node_modules/@octokit/types": {
"version": "15.0.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-15.0.0.tgz",
"integrity": "sha512-8o6yDfmoGJUIeR9OfYU0/TUJTnMPG2r68+1yEdUeG2Fdqpj8Qetg0ziKIgcBm0RW/j29H41WP37CYCEhp6GoHQ==",
"version": "16.0.0",
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz",
"integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==",
"license": "MIT",
"dependencies": {
"@octokit/openapi-types": "^26.0.0"
"@octokit/openapi-types": "^27.0.0"
}
},
"node_modules/@pkgjs/parseargs": {
@@ -985,7 +985,6 @@
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
"dev": true,
"license": "MIT",
"peer": true,
"bin": {
"acorn": "bin/acorn"
},
+2 -2
View File
@@ -2,7 +2,7 @@
"name": "create-github-app-token",
"private": true,
"type": "module",
"version": "2.2.0",
"version": "2.2.1",
"description": "GitHub Action for creating a GitHub App Installation Access Token",
"engines": {
"node": ">=20"
@@ -17,7 +17,7 @@
"license": "MIT",
"dependencies": {
"@actions/core": "^1.11.1",
"@octokit/auth-app": "^8.1.1",
"@octokit/auth-app": "^8.1.2",
"@octokit/request": "^10.0.3",
"p-retry": "^7.1.0",
"undici": "^7.16.0"