build(release): 1.11.6 [skip ci]

## [1.11.6](https://github.com/actions/create-github-app-token/compare/v1.11.5...v1.11.6) (2025-03-03)

### Bug Fixes

* **deps:** bump the production-dependencies group with 2 updates ([#210](https://github.com/actions/create-github-app-token/issues/210)) ([1ff1dea](https://github.com/actions/create-github-app-token/commit/1ff1dea6a9d1de5b4795e5314291e04acc63c38b))
This commit is contained in:
semantic-release-bot
2025-03-03 01:13:50 +00:00
parent 1ff1dea6a9
commit 21cfef2b49
3 changed files with 76 additions and 84 deletions
+42 -50
View File
@@ -25550,7 +25550,7 @@ var require_body2 = __commonJS({
const crypto = require("node:crypto"); const crypto = require("node:crypto");
random = (max) => crypto.randomInt(0, max); random = (max) => crypto.randomInt(0, max);
} catch { } catch {
random = (max) => Math.floor(Math.random(max)); random = (max) => Math.floor(Math.random() * max);
} }
var textEncoder = new TextEncoder(); var textEncoder = new TextEncoder();
function noop() { function noop() {
@@ -28815,7 +28815,6 @@ var require_env_http_proxy_agent = __commonJS({
"http:": 80, "http:": 80,
"https:": 443 "https:": 443
}; };
var experimentalWarned = false;
var EnvHttpProxyAgent = class extends DispatcherBase { var EnvHttpProxyAgent = class extends DispatcherBase {
#noProxyValue = null; #noProxyValue = null;
#noProxyEntries = null; #noProxyEntries = null;
@@ -28823,12 +28822,6 @@ var require_env_http_proxy_agent = __commonJS({
constructor(opts = {}) { constructor(opts = {}) {
super(); super();
this.#opts = opts; this.#opts = opts;
if (!experimentalWarned) {
experimentalWarned = true;
process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.", {
code: "UNDICI-EHPA"
});
}
const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts; const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts;
this[kNoProxyAgent] = new Agent(agentOpts); this[kNoProxyAgent] = new Agent(agentOpts);
const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY; const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
@@ -30579,8 +30572,10 @@ var require_mock_utils2 = __commonJS({
return data; return data;
} else if (typeof data === "object") { } else if (typeof data === "object") {
return JSON.stringify(data); return JSON.stringify(data);
} else { } else if (data) {
return data.toString(); return data.toString();
} else {
return "";
} }
} }
function getMockDispatch(mockDispatches, key) { function getMockDispatch(mockDispatches, key) {
@@ -32043,10 +32038,13 @@ var require_cache2 = __commonJS({
if (typeof key !== "string" || typeof val !== "string") { if (typeof key !== "string" || typeof val !== "string") {
throw new Error("opts.headers is not a valid header map"); throw new Error("opts.headers is not a valid header map");
} }
headers[key] = val; headers[key.toLowerCase()] = val;
} }
} else if (typeof opts.headers === "object") { } else if (typeof opts.headers === "object") {
headers = opts.headers; headers = {};
for (const key of Object.keys(opts.headers)) {
headers[key.toLowerCase()] = opts.headers[key];
}
} else { } else {
throw new Error("opts.headers is not an object"); throw new Error("opts.headers is not an object");
} }
@@ -32201,17 +32199,13 @@ var require_cache2 = __commonJS({
return headers; return headers;
} }
const output = ( const output = (
/** @type {Record<string, string | string[]>} */ /** @type {Record<string, string | string[] | null>} */
{} {}
); );
const varyingHeaders = typeof varyHeader === "string" ? varyHeader.split(",") : varyHeader; const varyingHeaders = typeof varyHeader === "string" ? varyHeader.split(",") : varyHeader;
for (const header of varyingHeaders) { for (const header of varyingHeaders) {
const trimmedHeader = header.trim().toLowerCase(); const trimmedHeader = header.trim().toLowerCase();
if (headers[trimmedHeader]) { output[trimmedHeader] = headers[trimmedHeader] ?? null;
output[trimmedHeader] = headers[trimmedHeader];
} else {
return void 0;
}
} }
return output; return output;
} }
@@ -32793,7 +32787,12 @@ var require_memory_cache_store = __commonJS({
assertCacheKey(key); assertCacheKey(key);
const topLevelKey = `${key.origin}:${key.path}`; const topLevelKey = `${key.origin}:${key.path}`;
const now = Date.now(); const now = Date.now();
const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => entry2.vary[headerName] === key.headers?.[headerName]))); const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => {
if (entry2.vary[headerName] === null) {
return key.headers[headerName] === void 0;
}
return entry2.vary[headerName] === key.headers[headerName];
})));
return entry == null ? void 0 : { return entry == null ? void 0 : {
statusMessage: entry.statusMessage, statusMessage: entry.statusMessage,
statusCode: entry.statusCode, statusCode: entry.statusCode,
@@ -33379,7 +33378,7 @@ var require_sqlite_cache_store = __commonJS({
assertCacheKey(key); assertCacheKey(key);
const value = this.#findValue(key); const value = this.#findValue(key);
return value ? { return value ? {
body: value.body ? Buffer.from(value.body.buffer) : void 0, body: value.body ? Buffer.from(value.body.buffer, value.body.byteOffset, value.body.byteLength) : void 0,
statusCode: value.statusCode, statusCode: value.statusCode,
statusMessage: value.statusMessage, statusMessage: value.statusMessage,
headers: value.headers ? JSON.parse(value.headers) : void 0, headers: value.headers ? JSON.parse(value.headers) : void 0,
@@ -33524,9 +33523,6 @@ var require_sqlite_cache_store = __commonJS({
} }
let matches = true; let matches = true;
if (value.vary) { if (value.vary) {
if (!headers) {
return void 0;
}
const vary = JSON.parse(value.vary); const vary = JSON.parse(value.vary);
for (const header in vary) { for (const header in vary) {
if (!headerValueEquals(headers[header], vary[header])) { if (!headerValueEquals(headers[header], vary[header])) {
@@ -33543,16 +33539,17 @@ var require_sqlite_cache_store = __commonJS({
} }
}; };
function headerValueEquals(lhs, rhs) { function headerValueEquals(lhs, rhs) {
if (lhs == null && rhs == null) {
return true;
}
if (lhs == null && rhs != null || lhs != null && rhs == null) {
return false;
}
if (Array.isArray(lhs) && Array.isArray(rhs)) { if (Array.isArray(lhs) && Array.isArray(rhs)) {
if (lhs.length !== rhs.length) { if (lhs.length !== rhs.length) {
return false; return false;
} }
for (let i = 0; i < lhs.length; i++) { return lhs.every((x, i) => x === rhs[i]);
if (rhs.includes(lhs[i])) {
return false;
}
}
return true;
} }
return lhs === rhs; return lhs === rhs;
} }
@@ -34518,6 +34515,12 @@ var require_request4 = __commonJS({
signal.removeEventListener("abort", abort); signal.removeEventListener("abort", abort);
}); });
var dependentControllerMap = /* @__PURE__ */ new WeakMap(); var dependentControllerMap = /* @__PURE__ */ new WeakMap();
var abortSignalHasEventHandlerLeakWarning;
try {
abortSignalHasEventHandlerLeakWarning = getMaxListeners(new AbortController().signal) > 0;
} catch {
abortSignalHasEventHandlerLeakWarning = false;
}
function buildAbort(acRef) { function buildAbort(acRef) {
return abort; return abort;
function abort() { function abort() {
@@ -34745,11 +34748,8 @@ var require_request4 = __commonJS({
this[kAbortController] = ac; this[kAbortController] = ac;
const acRef = new WeakRef(ac); const acRef = new WeakRef(ac);
const abort = buildAbort(acRef); const abort = buildAbort(acRef);
try { if (abortSignalHasEventHandlerLeakWarning && getMaxListeners(signal) === defaultMaxListeners) {
if (typeof getMaxListeners === "function" && getMaxListeners(signal) === defaultMaxListeners) { setMaxListeners(1500, signal);
setMaxListeners(1500, signal);
}
} catch {
} }
util.addAbortListener(signal, abort); util.addAbortListener(signal, abort);
requestFinalizer.register(ac, { signal, abort }, abort); requestFinalizer.register(ac, { signal, abort }, abort);
@@ -40739,8 +40739,7 @@ async function oauthRequest(request2, route, parameters) {
return response; return response;
} }
async function exchangeWebFlowCode(options) { async function exchangeWebFlowCode(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const response = await oauthRequest( const response = await oauthRequest(
request2, request2,
"POST /login/oauth/access_token", "POST /login/oauth/access_token",
@@ -40777,8 +40776,7 @@ function toTimestamp(apiTimeInMs, expirationInSeconds) {
return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString(); return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString();
} }
async function createDeviceCode(options) { async function createDeviceCode(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const parameters = { const parameters = {
client_id: options.clientId client_id: options.clientId
}; };
@@ -40788,8 +40786,7 @@ async function createDeviceCode(options) {
return oauthRequest(request2, "POST /login/device/code", parameters); return oauthRequest(request2, "POST /login/device/code", parameters);
} }
async function exchangeDeviceCode(options) { async function exchangeDeviceCode(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const response = await oauthRequest( const response = await oauthRequest(
request2, request2,
"POST /login/oauth/access_token", "POST /login/oauth/access_token",
@@ -40827,8 +40824,7 @@ function toTimestamp2(apiTimeInMs, expirationInSeconds) {
return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString(); return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString();
} }
async function checkToken(options) { async function checkToken(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const response = await request2("POST /applications/{client_id}/token", { const response = await request2("POST /applications/{client_id}/token", {
headers: { headers: {
authorization: `basic ${btoa( authorization: `basic ${btoa(
@@ -40853,8 +40849,7 @@ async function checkToken(options) {
return { ...response, authentication }; return { ...response, authentication };
} }
async function refreshToken(options) { async function refreshToken(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const response = await oauthRequest( const response = await oauthRequest(
request2, request2,
"POST /login/oauth/access_token", "POST /login/oauth/access_token",
@@ -40884,8 +40879,7 @@ function toTimestamp3(apiTimeInMs, expirationInSeconds) {
return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString(); return new Date(apiTimeInMs + expirationInSeconds * 1e3).toISOString();
} }
async function resetToken(options) { async function resetToken(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const auth5 = btoa(`${options.clientId}:${options.clientSecret}`); const auth5 = btoa(`${options.clientId}:${options.clientSecret}`);
const response = await request2( const response = await request2(
"PATCH /applications/{client_id}/token", "PATCH /applications/{client_id}/token",
@@ -40912,8 +40906,7 @@ async function resetToken(options) {
return { ...response, authentication }; return { ...response, authentication };
} }
async function deleteToken(options) { async function deleteToken(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const auth5 = btoa(`${options.clientId}:${options.clientSecret}`); const auth5 = btoa(`${options.clientId}:${options.clientSecret}`);
return request2( return request2(
"DELETE /applications/{client_id}/token", "DELETE /applications/{client_id}/token",
@@ -40927,8 +40920,7 @@ async function deleteToken(options) {
); );
} }
async function deleteAuthorization(options) { async function deleteAuthorization(options) {
const request2 = options.request || /* istanbul ignore next: we always pass a custom request in tests */ const request2 = options.request || request;
request;
const auth5 = btoa(`${options.clientId}:${options.clientSecret}`); const auth5 = btoa(`${options.clientId}:${options.clientSecret}`);
return request2( return request2(
"DELETE /applications/{client_id}/grant", "DELETE /applications/{client_id}/grant",
@@ -41962,7 +41954,7 @@ async function sendRequestWithRetries(state, request2, options, createdAt, retri
return sendRequestWithRetries(state, request2, options, createdAt, retries); return sendRequestWithRetries(state, request2, options, createdAt, retries);
} }
} }
var VERSION6 = "7.1.4"; var VERSION6 = "7.1.5";
function createAppAuth(options) { function createAppAuth(options) {
if (!options.appId) { if (!options.appId) {
throw new Error("[@octokit/auth-app] appId option is required"); throw new Error("[@octokit/auth-app] appId option is required");
+33 -33
View File
@@ -25317,7 +25317,7 @@ var require_body2 = __commonJS({
const crypto = require("node:crypto"); const crypto = require("node:crypto");
random = (max) => crypto.randomInt(0, max); random = (max) => crypto.randomInt(0, max);
} catch { } catch {
random = (max) => Math.floor(Math.random(max)); random = (max) => Math.floor(Math.random() * max);
} }
var textEncoder = new TextEncoder(); var textEncoder = new TextEncoder();
function noop() { function noop() {
@@ -28582,7 +28582,6 @@ var require_env_http_proxy_agent = __commonJS({
"http:": 80, "http:": 80,
"https:": 443 "https:": 443
}; };
var experimentalWarned = false;
var EnvHttpProxyAgent = class extends DispatcherBase { var EnvHttpProxyAgent = class extends DispatcherBase {
#noProxyValue = null; #noProxyValue = null;
#noProxyEntries = null; #noProxyEntries = null;
@@ -28590,12 +28589,6 @@ var require_env_http_proxy_agent = __commonJS({
constructor(opts = {}) { constructor(opts = {}) {
super(); super();
this.#opts = opts; this.#opts = opts;
if (!experimentalWarned) {
experimentalWarned = true;
process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.", {
code: "UNDICI-EHPA"
});
}
const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts; const { httpProxy, httpsProxy, noProxy, ...agentOpts } = opts;
this[kNoProxyAgent] = new Agent(agentOpts); this[kNoProxyAgent] = new Agent(agentOpts);
const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY; const HTTP_PROXY = httpProxy ?? process.env.http_proxy ?? process.env.HTTP_PROXY;
@@ -30346,8 +30339,10 @@ var require_mock_utils2 = __commonJS({
return data; return data;
} else if (typeof data === "object") { } else if (typeof data === "object") {
return JSON.stringify(data); return JSON.stringify(data);
} else { } else if (data) {
return data.toString(); return data.toString();
} else {
return "";
} }
} }
function getMockDispatch(mockDispatches, key) { function getMockDispatch(mockDispatches, key) {
@@ -31810,10 +31805,13 @@ var require_cache2 = __commonJS({
if (typeof key !== "string" || typeof val !== "string") { if (typeof key !== "string" || typeof val !== "string") {
throw new Error("opts.headers is not a valid header map"); throw new Error("opts.headers is not a valid header map");
} }
headers[key] = val; headers[key.toLowerCase()] = val;
} }
} else if (typeof opts.headers === "object") { } else if (typeof opts.headers === "object") {
headers = opts.headers; headers = {};
for (const key of Object.keys(opts.headers)) {
headers[key.toLowerCase()] = opts.headers[key];
}
} else { } else {
throw new Error("opts.headers is not an object"); throw new Error("opts.headers is not an object");
} }
@@ -31968,17 +31966,13 @@ var require_cache2 = __commonJS({
return headers; return headers;
} }
const output = ( const output = (
/** @type {Record<string, string | string[]>} */ /** @type {Record<string, string | string[] | null>} */
{} {}
); );
const varyingHeaders = typeof varyHeader === "string" ? varyHeader.split(",") : varyHeader; const varyingHeaders = typeof varyHeader === "string" ? varyHeader.split(",") : varyHeader;
for (const header of varyingHeaders) { for (const header of varyingHeaders) {
const trimmedHeader = header.trim().toLowerCase(); const trimmedHeader = header.trim().toLowerCase();
if (headers[trimmedHeader]) { output[trimmedHeader] = headers[trimmedHeader] ?? null;
output[trimmedHeader] = headers[trimmedHeader];
} else {
return void 0;
}
} }
return output; return output;
} }
@@ -32560,7 +32554,12 @@ var require_memory_cache_store = __commonJS({
assertCacheKey(key); assertCacheKey(key);
const topLevelKey = `${key.origin}:${key.path}`; const topLevelKey = `${key.origin}:${key.path}`;
const now = Date.now(); const now = Date.now();
const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => entry2.vary[headerName] === key.headers?.[headerName]))); const entry = this.#entries.get(topLevelKey)?.find((entry2) => entry2.deleteAt > now && entry2.method === key.method && (entry2.vary == null || Object.keys(entry2.vary).every((headerName) => {
if (entry2.vary[headerName] === null) {
return key.headers[headerName] === void 0;
}
return entry2.vary[headerName] === key.headers[headerName];
})));
return entry == null ? void 0 : { return entry == null ? void 0 : {
statusMessage: entry.statusMessage, statusMessage: entry.statusMessage,
statusCode: entry.statusCode, statusCode: entry.statusCode,
@@ -33146,7 +33145,7 @@ var require_sqlite_cache_store = __commonJS({
assertCacheKey(key); assertCacheKey(key);
const value = this.#findValue(key); const value = this.#findValue(key);
return value ? { return value ? {
body: value.body ? Buffer.from(value.body.buffer) : void 0, body: value.body ? Buffer.from(value.body.buffer, value.body.byteOffset, value.body.byteLength) : void 0,
statusCode: value.statusCode, statusCode: value.statusCode,
statusMessage: value.statusMessage, statusMessage: value.statusMessage,
headers: value.headers ? JSON.parse(value.headers) : void 0, headers: value.headers ? JSON.parse(value.headers) : void 0,
@@ -33291,9 +33290,6 @@ var require_sqlite_cache_store = __commonJS({
} }
let matches = true; let matches = true;
if (value.vary) { if (value.vary) {
if (!headers) {
return void 0;
}
const vary = JSON.parse(value.vary); const vary = JSON.parse(value.vary);
for (const header in vary) { for (const header in vary) {
if (!headerValueEquals(headers[header], vary[header])) { if (!headerValueEquals(headers[header], vary[header])) {
@@ -33310,16 +33306,17 @@ var require_sqlite_cache_store = __commonJS({
} }
}; };
function headerValueEquals(lhs, rhs) { function headerValueEquals(lhs, rhs) {
if (lhs == null && rhs == null) {
return true;
}
if (lhs == null && rhs != null || lhs != null && rhs == null) {
return false;
}
if (Array.isArray(lhs) && Array.isArray(rhs)) { if (Array.isArray(lhs) && Array.isArray(rhs)) {
if (lhs.length !== rhs.length) { if (lhs.length !== rhs.length) {
return false; return false;
} }
for (let i = 0; i < lhs.length; i++) { return lhs.every((x, i) => x === rhs[i]);
if (rhs.includes(lhs[i])) {
return false;
}
}
return true;
} }
return lhs === rhs; return lhs === rhs;
} }
@@ -34285,6 +34282,12 @@ var require_request4 = __commonJS({
signal.removeEventListener("abort", abort); signal.removeEventListener("abort", abort);
}); });
var dependentControllerMap = /* @__PURE__ */ new WeakMap(); var dependentControllerMap = /* @__PURE__ */ new WeakMap();
var abortSignalHasEventHandlerLeakWarning;
try {
abortSignalHasEventHandlerLeakWarning = getMaxListeners(new AbortController().signal) > 0;
} catch {
abortSignalHasEventHandlerLeakWarning = false;
}
function buildAbort(acRef) { function buildAbort(acRef) {
return abort; return abort;
function abort() { function abort() {
@@ -34512,11 +34515,8 @@ var require_request4 = __commonJS({
this[kAbortController] = ac; this[kAbortController] = ac;
const acRef = new WeakRef(ac); const acRef = new WeakRef(ac);
const abort = buildAbort(acRef); const abort = buildAbort(acRef);
try { if (abortSignalHasEventHandlerLeakWarning && getMaxListeners(signal) === defaultMaxListeners) {
if (typeof getMaxListeners === "function" && getMaxListeners(signal) === defaultMaxListeners) { setMaxListeners(1500, signal);
setMaxListeners(1500, signal);
}
} catch {
} }
util.addAbortListener(signal, abort); util.addAbortListener(signal, abort);
requestFinalizer.register(ac, { signal, abort }, abort); requestFinalizer.register(ac, { signal, abort }, abort);
+1 -1
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": "1.11.5", "version": "1.11.6",
"description": "GitHub Action for creating a GitHub App Installation Access Token", "description": "GitHub Action for creating a GitHub App Installation Access Token",
"scripts": { "scripts": {
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle", "build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node20.0.0 --packages=bundle",