mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-27 11:04:43 +00:00
Compare commits
7 Commits
9c12baee96
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78925e9080 | ||
|
|
ed21f2f24f | ||
|
|
93202d8fbe | ||
|
|
5ce090076d | ||
|
|
4180991cd9 | ||
|
|
0439606c8e | ||
|
|
7dd56c18e9 |
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
|
||||
uses: github/codeql-action/init@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
source-root: src
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
|
||||
uses: github/codeql-action/autobuild@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -73,4 +73,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
|
||||
uses: github/codeql-action/analyze@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
|
||||
|
||||
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@@ -649,6 +649,26 @@ jobs:
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
test-cache-local-cache-disabled-but-explicit-path:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Setup without cache
|
||||
uses: ./
|
||||
with:
|
||||
enable-cache: false
|
||||
cache-local-path: /tmp/uv-cache-disabled
|
||||
|
||||
- name: Check UV_CACHE_DIR is set
|
||||
run: |
|
||||
if [ "$UV_CACHE_DIR" != "/tmp/uv-cache-disabled" ]; then
|
||||
echo "UV_CACHE_DIR should be set when cache is disabled but explicit path is provided"
|
||||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
test-setup-cache-local:
|
||||
runs-on: selfhosted-ubuntu-arm64
|
||||
steps:
|
||||
@@ -984,6 +1004,7 @@ jobs:
|
||||
- test-musl
|
||||
- test-cache-local
|
||||
- test-cache-local-cache-disabled
|
||||
- test-cache-local-cache-disabled-but-explicit-path
|
||||
- test-setup-cache
|
||||
- test-restore-cache
|
||||
- test-setup-cache-requirements-txt
|
||||
|
||||
2
.github/workflows/update-known-versions.yml
vendored
2
.github/workflows/update-known-versions.yml
vendored
@@ -55,7 +55,7 @@ jobs:
|
||||
|
||||
- name: Create Pull Request
|
||||
if: ${{ steps.changes-exist.outputs.changes-exist == 'true' && steps.commit-and-push.outcome != 'success' }}
|
||||
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
||||
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
|
||||
with:
|
||||
commit-message: "chore: update known checksums"
|
||||
title:
|
||||
|
||||
@@ -29,9 +29,9 @@ it.each<KnownVersionFixture>([
|
||||
known: false,
|
||||
version: "0.0.15",
|
||||
},
|
||||
])(
|
||||
"isknownVersion should return $known for version $version",
|
||||
({ version, known }) => {
|
||||
expect(isknownVersion(version)).toBe(known);
|
||||
},
|
||||
);
|
||||
])("isknownVersion should return $known for version $version", ({
|
||||
version,
|
||||
known,
|
||||
}) => {
|
||||
expect(isknownVersion(version)).toBe(known);
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.3.0/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
|
||||
"assist": {
|
||||
"actions": {
|
||||
"source": {
|
||||
@@ -18,7 +18,8 @@
|
||||
"!**/node_modules",
|
||||
"!**/package*.json",
|
||||
"!**/known-checksums.*"
|
||||
]
|
||||
],
|
||||
"maxSize": 2097152
|
||||
},
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
|
||||
60
dist/save-cache/index.js
generated
vendored
60
dist/save-cache/index.js
generated
vendored
@@ -90619,7 +90619,10 @@ async function restoreCache() {
|
||||
}
|
||||
let matchedKey;
|
||||
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
||||
const cachePaths = [inputs_1.cacheLocalPath];
|
||||
if (inputs_1.cacheLocalPath === undefined) {
|
||||
throw new Error("cache-local-path is not set. Cannot restore cache without a valid cache path.");
|
||||
}
|
||||
const cachePaths = [inputs_1.cacheLocalPath.path];
|
||||
if (inputs_1.cachePython) {
|
||||
cachePaths.push(inputs_1.pythonDir);
|
||||
}
|
||||
@@ -90868,9 +90871,13 @@ async function saveCache() {
|
||||
if (inputs_1.pruneCache) {
|
||||
await pruneCache();
|
||||
}
|
||||
let actualCachePath = inputs_1.cacheLocalPath;
|
||||
if (process.env.UV_CACHE_DIR && process.env.UV_CACHE_DIR !== inputs_1.cacheLocalPath) {
|
||||
core.warning(`The environment variable UV_CACHE_DIR has been changed to "${process.env.UV_CACHE_DIR}", by an action or step running after astral-sh/setup-uv. This can lead to unexpected behavior. If you expected this to happen set the cache-local-path input to "${process.env.UV_CACHE_DIR}" instead of "${inputs_1.cacheLocalPath}".`);
|
||||
if (inputs_1.cacheLocalPath === undefined) {
|
||||
throw new Error("cache-local-path is not set. Cannot save cache without a valid cache path.");
|
||||
}
|
||||
let actualCachePath = inputs_1.cacheLocalPath.path;
|
||||
if (process.env.UV_CACHE_DIR &&
|
||||
process.env.UV_CACHE_DIR !== inputs_1.cacheLocalPath.path) {
|
||||
core.warning(`The environment variable UV_CACHE_DIR has been changed to "${process.env.UV_CACHE_DIR}", by an action or step running after astral-sh/setup-uv. This can lead to unexpected behavior. If you expected this to happen set the cache-local-path input to "${process.env.UV_CACHE_DIR}" instead of "${inputs_1.cacheLocalPath.path}".`);
|
||||
actualCachePath = process.env.UV_CACHE_DIR;
|
||||
}
|
||||
core.info(`Saving cache path: ${actualCachePath}`);
|
||||
@@ -91038,11 +91045,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolutionStrategy = exports.addProblemMatchers = exports.manifestFile = exports.githubToken = exports.pythonDir = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.cachePython = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.saveCache = exports.restoreCache = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = void 0;
|
||||
exports.resolutionStrategy = exports.addProblemMatchers = exports.manifestFile = exports.githubToken = exports.pythonDir = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.cachePython = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.saveCache = exports.restoreCache = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = exports.CacheLocalSource = void 0;
|
||||
exports.getUvPythonDir = getUvPythonDir;
|
||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const config_file_1 = __nccwpck_require__(7846);
|
||||
var CacheLocalSource;
|
||||
(function (CacheLocalSource) {
|
||||
CacheLocalSource[CacheLocalSource["Input"] = 0] = "Input";
|
||||
CacheLocalSource[CacheLocalSource["Config"] = 1] = "Config";
|
||||
CacheLocalSource[CacheLocalSource["Env"] = 2] = "Env";
|
||||
CacheLocalSource[CacheLocalSource["Default"] = 3] = "Default";
|
||||
})(CacheLocalSource || (exports.CacheLocalSource = CacheLocalSource = {}));
|
||||
exports.workingDirectory = core.getInput("working-directory");
|
||||
exports.version = core.getInput("version");
|
||||
exports.versionFile = getVersionFile();
|
||||
@@ -91113,26 +91127,40 @@ function getCacheLocalPath() {
|
||||
const cacheLocalPathInput = core.getInput("cache-local-path");
|
||||
if (cacheLocalPathInput !== "") {
|
||||
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
||||
return resolveRelativePath(tildeExpanded);
|
||||
return {
|
||||
path: resolveRelativePath(tildeExpanded),
|
||||
source: CacheLocalSource.Input,
|
||||
};
|
||||
}
|
||||
const cacheDirFromConfig = getCacheDirFromConfig();
|
||||
if (cacheDirFromConfig !== undefined) {
|
||||
return cacheDirFromConfig;
|
||||
return { path: cacheDirFromConfig, source: CacheLocalSource.Config };
|
||||
}
|
||||
if (process.env.UV_CACHE_DIR !== undefined) {
|
||||
core.info(`UV_CACHE_DIR is already set to ${process.env.UV_CACHE_DIR}`);
|
||||
return process.env.UV_CACHE_DIR;
|
||||
return { path: process.env.UV_CACHE_DIR, source: CacheLocalSource.Env };
|
||||
}
|
||||
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||
if (process.env.RUNNER_TEMP !== undefined) {
|
||||
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`;
|
||||
if (getEnableCache()) {
|
||||
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||
if (process.env.RUNNER_TEMP !== undefined) {
|
||||
return {
|
||||
path: `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
||||
}
|
||||
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
||||
if (process.platform === "win32") {
|
||||
return {
|
||||
path: `${process.env.APPDATA}${node_path_1.default.sep}uv${node_path_1.default.sep}cache`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
return {
|
||||
path: `${process.env.HOME}${node_path_1.default.sep}.cache${node_path_1.default.sep}uv`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
if (process.platform === "win32") {
|
||||
return `${process.env.APPDATA}${node_path_1.default.sep}uv${node_path_1.default.sep}cache`;
|
||||
}
|
||||
return `${process.env.HOME}${node_path_1.default.sep}.cache${node_path_1.default.sep}uv`;
|
||||
}
|
||||
function getCacheDirFromConfig() {
|
||||
for (const filePath of [exports.versionFile, "uv.toml", "pyproject.toml"]) {
|
||||
|
||||
284
dist/setup/index.js
generated
vendored
284
dist/setup/index.js
generated
vendored
@@ -91522,7 +91522,10 @@ async function restoreCache() {
|
||||
}
|
||||
let matchedKey;
|
||||
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
||||
const cachePaths = [inputs_1.cacheLocalPath];
|
||||
if (inputs_1.cacheLocalPath === undefined) {
|
||||
throw new Error("cache-local-path is not set. Cannot restore cache without a valid cache path.");
|
||||
}
|
||||
const cachePaths = [inputs_1.cacheLocalPath.path];
|
||||
if (inputs_1.cachePython) {
|
||||
cachePaths.push(inputs_1.pythonDir);
|
||||
}
|
||||
@@ -91696,6 +91699,24 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.KNOWN_CHECKSUMS = void 0;
|
||||
// AUTOGENERATED_DO_NOT_EDIT
|
||||
exports.KNOWN_CHECKSUMS = {
|
||||
"aarch64-apple-darwin-0.9.16": "db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
||||
"aarch64-pc-windows-msvc-0.9.16": "591c73f47dfec72f9d242eebcb36197f27ad652a59d70e70db5c52018684d78e",
|
||||
"aarch64-unknown-linux-gnu-0.9.16": "a8e9e3f7e621e212d9663ea28827bd8fb9ec11c453ae88d520b48e969e9ff5db",
|
||||
"aarch64-unknown-linux-musl-0.9.16": "cb6730e083f17b38aea88c2bdfc3d4c834a832444087d30d7914bd460ae15b79",
|
||||
"arm-unknown-linux-musleabihf-0.9.16": "4c2447ff0aad62934605252eaf6372efb82fb38330b88785e162929491870186",
|
||||
"armv7-unknown-linux-gnueabihf-0.9.16": "5a09476442563f6ee32d864d89a87490bf5a850c987898c648ef57608c5899cb",
|
||||
"armv7-unknown-linux-musleabihf-0.9.16": "180846487d6baa1ca9d4cd90a0aaf38f7466d3c211c219bd4d7ffbbbc5077ef2",
|
||||
"i686-pc-windows-msvc-0.9.16": "f6921ace765a2905c0cda8bf8185ecd60d83060da4b2904a28b5a8c23ffc7aa2",
|
||||
"i686-unknown-linux-gnu-0.9.16": "1cdb9a2086a5d1ea37e219c45407730ef3e7711737b71fae49d1396918f4cdba",
|
||||
"i686-unknown-linux-musl-0.9.16": "f8b0159c52bc43cbe598c52dd43ca911c22c6b9da992f3604434b23d21ac5ff6",
|
||||
"powerpc64-unknown-linux-gnu-0.9.16": "40c39d344c92c6a877fdfe89db8a5f84990dbb7097e529122bd7d90d1975eb90",
|
||||
"powerpc64le-unknown-linux-gnu-0.9.16": "982167ebae22efbda212ccbacc582b00486150695d83fca94d39c3422a0f8865",
|
||||
"riscv64gc-unknown-linux-gnu-0.9.16": "b94ef3afa9bc94288e069162143ec20ed1d103d7631a17ca14c6ac28e8825baa",
|
||||
"s390x-unknown-linux-gnu-0.9.16": "cd32014282b2d2de53eb0176004dffddec77f0afbe76713f57c245e08cdf2b21",
|
||||
"x86_64-apple-darwin-0.9.16": "e1ba1992e163f8b9d54d1cd1501002f019f4b729dec2a197e79a56d354ec2773",
|
||||
"x86_64-pc-windows-msvc-0.9.16": "e498a1d5983da7727af96b63ddfcd52ee883173552664ad0b629b3d4c7a46e91",
|
||||
"x86_64-unknown-linux-gnu-0.9.16": "3adbf5322471b53a61483b4a5d091e70c32231ebc63fd327fae7b844cbcd3e01",
|
||||
"x86_64-unknown-linux-musl-0.9.16": "35a26bea6aad2c8eb468cdf69baccc7ab79b3d0971a76a6741a687535a2acfad",
|
||||
"aarch64-apple-darwin-0.9.15": "388029510fdf64771745e9fb85cd6ec042580678a9e61c90fe355301f1c42f1e",
|
||||
"aarch64-pc-windows-msvc-0.9.15": "19422893deba37feb4b4191b43be89525ac48bd378f9fdbf2d5bca44319f8c19",
|
||||
"aarch64-unknown-linux-gnu-0.9.15": "d89430e201f629b203975c605cd6bfe85afc2bc0781d95838e2b5177a03b1545",
|
||||
@@ -96150,7 +96171,6 @@ const core = __importStar(__nccwpck_require__(7484));
|
||||
const exec = __importStar(__nccwpck_require__(5236));
|
||||
const restore_cache_1 = __nccwpck_require__(5391);
|
||||
const download_version_1 = __nccwpck_require__(8255);
|
||||
const config_file_1 = __nccwpck_require__(7846);
|
||||
const constants_1 = __nccwpck_require__(6156);
|
||||
const inputs_1 = __nccwpck_require__(9612);
|
||||
const platforms_1 = __nccwpck_require__(8361);
|
||||
@@ -96318,14 +96338,13 @@ async function activateEnvironment() {
|
||||
}
|
||||
}
|
||||
function setCacheDir() {
|
||||
if (inputs_1.enableCache) {
|
||||
const cacheDirFromConfig = (0, config_file_1.getConfigValueFromTomlFile)("", "cache-dir");
|
||||
if (cacheDirFromConfig !== undefined) {
|
||||
if (inputs_1.cacheLocalPath !== undefined) {
|
||||
if (inputs_1.cacheLocalPath.source === inputs_1.CacheLocalSource.Config) {
|
||||
core.info("Using cache-dir from uv config file, not modifying UV_CACHE_DIR");
|
||||
return;
|
||||
}
|
||||
core.exportVariable("UV_CACHE_DIR", inputs_1.cacheLocalPath);
|
||||
core.info(`Set UV_CACHE_DIR to ${inputs_1.cacheLocalPath}`);
|
||||
core.exportVariable("UV_CACHE_DIR", inputs_1.cacheLocalPath.path);
|
||||
core.info(`Set UV_CACHE_DIR to ${inputs_1.cacheLocalPath.path}`);
|
||||
}
|
||||
}
|
||||
function addMatchers() {
|
||||
@@ -96487,11 +96506,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.resolutionStrategy = exports.addProblemMatchers = exports.manifestFile = exports.githubToken = exports.pythonDir = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.cachePython = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.saveCache = exports.restoreCache = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = void 0;
|
||||
exports.resolutionStrategy = exports.addProblemMatchers = exports.manifestFile = exports.githubToken = exports.pythonDir = exports.toolDir = exports.toolBinDir = exports.ignoreEmptyWorkdir = exports.ignoreNothingToCache = exports.cachePython = exports.pruneCache = exports.cacheDependencyGlob = exports.cacheLocalPath = exports.cacheSuffix = exports.saveCache = exports.restoreCache = exports.enableCache = exports.checkSum = exports.activateEnvironment = exports.pythonVersion = exports.versionFile = exports.version = exports.workingDirectory = exports.CacheLocalSource = void 0;
|
||||
exports.getUvPythonDir = getUvPythonDir;
|
||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||
const core = __importStar(__nccwpck_require__(7484));
|
||||
const config_file_1 = __nccwpck_require__(7846);
|
||||
var CacheLocalSource;
|
||||
(function (CacheLocalSource) {
|
||||
CacheLocalSource[CacheLocalSource["Input"] = 0] = "Input";
|
||||
CacheLocalSource[CacheLocalSource["Config"] = 1] = "Config";
|
||||
CacheLocalSource[CacheLocalSource["Env"] = 2] = "Env";
|
||||
CacheLocalSource[CacheLocalSource["Default"] = 3] = "Default";
|
||||
})(CacheLocalSource || (exports.CacheLocalSource = CacheLocalSource = {}));
|
||||
exports.workingDirectory = core.getInput("working-directory");
|
||||
exports.version = core.getInput("version");
|
||||
exports.versionFile = getVersionFile();
|
||||
@@ -96562,26 +96588,40 @@ function getCacheLocalPath() {
|
||||
const cacheLocalPathInput = core.getInput("cache-local-path");
|
||||
if (cacheLocalPathInput !== "") {
|
||||
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
||||
return resolveRelativePath(tildeExpanded);
|
||||
return {
|
||||
path: resolveRelativePath(tildeExpanded),
|
||||
source: CacheLocalSource.Input,
|
||||
};
|
||||
}
|
||||
const cacheDirFromConfig = getCacheDirFromConfig();
|
||||
if (cacheDirFromConfig !== undefined) {
|
||||
return cacheDirFromConfig;
|
||||
return { path: cacheDirFromConfig, source: CacheLocalSource.Config };
|
||||
}
|
||||
if (process.env.UV_CACHE_DIR !== undefined) {
|
||||
core.info(`UV_CACHE_DIR is already set to ${process.env.UV_CACHE_DIR}`);
|
||||
return process.env.UV_CACHE_DIR;
|
||||
return { path: process.env.UV_CACHE_DIR, source: CacheLocalSource.Env };
|
||||
}
|
||||
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||
if (process.env.RUNNER_TEMP !== undefined) {
|
||||
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`;
|
||||
if (getEnableCache()) {
|
||||
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||
if (process.env.RUNNER_TEMP !== undefined) {
|
||||
return {
|
||||
path: `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
||||
}
|
||||
throw Error("Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input");
|
||||
if (process.platform === "win32") {
|
||||
return {
|
||||
path: `${process.env.APPDATA}${node_path_1.default.sep}uv${node_path_1.default.sep}cache`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
return {
|
||||
path: `${process.env.HOME}${node_path_1.default.sep}.cache${node_path_1.default.sep}uv`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
if (process.platform === "win32") {
|
||||
return `${process.env.APPDATA}${node_path_1.default.sep}uv${node_path_1.default.sep}cache`;
|
||||
}
|
||||
return `${process.env.HOME}${node_path_1.default.sep}.cache${node_path_1.default.sep}uv`;
|
||||
}
|
||||
function getCacheDirFromConfig() {
|
||||
for (const filePath of [exports.versionFile, "uv.toml", "pyproject.toml"]) {
|
||||
@@ -100550,12 +100590,13 @@ class RequestError 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)) {
|
||||
this.status = 0;
|
||||
}
|
||||
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */
|
||||
if ("response" in options) {
|
||||
this.response = options.response;
|
||||
}
|
||||
@@ -100582,7 +100623,7 @@ class RequestError extends Error {
|
||||
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var dist_bundle_VERSION = "10.0.5";
|
||||
var dist_bundle_VERSION = "10.0.7";
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var defaults_default = {
|
||||
@@ -100606,6 +100647,7 @@ function dist_bundle_isPlainObject(value) {
|
||||
|
||||
// pkg/dist-src/fetch-wrapper.js
|
||||
|
||||
var noop = () => "";
|
||||
async function fetchWrapper(requestOptions) {
|
||||
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
||||
if (!fetch) {
|
||||
@@ -100707,7 +100749,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,fast_content_type_parse/* safeParse */.xL)(contentType);
|
||||
if (isJSONResponse(mimetype)) {
|
||||
@@ -100719,9 +100761,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) {
|
||||
@@ -100769,6 +100814,8 @@ function dist_bundle_withDefaults(oldEndpoint, newDefaults) {
|
||||
// pkg/dist-src/index.js
|
||||
var request = dist_bundle_withDefaults(endpoint, defaults_default);
|
||||
|
||||
/* v8 ignore next -- @preserve */
|
||||
/* v8 ignore else -- @preserve */
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/graphql/dist-bundle/index.js
|
||||
// pkg/dist-src/index.js
|
||||
@@ -100953,7 +101000,7 @@ var createTokenAuth = function createTokenAuth2(token) {
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
|
||||
const version_VERSION = "7.0.5";
|
||||
const version_VERSION = "7.0.6";
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
|
||||
@@ -100963,16 +101010,16 @@ const version_VERSION = "7.0.5";
|
||||
|
||||
|
||||
|
||||
const noop = () => {
|
||||
const dist_src_noop = () => {
|
||||
};
|
||||
const consoleWarn = console.warn.bind(console);
|
||||
const consoleError = console.error.bind(console);
|
||||
function createLogger(logger = {}) {
|
||||
if (typeof logger.debug !== "function") {
|
||||
logger.debug = noop;
|
||||
logger.debug = dist_src_noop;
|
||||
}
|
||||
if (typeof logger.info !== "function") {
|
||||
logger.info = noop;
|
||||
logger.info = dist_src_noop;
|
||||
}
|
||||
if (typeof logger.warn !== "function") {
|
||||
logger.warn = consoleWarn;
|
||||
@@ -101239,7 +101286,9 @@ var paginatingEndpoints = [
|
||||
"GET /enterprises/{enterprise}/code-security/configurations",
|
||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
||||
"GET /enterprises/{enterprise}/dependabot/alerts",
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
||||
"GET /enterprises/{enterprise}/teams",
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships",
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations",
|
||||
"GET /events",
|
||||
"GET /gists",
|
||||
"GET /gists/public",
|
||||
@@ -101271,6 +101320,7 @@ var paginatingEndpoints = [
|
||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/actions/variables",
|
||||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||
"GET /orgs/{org}/attestations/repositories",
|
||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
||||
"GET /orgs/{org}/blocks",
|
||||
"GET /orgs/{org}/campaigns",
|
||||
@@ -101322,6 +101372,7 @@ var paginatingEndpoints = [
|
||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
||||
"GET /orgs/{org}/secret-scanning/alerts",
|
||||
"GET /orgs/{org}/security-advisories",
|
||||
"GET /orgs/{org}/settings/immutable-releases/repositories",
|
||||
"GET /orgs/{org}/settings/network-configurations",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
||||
"GET /orgs/{org}/teams",
|
||||
@@ -101335,7 +101386,6 @@ var paginatingEndpoints = [
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos",
|
||||
"GET /orgs/{org}/teams/{team_slug}/teams",
|
||||
"GET /projects/{project_id}/collaborators",
|
||||
"GET /projects/{project_id}/columns",
|
||||
"GET /repos/{owner}/{repo}/actions/artifacts",
|
||||
"GET /repos/{owner}/{repo}/actions/caches",
|
||||
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
||||
@@ -101475,8 +101525,6 @@ var paginatingEndpoints = [
|
||||
"GET /user/subscriptions",
|
||||
"GET /user/teams",
|
||||
"GET /users",
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/fields",
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/items",
|
||||
"GET /users/{username}/attestations/{subject_digest}",
|
||||
"GET /users/{username}/events",
|
||||
"GET /users/{username}/events/orgs/{org}",
|
||||
@@ -101490,6 +101538,8 @@ var paginatingEndpoints = [
|
||||
"GET /users/{username}/packages",
|
||||
"GET /users/{username}/projects",
|
||||
"GET /users/{username}/projectsV2",
|
||||
"GET /users/{username}/projectsV2/{project_number}/fields",
|
||||
"GET /users/{username}/projectsV2/{project_number}/items",
|
||||
"GET /users/{username}/received_events",
|
||||
"GET /users/{username}/received_events/public",
|
||||
"GET /users/{username}/repos",
|
||||
@@ -101536,7 +101586,7 @@ __nccwpck_require__.d(__webpack_exports__, {
|
||||
});
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
||||
const VERSION = "16.1.1";
|
||||
const VERSION = "17.0.0";
|
||||
|
||||
//# sourceMappingURL=version.js.map
|
||||
|
||||
@@ -101599,6 +101649,12 @@ const Endpoints = {
|
||||
deleteArtifact: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
||||
],
|
||||
deleteCustomImageFromOrg: [
|
||||
"DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
|
||||
],
|
||||
deleteCustomImageVersionFromOrg: [
|
||||
"DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
|
||||
],
|
||||
deleteEnvironmentSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
@@ -101672,6 +101728,12 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||
],
|
||||
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
||||
getCustomImageForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
|
||||
],
|
||||
getCustomImageVersionForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
|
||||
],
|
||||
getCustomOidcSubClaimForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
||||
],
|
||||
@@ -101751,6 +101813,12 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
||||
],
|
||||
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
||||
listCustomImageVersionsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"
|
||||
],
|
||||
listCustomImagesForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom"
|
||||
],
|
||||
listEnvironmentSecrets: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
||||
],
|
||||
@@ -102009,6 +102077,12 @@ const Endpoints = {
|
||||
getGithubActionsBillingUser: [
|
||||
"GET /users/{username}/settings/billing/actions"
|
||||
],
|
||||
getGithubBillingPremiumRequestUsageReportOrg: [
|
||||
"GET /organizations/{org}/settings/billing/premium_request/usage"
|
||||
],
|
||||
getGithubBillingPremiumRequestUsageReportUser: [
|
||||
"GET /users/{username}/settings/billing/premium_request/usage"
|
||||
],
|
||||
getGithubBillingUsageReportOrg: [
|
||||
"GET /organizations/{org}/settings/billing/usage"
|
||||
],
|
||||
@@ -102376,6 +102450,51 @@ const Endpoints = {
|
||||
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
||||
},
|
||||
emojis: { get: ["GET /emojis"] },
|
||||
enterpriseTeamMemberships: {
|
||||
add: [
|
||||
"PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
||||
],
|
||||
bulkAdd: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"
|
||||
],
|
||||
bulkRemove: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"
|
||||
],
|
||||
get: [
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
||||
],
|
||||
list: ["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],
|
||||
remove: [
|
||||
"DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
||||
]
|
||||
},
|
||||
enterpriseTeamOrganizations: {
|
||||
add: [
|
||||
"PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
||||
],
|
||||
bulkAdd: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"
|
||||
],
|
||||
bulkRemove: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"
|
||||
],
|
||||
delete: [
|
||||
"DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
||||
],
|
||||
getAssignment: [
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
||||
],
|
||||
getAssignments: [
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"
|
||||
]
|
||||
},
|
||||
enterpriseTeams: {
|
||||
create: ["POST /enterprises/{enterprise}/teams"],
|
||||
delete: ["DELETE /enterprises/{enterprise}/teams/{team_slug}"],
|
||||
get: ["GET /enterprises/{enterprise}/teams/{team_slug}"],
|
||||
list: ["GET /enterprises/{enterprise}/teams"],
|
||||
update: ["PATCH /enterprises/{enterprise}/teams/{team_slug}"]
|
||||
},
|
||||
gists: {
|
||||
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
||||
create: ["POST /gists"],
|
||||
@@ -102645,14 +102764,34 @@ const Endpoints = {
|
||||
],
|
||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||
createIssueType: ["POST /orgs/{org}/issue-types"],
|
||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
||||
"PATCH /orgs/{org}/properties/values"
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
customPropertiesForOrgsCreateOrUpdateOrganizationValues: [
|
||||
"PATCH /organizations/{org}/org-properties/values"
|
||||
],
|
||||
createOrUpdateCustomProperty: [
|
||||
customPropertiesForOrgsGetOrganizationValues: [
|
||||
"GET /organizations/{org}/org-properties/values"
|
||||
],
|
||||
customPropertiesForReposCreateOrUpdateOrganizationDefinition: [
|
||||
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
customPropertiesForReposCreateOrUpdateOrganizationDefinitions: [
|
||||
"PATCH /orgs/{org}/properties/schema"
|
||||
],
|
||||
customPropertiesForReposCreateOrUpdateOrganizationValues: [
|
||||
"PATCH /orgs/{org}/properties/values"
|
||||
],
|
||||
customPropertiesForReposDeleteOrganizationDefinition: [
|
||||
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
customPropertiesForReposGetOrganizationDefinition: [
|
||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
customPropertiesForReposGetOrganizationDefinitions: [
|
||||
"GET /orgs/{org}/properties/schema"
|
||||
],
|
||||
customPropertiesForReposGetOrganizationValues: [
|
||||
"GET /orgs/{org}/properties/values"
|
||||
],
|
||||
delete: ["DELETE /orgs/{org}"],
|
||||
deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
|
||||
deleteAttestationsById: [
|
||||
@@ -102663,10 +102802,18 @@ const Endpoints = {
|
||||
],
|
||||
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
||||
disableSelectedRepositoryImmutableReleasesOrganization: [
|
||||
"DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
|
||||
],
|
||||
enableSelectedRepositoryImmutableReleasesOrganization: [
|
||||
"PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
|
||||
],
|
||||
get: ["GET /orgs/{org}"],
|
||||
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
||||
getCustomProperty: [
|
||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
getImmutableReleasesSettings: [
|
||||
"GET /orgs/{org}/settings/immutable-releases"
|
||||
],
|
||||
getImmutableReleasesSettingsRepositories: [
|
||||
"GET /orgs/{org}/settings/immutable-releases/repositories"
|
||||
],
|
||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||
@@ -102685,12 +102832,12 @@ const Endpoints = {
|
||||
listArtifactStorageRecords: [
|
||||
"GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
|
||||
],
|
||||
listAttestationRepositories: ["GET /orgs/{org}/attestations/repositories"],
|
||||
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
||||
listAttestationsBulk: [
|
||||
"POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
|
||||
],
|
||||
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
||||
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
||||
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||
listForUser: ["GET /users/{username}/orgs"],
|
||||
@@ -102728,9 +102875,6 @@ const Endpoints = {
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeCustomProperty: [
|
||||
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
||||
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
||||
removeOutsideCollaborator: [
|
||||
@@ -102764,6 +102908,12 @@ const Endpoints = {
|
||||
revokeOrgRoleUser: [
|
||||
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
||||
],
|
||||
setImmutableReleasesSettings: [
|
||||
"PUT /orgs/{org}/settings/immutable-releases"
|
||||
],
|
||||
setImmutableReleasesSettingsRepositories: [
|
||||
"PUT /orgs/{org}/settings/immutable-releases/repositories"
|
||||
],
|
||||
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
||||
setPublicMembershipForAuthenticatedUser: [
|
||||
"PUT /orgs/{org}/public_members/{username}"
|
||||
@@ -102885,40 +103035,42 @@ const Endpoints = {
|
||||
},
|
||||
projects: {
|
||||
addItemForOrg: ["POST /orgs/{org}/projectsV2/{project_number}/items"],
|
||||
addItemForUser: ["POST /users/{user_id}/projectsV2/{project_number}/items"],
|
||||
addItemForUser: [
|
||||
"POST /users/{username}/projectsV2/{project_number}/items"
|
||||
],
|
||||
deleteItemForOrg: [
|
||||
"DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
deleteItemForUser: [
|
||||
"DELETE /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
||||
"DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
getFieldForOrg: [
|
||||
"GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
|
||||
],
|
||||
getFieldForUser: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/fields/{field_id}"
|
||||
"GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"
|
||||
],
|
||||
getForOrg: ["GET /orgs/{org}/projectsV2/{project_number}"],
|
||||
getForUser: ["GET /users/{user_id}/projectsV2/{project_number}"],
|
||||
getForUser: ["GET /users/{username}/projectsV2/{project_number}"],
|
||||
getOrgItem: ["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],
|
||||
getUserItem: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
||||
"GET /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
listFieldsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/fields"],
|
||||
listFieldsForUser: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/fields"
|
||||
"GET /users/{username}/projectsV2/{project_number}/fields"
|
||||
],
|
||||
listForOrg: ["GET /orgs/{org}/projectsV2"],
|
||||
listForUser: ["GET /users/{username}/projectsV2"],
|
||||
listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
|
||||
listItemsForUser: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/items"
|
||||
"GET /users/{username}/projectsV2/{project_number}/items"
|
||||
],
|
||||
updateItemForOrg: [
|
||||
"PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
updateItemForUser: [
|
||||
"PATCH /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
||||
"PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||
]
|
||||
},
|
||||
pulls: {
|
||||
@@ -103081,6 +103233,7 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
||||
checkImmutableReleases: ["GET /repos/{owner}/{repo}/immutable-releases"],
|
||||
checkPrivateVulnerabilityReporting: [
|
||||
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
@@ -103116,9 +103269,6 @@ const Endpoints = {
|
||||
createForAuthenticatedUser: ["POST /user/repos"],
|
||||
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
||||
createInOrg: ["POST /orgs/{org}/repos"],
|
||||
createOrUpdateCustomPropertiesValues: [
|
||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
||||
],
|
||||
createOrUpdateEnvironment: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
@@ -103132,6 +103282,12 @@ const Endpoints = {
|
||||
"POST /repos/{template_owner}/{template_repo}/generate"
|
||||
],
|
||||
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
||||
customPropertiesForReposCreateOrUpdateRepositoryValues: [
|
||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
||||
],
|
||||
customPropertiesForReposGetRepositoryValues: [
|
||||
"GET /repos/{owner}/{repo}/properties/values"
|
||||
],
|
||||
declineInvitation: [
|
||||
"DELETE /user/repository_invitations/{invitation_id}",
|
||||
{},
|
||||
@@ -103186,6 +103342,9 @@ const Endpoints = {
|
||||
disableDeploymentProtectionRule: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
disableImmutableReleases: [
|
||||
"DELETE /repos/{owner}/{repo}/immutable-releases"
|
||||
],
|
||||
disablePrivateVulnerabilityReporting: [
|
||||
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
@@ -103202,6 +103361,7 @@ const Endpoints = {
|
||||
enableAutomatedSecurityFixes: [
|
||||
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
enableImmutableReleases: ["PUT /repos/{owner}/{repo}/immutable-releases"],
|
||||
enablePrivateVulnerabilityReporting: [
|
||||
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
@@ -103253,7 +103413,6 @@ const Endpoints = {
|
||||
getCustomDeploymentProtectionRule: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
||||
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
||||
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
||||
getDeploymentBranchPolicy: [
|
||||
@@ -103471,13 +103630,7 @@ const Endpoints = {
|
||||
search: {
|
||||
code: ["GET /search/code"],
|
||||
commits: ["GET /search/commits"],
|
||||
issuesAndPullRequests: [
|
||||
"GET /search/issues",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"
|
||||
}
|
||||
],
|
||||
issuesAndPullRequests: ["GET /search/issues"],
|
||||
labels: ["GET /search/labels"],
|
||||
repos: ["GET /search/repositories"],
|
||||
topics: ["GET /search/topics"],
|
||||
@@ -103491,9 +103644,6 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||
],
|
||||
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
||||
listAlertsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
||||
listLocationsForAlert: [
|
||||
|
||||
224
dist/update-known-versions/index.js
generated
vendored
224
dist/update-known-versions/index.js
generated
vendored
@@ -28196,6 +28196,24 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.KNOWN_CHECKSUMS = void 0;
|
||||
// AUTOGENERATED_DO_NOT_EDIT
|
||||
exports.KNOWN_CHECKSUMS = {
|
||||
"aarch64-apple-darwin-0.9.16": "db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
||||
"aarch64-pc-windows-msvc-0.9.16": "591c73f47dfec72f9d242eebcb36197f27ad652a59d70e70db5c52018684d78e",
|
||||
"aarch64-unknown-linux-gnu-0.9.16": "a8e9e3f7e621e212d9663ea28827bd8fb9ec11c453ae88d520b48e969e9ff5db",
|
||||
"aarch64-unknown-linux-musl-0.9.16": "cb6730e083f17b38aea88c2bdfc3d4c834a832444087d30d7914bd460ae15b79",
|
||||
"arm-unknown-linux-musleabihf-0.9.16": "4c2447ff0aad62934605252eaf6372efb82fb38330b88785e162929491870186",
|
||||
"armv7-unknown-linux-gnueabihf-0.9.16": "5a09476442563f6ee32d864d89a87490bf5a850c987898c648ef57608c5899cb",
|
||||
"armv7-unknown-linux-musleabihf-0.9.16": "180846487d6baa1ca9d4cd90a0aaf38f7466d3c211c219bd4d7ffbbbc5077ef2",
|
||||
"i686-pc-windows-msvc-0.9.16": "f6921ace765a2905c0cda8bf8185ecd60d83060da4b2904a28b5a8c23ffc7aa2",
|
||||
"i686-unknown-linux-gnu-0.9.16": "1cdb9a2086a5d1ea37e219c45407730ef3e7711737b71fae49d1396918f4cdba",
|
||||
"i686-unknown-linux-musl-0.9.16": "f8b0159c52bc43cbe598c52dd43ca911c22c6b9da992f3604434b23d21ac5ff6",
|
||||
"powerpc64-unknown-linux-gnu-0.9.16": "40c39d344c92c6a877fdfe89db8a5f84990dbb7097e529122bd7d90d1975eb90",
|
||||
"powerpc64le-unknown-linux-gnu-0.9.16": "982167ebae22efbda212ccbacc582b00486150695d83fca94d39c3422a0f8865",
|
||||
"riscv64gc-unknown-linux-gnu-0.9.16": "b94ef3afa9bc94288e069162143ec20ed1d103d7631a17ca14c6ac28e8825baa",
|
||||
"s390x-unknown-linux-gnu-0.9.16": "cd32014282b2d2de53eb0176004dffddec77f0afbe76713f57c245e08cdf2b21",
|
||||
"x86_64-apple-darwin-0.9.16": "e1ba1992e163f8b9d54d1cd1501002f019f4b729dec2a197e79a56d354ec2773",
|
||||
"x86_64-pc-windows-msvc-0.9.16": "e498a1d5983da7727af96b63ddfcd52ee883173552664ad0b629b3d4c7a46e91",
|
||||
"x86_64-unknown-linux-gnu-0.9.16": "3adbf5322471b53a61483b4a5d091e70c32231ebc63fd327fae7b844cbcd3e01",
|
||||
"x86_64-unknown-linux-musl-0.9.16": "35a26bea6aad2c8eb468cdf69baccc7ab79b3d0971a76a6741a687535a2acfad",
|
||||
"aarch64-apple-darwin-0.9.15": "388029510fdf64771745e9fb85cd6ec042580678a9e61c90fe355301f1c42f1e",
|
||||
"aarch64-pc-windows-msvc-0.9.15": "19422893deba37feb4b4191b43be89525ac48bd378f9fdbf2d5bca44319f8c19",
|
||||
"aarch64-unknown-linux-gnu-0.9.15": "d89430e201f629b203975c605cd6bfe85afc2bc0781d95838e2b5177a03b1545",
|
||||
@@ -35125,12 +35143,13 @@ class RequestError 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)) {
|
||||
this.status = 0;
|
||||
}
|
||||
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */
|
||||
if ("response" in options) {
|
||||
this.response = options.response;
|
||||
}
|
||||
@@ -35157,7 +35176,7 @@ class RequestError extends Error {
|
||||
|
||||
|
||||
// pkg/dist-src/version.js
|
||||
var dist_bundle_VERSION = "10.0.5";
|
||||
var dist_bundle_VERSION = "10.0.7";
|
||||
|
||||
// pkg/dist-src/defaults.js
|
||||
var defaults_default = {
|
||||
@@ -35181,6 +35200,7 @@ function dist_bundle_isPlainObject(value) {
|
||||
|
||||
// pkg/dist-src/fetch-wrapper.js
|
||||
|
||||
var noop = () => "";
|
||||
async function fetchWrapper(requestOptions) {
|
||||
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
||||
if (!fetch) {
|
||||
@@ -35282,7 +35302,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,fast_content_type_parse/* safeParse */.xL)(contentType);
|
||||
if (isJSONResponse(mimetype)) {
|
||||
@@ -35294,9 +35314,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) {
|
||||
@@ -35344,6 +35367,8 @@ function dist_bundle_withDefaults(oldEndpoint, newDefaults) {
|
||||
// pkg/dist-src/index.js
|
||||
var request = dist_bundle_withDefaults(endpoint, defaults_default);
|
||||
|
||||
/* v8 ignore next -- @preserve */
|
||||
/* v8 ignore else -- @preserve */
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/graphql/dist-bundle/index.js
|
||||
// pkg/dist-src/index.js
|
||||
@@ -35528,7 +35553,7 @@ var createTokenAuth = function createTokenAuth2(token) {
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
|
||||
const version_VERSION = "7.0.5";
|
||||
const version_VERSION = "7.0.6";
|
||||
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
|
||||
@@ -35538,16 +35563,16 @@ const version_VERSION = "7.0.5";
|
||||
|
||||
|
||||
|
||||
const noop = () => {
|
||||
const dist_src_noop = () => {
|
||||
};
|
||||
const consoleWarn = console.warn.bind(console);
|
||||
const consoleError = console.error.bind(console);
|
||||
function createLogger(logger = {}) {
|
||||
if (typeof logger.debug !== "function") {
|
||||
logger.debug = noop;
|
||||
logger.debug = dist_src_noop;
|
||||
}
|
||||
if (typeof logger.info !== "function") {
|
||||
logger.info = noop;
|
||||
logger.info = dist_src_noop;
|
||||
}
|
||||
if (typeof logger.warn !== "function") {
|
||||
logger.warn = consoleWarn;
|
||||
@@ -35814,7 +35839,9 @@ var paginatingEndpoints = [
|
||||
"GET /enterprises/{enterprise}/code-security/configurations",
|
||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
||||
"GET /enterprises/{enterprise}/dependabot/alerts",
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts",
|
||||
"GET /enterprises/{enterprise}/teams",
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships",
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations",
|
||||
"GET /events",
|
||||
"GET /gists",
|
||||
"GET /gists/public",
|
||||
@@ -35846,6 +35873,7 @@ var paginatingEndpoints = [
|
||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
||||
"GET /orgs/{org}/actions/variables",
|
||||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||
"GET /orgs/{org}/attestations/repositories",
|
||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
||||
"GET /orgs/{org}/blocks",
|
||||
"GET /orgs/{org}/campaigns",
|
||||
@@ -35897,6 +35925,7 @@ var paginatingEndpoints = [
|
||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
||||
"GET /orgs/{org}/secret-scanning/alerts",
|
||||
"GET /orgs/{org}/security-advisories",
|
||||
"GET /orgs/{org}/settings/immutable-releases/repositories",
|
||||
"GET /orgs/{org}/settings/network-configurations",
|
||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
||||
"GET /orgs/{org}/teams",
|
||||
@@ -35910,7 +35939,6 @@ var paginatingEndpoints = [
|
||||
"GET /orgs/{org}/teams/{team_slug}/repos",
|
||||
"GET /orgs/{org}/teams/{team_slug}/teams",
|
||||
"GET /projects/{project_id}/collaborators",
|
||||
"GET /projects/{project_id}/columns",
|
||||
"GET /repos/{owner}/{repo}/actions/artifacts",
|
||||
"GET /repos/{owner}/{repo}/actions/caches",
|
||||
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
||||
@@ -36050,8 +36078,6 @@ var paginatingEndpoints = [
|
||||
"GET /user/subscriptions",
|
||||
"GET /user/teams",
|
||||
"GET /users",
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/fields",
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/items",
|
||||
"GET /users/{username}/attestations/{subject_digest}",
|
||||
"GET /users/{username}/events",
|
||||
"GET /users/{username}/events/orgs/{org}",
|
||||
@@ -36065,6 +36091,8 @@ var paginatingEndpoints = [
|
||||
"GET /users/{username}/packages",
|
||||
"GET /users/{username}/projects",
|
||||
"GET /users/{username}/projectsV2",
|
||||
"GET /users/{username}/projectsV2/{project_number}/fields",
|
||||
"GET /users/{username}/projectsV2/{project_number}/items",
|
||||
"GET /users/{username}/received_events",
|
||||
"GET /users/{username}/received_events/public",
|
||||
"GET /users/{username}/repos",
|
||||
@@ -36111,7 +36139,7 @@ __nccwpck_require__.d(__webpack_exports__, {
|
||||
});
|
||||
|
||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
||||
const VERSION = "16.1.1";
|
||||
const VERSION = "17.0.0";
|
||||
|
||||
//# sourceMappingURL=version.js.map
|
||||
|
||||
@@ -36174,6 +36202,12 @@ const Endpoints = {
|
||||
deleteArtifact: [
|
||||
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
||||
],
|
||||
deleteCustomImageFromOrg: [
|
||||
"DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
|
||||
],
|
||||
deleteCustomImageVersionFromOrg: [
|
||||
"DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
|
||||
],
|
||||
deleteEnvironmentSecret: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||
],
|
||||
@@ -36247,6 +36281,12 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||
],
|
||||
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
||||
getCustomImageForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"
|
||||
],
|
||||
getCustomImageVersionForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"
|
||||
],
|
||||
getCustomOidcSubClaimForRepo: [
|
||||
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
||||
],
|
||||
@@ -36326,6 +36366,12 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
||||
],
|
||||
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
||||
listCustomImageVersionsForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"
|
||||
],
|
||||
listCustomImagesForOrg: [
|
||||
"GET /orgs/{org}/actions/hosted-runners/images/custom"
|
||||
],
|
||||
listEnvironmentSecrets: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
||||
],
|
||||
@@ -36584,6 +36630,12 @@ const Endpoints = {
|
||||
getGithubActionsBillingUser: [
|
||||
"GET /users/{username}/settings/billing/actions"
|
||||
],
|
||||
getGithubBillingPremiumRequestUsageReportOrg: [
|
||||
"GET /organizations/{org}/settings/billing/premium_request/usage"
|
||||
],
|
||||
getGithubBillingPremiumRequestUsageReportUser: [
|
||||
"GET /users/{username}/settings/billing/premium_request/usage"
|
||||
],
|
||||
getGithubBillingUsageReportOrg: [
|
||||
"GET /organizations/{org}/settings/billing/usage"
|
||||
],
|
||||
@@ -36951,6 +37003,51 @@ const Endpoints = {
|
||||
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
||||
},
|
||||
emojis: { get: ["GET /emojis"] },
|
||||
enterpriseTeamMemberships: {
|
||||
add: [
|
||||
"PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
||||
],
|
||||
bulkAdd: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"
|
||||
],
|
||||
bulkRemove: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"
|
||||
],
|
||||
get: [
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
||||
],
|
||||
list: ["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],
|
||||
remove: [
|
||||
"DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"
|
||||
]
|
||||
},
|
||||
enterpriseTeamOrganizations: {
|
||||
add: [
|
||||
"PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
||||
],
|
||||
bulkAdd: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"
|
||||
],
|
||||
bulkRemove: [
|
||||
"POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"
|
||||
],
|
||||
delete: [
|
||||
"DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
||||
],
|
||||
getAssignment: [
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"
|
||||
],
|
||||
getAssignments: [
|
||||
"GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"
|
||||
]
|
||||
},
|
||||
enterpriseTeams: {
|
||||
create: ["POST /enterprises/{enterprise}/teams"],
|
||||
delete: ["DELETE /enterprises/{enterprise}/teams/{team_slug}"],
|
||||
get: ["GET /enterprises/{enterprise}/teams/{team_slug}"],
|
||||
list: ["GET /enterprises/{enterprise}/teams"],
|
||||
update: ["PATCH /enterprises/{enterprise}/teams/{team_slug}"]
|
||||
},
|
||||
gists: {
|
||||
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
||||
create: ["POST /gists"],
|
||||
@@ -37220,14 +37317,34 @@ const Endpoints = {
|
||||
],
|
||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||
createIssueType: ["POST /orgs/{org}/issue-types"],
|
||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
||||
"PATCH /orgs/{org}/properties/values"
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
customPropertiesForOrgsCreateOrUpdateOrganizationValues: [
|
||||
"PATCH /organizations/{org}/org-properties/values"
|
||||
],
|
||||
createOrUpdateCustomProperty: [
|
||||
customPropertiesForOrgsGetOrganizationValues: [
|
||||
"GET /organizations/{org}/org-properties/values"
|
||||
],
|
||||
customPropertiesForReposCreateOrUpdateOrganizationDefinition: [
|
||||
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||
customPropertiesForReposCreateOrUpdateOrganizationDefinitions: [
|
||||
"PATCH /orgs/{org}/properties/schema"
|
||||
],
|
||||
customPropertiesForReposCreateOrUpdateOrganizationValues: [
|
||||
"PATCH /orgs/{org}/properties/values"
|
||||
],
|
||||
customPropertiesForReposDeleteOrganizationDefinition: [
|
||||
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
customPropertiesForReposGetOrganizationDefinition: [
|
||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
customPropertiesForReposGetOrganizationDefinitions: [
|
||||
"GET /orgs/{org}/properties/schema"
|
||||
],
|
||||
customPropertiesForReposGetOrganizationValues: [
|
||||
"GET /orgs/{org}/properties/values"
|
||||
],
|
||||
delete: ["DELETE /orgs/{org}"],
|
||||
deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
|
||||
deleteAttestationsById: [
|
||||
@@ -37238,10 +37355,18 @@ const Endpoints = {
|
||||
],
|
||||
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_id}"],
|
||||
disableSelectedRepositoryImmutableReleasesOrganization: [
|
||||
"DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
|
||||
],
|
||||
enableSelectedRepositoryImmutableReleasesOrganization: [
|
||||
"PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"
|
||||
],
|
||||
get: ["GET /orgs/{org}"],
|
||||
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
||||
getCustomProperty: [
|
||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
getImmutableReleasesSettings: [
|
||||
"GET /orgs/{org}/settings/immutable-releases"
|
||||
],
|
||||
getImmutableReleasesSettingsRepositories: [
|
||||
"GET /orgs/{org}/settings/immutable-releases/repositories"
|
||||
],
|
||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||
@@ -37260,12 +37385,12 @@ const Endpoints = {
|
||||
listArtifactStorageRecords: [
|
||||
"GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
|
||||
],
|
||||
listAttestationRepositories: ["GET /orgs/{org}/attestations/repositories"],
|
||||
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
||||
listAttestationsBulk: [
|
||||
"POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
|
||||
],
|
||||
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
||||
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
||||
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||
listForUser: ["GET /users/{username}/orgs"],
|
||||
@@ -37303,9 +37428,6 @@ const Endpoints = {
|
||||
redeliverWebhookDelivery: [
|
||||
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
||||
],
|
||||
removeCustomProperty: [
|
||||
"DELETE /orgs/{org}/properties/schema/{custom_property_name}"
|
||||
],
|
||||
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
||||
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
||||
removeOutsideCollaborator: [
|
||||
@@ -37339,6 +37461,12 @@ const Endpoints = {
|
||||
revokeOrgRoleUser: [
|
||||
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
||||
],
|
||||
setImmutableReleasesSettings: [
|
||||
"PUT /orgs/{org}/settings/immutable-releases"
|
||||
],
|
||||
setImmutableReleasesSettingsRepositories: [
|
||||
"PUT /orgs/{org}/settings/immutable-releases/repositories"
|
||||
],
|
||||
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
||||
setPublicMembershipForAuthenticatedUser: [
|
||||
"PUT /orgs/{org}/public_members/{username}"
|
||||
@@ -37460,40 +37588,42 @@ const Endpoints = {
|
||||
},
|
||||
projects: {
|
||||
addItemForOrg: ["POST /orgs/{org}/projectsV2/{project_number}/items"],
|
||||
addItemForUser: ["POST /users/{user_id}/projectsV2/{project_number}/items"],
|
||||
addItemForUser: [
|
||||
"POST /users/{username}/projectsV2/{project_number}/items"
|
||||
],
|
||||
deleteItemForOrg: [
|
||||
"DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
deleteItemForUser: [
|
||||
"DELETE /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
||||
"DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
getFieldForOrg: [
|
||||
"GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
|
||||
],
|
||||
getFieldForUser: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/fields/{field_id}"
|
||||
"GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"
|
||||
],
|
||||
getForOrg: ["GET /orgs/{org}/projectsV2/{project_number}"],
|
||||
getForUser: ["GET /users/{user_id}/projectsV2/{project_number}"],
|
||||
getForUser: ["GET /users/{username}/projectsV2/{project_number}"],
|
||||
getOrgItem: ["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],
|
||||
getUserItem: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
||||
"GET /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
listFieldsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/fields"],
|
||||
listFieldsForUser: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/fields"
|
||||
"GET /users/{username}/projectsV2/{project_number}/fields"
|
||||
],
|
||||
listForOrg: ["GET /orgs/{org}/projectsV2"],
|
||||
listForUser: ["GET /users/{username}/projectsV2"],
|
||||
listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
|
||||
listItemsForUser: [
|
||||
"GET /users/{user_id}/projectsV2/{project_number}/items"
|
||||
"GET /users/{username}/projectsV2/{project_number}/items"
|
||||
],
|
||||
updateItemForOrg: [
|
||||
"PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||
],
|
||||
updateItemForUser: [
|
||||
"PATCH /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
||||
"PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||
]
|
||||
},
|
||||
pulls: {
|
||||
@@ -37656,6 +37786,7 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
||||
checkImmutableReleases: ["GET /repos/{owner}/{repo}/immutable-releases"],
|
||||
checkPrivateVulnerabilityReporting: [
|
||||
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
@@ -37691,9 +37822,6 @@ const Endpoints = {
|
||||
createForAuthenticatedUser: ["POST /user/repos"],
|
||||
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
||||
createInOrg: ["POST /orgs/{org}/repos"],
|
||||
createOrUpdateCustomPropertiesValues: [
|
||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
||||
],
|
||||
createOrUpdateEnvironment: [
|
||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
||||
],
|
||||
@@ -37707,6 +37835,12 @@ const Endpoints = {
|
||||
"POST /repos/{template_owner}/{template_repo}/generate"
|
||||
],
|
||||
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
||||
customPropertiesForReposCreateOrUpdateRepositoryValues: [
|
||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
||||
],
|
||||
customPropertiesForReposGetRepositoryValues: [
|
||||
"GET /repos/{owner}/{repo}/properties/values"
|
||||
],
|
||||
declineInvitation: [
|
||||
"DELETE /user/repository_invitations/{invitation_id}",
|
||||
{},
|
||||
@@ -37761,6 +37895,9 @@ const Endpoints = {
|
||||
disableDeploymentProtectionRule: [
|
||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
disableImmutableReleases: [
|
||||
"DELETE /repos/{owner}/{repo}/immutable-releases"
|
||||
],
|
||||
disablePrivateVulnerabilityReporting: [
|
||||
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
@@ -37777,6 +37914,7 @@ const Endpoints = {
|
||||
enableAutomatedSecurityFixes: [
|
||||
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
||||
],
|
||||
enableImmutableReleases: ["PUT /repos/{owner}/{repo}/immutable-releases"],
|
||||
enablePrivateVulnerabilityReporting: [
|
||||
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||
],
|
||||
@@ -37828,7 +37966,6 @@ const Endpoints = {
|
||||
getCustomDeploymentProtectionRule: [
|
||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||
],
|
||||
getCustomPropertiesValues: ["GET /repos/{owner}/{repo}/properties/values"],
|
||||
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
||||
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
||||
getDeploymentBranchPolicy: [
|
||||
@@ -38046,13 +38183,7 @@ const Endpoints = {
|
||||
search: {
|
||||
code: ["GET /search/code"],
|
||||
commits: ["GET /search/commits"],
|
||||
issuesAndPullRequests: [
|
||||
"GET /search/issues",
|
||||
{},
|
||||
{
|
||||
deprecated: "octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"
|
||||
}
|
||||
],
|
||||
issuesAndPullRequests: ["GET /search/issues"],
|
||||
labels: ["GET /search/labels"],
|
||||
repos: ["GET /search/repositories"],
|
||||
topics: ["GET /search/topics"],
|
||||
@@ -38066,9 +38197,6 @@ const Endpoints = {
|
||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||
],
|
||||
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
||||
listAlertsForEnterprise: [
|
||||
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
||||
],
|
||||
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
||||
listLocationsForAlert: [
|
||||
|
||||
@@ -134,6 +134,10 @@ It defaults to `setup-uv-cache` in the `TMP` dir, `D:\a\_temp\setup-uv-cache` on
|
||||
> If you configured [cache-dir](https://docs.astral.sh/uv/reference/settings/#cache-dir) in your
|
||||
> config file then it is also respected and this action will not set `UV_CACHE_DIR`.
|
||||
|
||||
> [!NOTE]
|
||||
> If caching is disabled, you can still use `cache-local-path` so this action sets `UV_CACHE_DIR`
|
||||
> to your desired path.
|
||||
|
||||
```yaml
|
||||
- name: Define a custom uv cache path
|
||||
uses: astral-sh/setup-uv@v7
|
||||
|
||||
347
package-lock.json
generated
347
package-lock.json
generated
@@ -15,17 +15,17 @@
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.2",
|
||||
"@octokit/core": "^7.0.5",
|
||||
"@octokit/plugin-paginate-rest": "^13.2.1",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^16.1.1",
|
||||
"@octokit/core": "^7.0.6",
|
||||
"@octokit/plugin-paginate-rest": "^14.0.0",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
||||
"@renovatebot/pep440": "^4.2.1",
|
||||
"smol-toml": "^1.4.2",
|
||||
"undici": "5.28.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.3.0",
|
||||
"@biomejs/biome": "2.3.8",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/node": "^24.9.1",
|
||||
"@types/node": "^24.10.1",
|
||||
"@types/semver": "^7.7.1",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"jest": "^30.2.0",
|
||||
@@ -412,7 +412,6 @@
|
||||
"integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@ampproject/remapping": "^2.2.0",
|
||||
"@babel/code-frame": "^7.27.1",
|
||||
@@ -890,11 +889,10 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@biomejs/biome": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.0.tgz",
|
||||
"integrity": "sha512-shdUY5H3S3tJVUWoVWo5ua+GdPW5lRHf+b0IwZ4OC1o2zOKQECZ6l2KbU6t89FNhtd3Qx5eg5N7/UsQWGQbAFw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.8.tgz",
|
||||
"integrity": "sha512-Qjsgoe6FEBxWAUzwFGFrB+1+M8y/y5kwmg5CHac+GSVOdmOIqsAiXM5QMVGZJ1eCUCLlPZtq4aFAQ0eawEUuUA==",
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"bin": {
|
||||
"biome": "bin/biome"
|
||||
},
|
||||
@@ -906,25 +904,24 @@
|
||||
"url": "https://opencollective.com/biome"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@biomejs/cli-darwin-arm64": "2.3.0",
|
||||
"@biomejs/cli-darwin-x64": "2.3.0",
|
||||
"@biomejs/cli-linux-arm64": "2.3.0",
|
||||
"@biomejs/cli-linux-arm64-musl": "2.3.0",
|
||||
"@biomejs/cli-linux-x64": "2.3.0",
|
||||
"@biomejs/cli-linux-x64-musl": "2.3.0",
|
||||
"@biomejs/cli-win32-arm64": "2.3.0",
|
||||
"@biomejs/cli-win32-x64": "2.3.0"
|
||||
"@biomejs/cli-darwin-arm64": "2.3.8",
|
||||
"@biomejs/cli-darwin-x64": "2.3.8",
|
||||
"@biomejs/cli-linux-arm64": "2.3.8",
|
||||
"@biomejs/cli-linux-arm64-musl": "2.3.8",
|
||||
"@biomejs/cli-linux-x64": "2.3.8",
|
||||
"@biomejs/cli-linux-x64-musl": "2.3.8",
|
||||
"@biomejs/cli-win32-arm64": "2.3.8",
|
||||
"@biomejs/cli-win32-x64": "2.3.8"
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-darwin-arm64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.0.tgz",
|
||||
"integrity": "sha512-3cJVT0Z5pbTkoBmbjmDZTDFYxIkRcrs9sYVJbIBHU8E6qQxgXAaBfSVjjCreG56rfDuQBr43GzwzmaHPcu4vlw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.8.tgz",
|
||||
"integrity": "sha512-HM4Zg9CGQ3txTPflxD19n8MFPrmUAjaC7PQdLkugeeC0cQ+PiVrd7i09gaBS/11QKsTDBJhVg85CEIK9f50Qww==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
@@ -934,14 +931,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-darwin-x64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.0.tgz",
|
||||
"integrity": "sha512-6LIkhglh3UGjuDqJXsK42qCA0XkD1Ke4K/raFOii7QQPbM8Pia7Qj2Hji4XuF2/R78hRmEx7uKJH3t/Y9UahtQ==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.8.tgz",
|
||||
"integrity": "sha512-lUDQ03D7y/qEao7RgdjWVGCu+BLYadhKTm40HkpJIi6kn8LSv5PAwRlew/DmwP4YZ9ke9XXoTIQDO1vAnbRZlA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"darwin"
|
||||
@@ -951,14 +947,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-arm64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.0.tgz",
|
||||
"integrity": "sha512-uhAsbXySX7xsXahegDg5h3CDgfMcRsJvWLFPG0pjkylgBb9lErbK2C0UINW52zhwg0cPISB09lxHPxCau4e2xA==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.8.tgz",
|
||||
"integrity": "sha512-Uo1OJnIkJgSgF+USx970fsM/drtPcQ39I+JO+Fjsaa9ZdCN1oysQmy6oAGbyESlouz+rzEckLTF6DS7cWse95g==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -968,14 +963,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-arm64-musl": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.0.tgz",
|
||||
"integrity": "sha512-nDksoFdwZ2YrE7NiYDhtMhL2UgFn8Kb7Y0bYvnTAakHnqEdb4lKindtBc1f+xg2Snz0JQhJUYO7r9CDBosRU5w==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.8.tgz",
|
||||
"integrity": "sha512-PShR4mM0sjksUMyxbyPNMxoKFPVF48fU8Qe8Sfx6w6F42verbwRLbz+QiKNiDPRJwUoMG1nPM50OBL3aOnTevA==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -985,14 +979,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-x64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.0.tgz",
|
||||
"integrity": "sha512-uxa8reA2s1VgoH8MhbGlCmMOt3JuSE1vJBifkh1ulaPiuk0SPx8cCdpnm9NWnTe2x/LfWInWx4sZ7muaXTPGGw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.8.tgz",
|
||||
"integrity": "sha512-QDPMD5bQz6qOVb3kiBui0zKZXASLo0NIQ9JVJio5RveBEFgDgsvJFUvZIbMbUZT3T00M/1wdzwWXk4GIh0KaAw==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -1002,14 +995,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-linux-x64-musl": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.0.tgz",
|
||||
"integrity": "sha512-+i9UcJwl99uAhtRQDz9jUAh+Xkb097eekxs/D9j4deWDg5/yB/jPWzISe1nBHvlzTXsdUSj0VvB4Go2DSpKIMw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.8.tgz",
|
||||
"integrity": "sha512-YGLkqU91r1276uwSjiUD/xaVikdxgV1QpsicT0bIA1TaieM6E5ibMZeSyjQ/izBn4tKQthUSsVZacmoJfa3pDA==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"linux"
|
||||
@@ -1019,14 +1011,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-win32-arm64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.0.tgz",
|
||||
"integrity": "sha512-ynjmsJLIKrAjC3CCnKMMhzcnNy8dbQWjKfSU5YA0mIruTxBNMbkAJp+Pr2iV7/hFou+66ZSD/WV8hmLEmhUaXA==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.8.tgz",
|
||||
"integrity": "sha512-H4IoCHvL1fXKDrTALeTKMiE7GGWFAraDwBYFquE/L/5r1927Te0mYIGseXi4F+lrrwhSWbSGt5qPFswNoBaCxg==",
|
||||
"cpu": [
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
@@ -1036,14 +1027,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@biomejs/cli-win32-x64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.0.tgz",
|
||||
"integrity": "sha512-zOCYmCRVkWXc9v8P7OLbLlGGMxQTKMvi+5IC4v7O8DkjLCOHRzRVK/Lno2pGZNo0lzKM60pcQOhH8HVkXMQdFg==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.8.tgz",
|
||||
"integrity": "sha512-RguzimPoZWtBapfKhKjcWXBVI91tiSprqdBYu7tWhgN8pKRZhw24rFeNZTNf6UiBfjCYCi9eFQs/JzJZIhuK4w==",
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"license": "MIT OR Apache-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
"win32"
|
||||
@@ -1600,17 +1590,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/core": {
|
||||
"version": "7.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.5.tgz",
|
||||
"integrity": "sha512-t54CUOsFMappY1Jbzb7fetWeO0n6K0k/4+/ZpkS+3Joz8I4VcvY9OiEBFRYISqaI2fq5sCiPtAjRDOzVYG8m+Q==",
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz",
|
||||
"integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@octokit/auth-token": "^6.0.0",
|
||||
"@octokit/graphql": "^9.0.2",
|
||||
"@octokit/request": "^10.0.4",
|
||||
"@octokit/request-error": "^7.0.1",
|
||||
"@octokit/types": "^15.0.0",
|
||||
"@octokit/graphql": "^9.0.3",
|
||||
"@octokit/request": "^10.0.6",
|
||||
"@octokit/request-error": "^7.0.2",
|
||||
"@octokit/types": "^16.0.0",
|
||||
"before-after-hook": "^4.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
@@ -1619,12 +1608,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": {
|
||||
@@ -1632,13 +1621,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/graphql": {
|
||||
"version": "9.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.2.tgz",
|
||||
"integrity": "sha512-iz6KzZ7u95Fzy9Nt2L8cG88lGRMr/qy1Q36ih/XVzMIlPDMYwaNLE/ENhqmIzgPrlNWiYJkwmveEetvxAgFBJw==",
|
||||
"version": "9.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.3.tgz",
|
||||
"integrity": "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/request": "^10.0.4",
|
||||
"@octokit/types": "^15.0.0",
|
||||
"@octokit/request": "^10.0.6",
|
||||
"@octokit/types": "^16.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
@@ -1646,18 +1635,18 @@
|
||||
}
|
||||
},
|
||||
"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/plugin-paginate-rest": {
|
||||
"version": "13.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-13.2.1.tgz",
|
||||
"integrity": "sha512-Tj4PkZyIL6eBMYcG/76QGsedF0+dWVeLhYprTmuFVVxzDW7PQh23tM0TP0z+1MvSkxB29YFZwnUX+cXfTiSdyw==",
|
||||
"version": "14.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-14.0.0.tgz",
|
||||
"integrity": "sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^15.0.1"
|
||||
"@octokit/types": "^16.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 20"
|
||||
@@ -1667,12 +1656,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "16.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-16.1.1.tgz",
|
||||
"integrity": "sha512-VztDkhM0ketQYSh5Im3IcKWFZl7VIrrsCaHbDINkdYeiiAsJzjhS2xRFCSJgfN6VOcsoW4laMtsmf3HcNqIimg==",
|
||||
"version": "17.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-17.0.0.tgz",
|
||||
"integrity": "sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^15.0.1"
|
||||
"@octokit/types": "^16.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 20"
|
||||
@@ -1682,14 +1671,14 @@
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
@@ -1698,24 +1687,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.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-15.0.1.tgz",
|
||||
"integrity": "sha512-sdiirM93IYJ9ODDCBgmRPIboLbSkpLa5i+WLuXH8b8Atg+YMLAyLvDDhNWLV4OYd08tlvYfVm/dw88cqHWtw1Q==",
|
||||
"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/@opentelemetry/api": {
|
||||
@@ -1900,9 +1889,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "24.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.1.tgz",
|
||||
"integrity": "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg==",
|
||||
"version": "24.10.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
|
||||
"integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~7.16.0"
|
||||
@@ -2502,7 +2491,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"caniuse-lite": "^1.0.30001733",
|
||||
"electron-to-chromium": "^1.5.199",
|
||||
@@ -3630,7 +3618,6 @@
|
||||
"integrity": "sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@jest/core": "30.2.0",
|
||||
"@jest/types": "30.2.0",
|
||||
@@ -5329,7 +5316,6 @@
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
@@ -6072,7 +6058,6 @@
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.0.tgz",
|
||||
"integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==",
|
||||
"dev": true,
|
||||
"peer": true,
|
||||
"requires": {
|
||||
"@ampproject/remapping": "^2.2.0",
|
||||
"@babel/code-frame": "^7.27.1",
|
||||
@@ -6395,74 +6380,74 @@
|
||||
"dev": true
|
||||
},
|
||||
"@biomejs/biome": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.0.tgz",
|
||||
"integrity": "sha512-shdUY5H3S3tJVUWoVWo5ua+GdPW5lRHf+b0IwZ4OC1o2zOKQECZ6l2KbU6t89FNhtd3Qx5eg5N7/UsQWGQbAFw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.8.tgz",
|
||||
"integrity": "sha512-Qjsgoe6FEBxWAUzwFGFrB+1+M8y/y5kwmg5CHac+GSVOdmOIqsAiXM5QMVGZJ1eCUCLlPZtq4aFAQ0eawEUuUA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@biomejs/cli-darwin-arm64": "2.3.0",
|
||||
"@biomejs/cli-darwin-x64": "2.3.0",
|
||||
"@biomejs/cli-linux-arm64": "2.3.0",
|
||||
"@biomejs/cli-linux-arm64-musl": "2.3.0",
|
||||
"@biomejs/cli-linux-x64": "2.3.0",
|
||||
"@biomejs/cli-linux-x64-musl": "2.3.0",
|
||||
"@biomejs/cli-win32-arm64": "2.3.0",
|
||||
"@biomejs/cli-win32-x64": "2.3.0"
|
||||
"@biomejs/cli-darwin-arm64": "2.3.8",
|
||||
"@biomejs/cli-darwin-x64": "2.3.8",
|
||||
"@biomejs/cli-linux-arm64": "2.3.8",
|
||||
"@biomejs/cli-linux-arm64-musl": "2.3.8",
|
||||
"@biomejs/cli-linux-x64": "2.3.8",
|
||||
"@biomejs/cli-linux-x64-musl": "2.3.8",
|
||||
"@biomejs/cli-win32-arm64": "2.3.8",
|
||||
"@biomejs/cli-win32-x64": "2.3.8"
|
||||
}
|
||||
},
|
||||
"@biomejs/cli-darwin-arm64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.0.tgz",
|
||||
"integrity": "sha512-3cJVT0Z5pbTkoBmbjmDZTDFYxIkRcrs9sYVJbIBHU8E6qQxgXAaBfSVjjCreG56rfDuQBr43GzwzmaHPcu4vlw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.8.tgz",
|
||||
"integrity": "sha512-HM4Zg9CGQ3txTPflxD19n8MFPrmUAjaC7PQdLkugeeC0cQ+PiVrd7i09gaBS/11QKsTDBJhVg85CEIK9f50Qww==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@biomejs/cli-darwin-x64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.0.tgz",
|
||||
"integrity": "sha512-6LIkhglh3UGjuDqJXsK42qCA0XkD1Ke4K/raFOii7QQPbM8Pia7Qj2Hji4XuF2/R78hRmEx7uKJH3t/Y9UahtQ==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.8.tgz",
|
||||
"integrity": "sha512-lUDQ03D7y/qEao7RgdjWVGCu+BLYadhKTm40HkpJIi6kn8LSv5PAwRlew/DmwP4YZ9ke9XXoTIQDO1vAnbRZlA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@biomejs/cli-linux-arm64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.0.tgz",
|
||||
"integrity": "sha512-uhAsbXySX7xsXahegDg5h3CDgfMcRsJvWLFPG0pjkylgBb9lErbK2C0UINW52zhwg0cPISB09lxHPxCau4e2xA==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.8.tgz",
|
||||
"integrity": "sha512-Uo1OJnIkJgSgF+USx970fsM/drtPcQ39I+JO+Fjsaa9ZdCN1oysQmy6oAGbyESlouz+rzEckLTF6DS7cWse95g==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@biomejs/cli-linux-arm64-musl": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.0.tgz",
|
||||
"integrity": "sha512-nDksoFdwZ2YrE7NiYDhtMhL2UgFn8Kb7Y0bYvnTAakHnqEdb4lKindtBc1f+xg2Snz0JQhJUYO7r9CDBosRU5w==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.8.tgz",
|
||||
"integrity": "sha512-PShR4mM0sjksUMyxbyPNMxoKFPVF48fU8Qe8Sfx6w6F42verbwRLbz+QiKNiDPRJwUoMG1nPM50OBL3aOnTevA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@biomejs/cli-linux-x64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.0.tgz",
|
||||
"integrity": "sha512-uxa8reA2s1VgoH8MhbGlCmMOt3JuSE1vJBifkh1ulaPiuk0SPx8cCdpnm9NWnTe2x/LfWInWx4sZ7muaXTPGGw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.8.tgz",
|
||||
"integrity": "sha512-QDPMD5bQz6qOVb3kiBui0zKZXASLo0NIQ9JVJio5RveBEFgDgsvJFUvZIbMbUZT3T00M/1wdzwWXk4GIh0KaAw==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@biomejs/cli-linux-x64-musl": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.0.tgz",
|
||||
"integrity": "sha512-+i9UcJwl99uAhtRQDz9jUAh+Xkb097eekxs/D9j4deWDg5/yB/jPWzISe1nBHvlzTXsdUSj0VvB4Go2DSpKIMw==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.8.tgz",
|
||||
"integrity": "sha512-YGLkqU91r1276uwSjiUD/xaVikdxgV1QpsicT0bIA1TaieM6E5ibMZeSyjQ/izBn4tKQthUSsVZacmoJfa3pDA==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@biomejs/cli-win32-arm64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.0.tgz",
|
||||
"integrity": "sha512-ynjmsJLIKrAjC3CCnKMMhzcnNy8dbQWjKfSU5YA0mIruTxBNMbkAJp+Pr2iV7/hFou+66ZSD/WV8hmLEmhUaXA==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.8.tgz",
|
||||
"integrity": "sha512-H4IoCHvL1fXKDrTALeTKMiE7GGWFAraDwBYFquE/L/5r1927Te0mYIGseXi4F+lrrwhSWbSGt5qPFswNoBaCxg==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
"@biomejs/cli-win32-x64": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.0.tgz",
|
||||
"integrity": "sha512-zOCYmCRVkWXc9v8P7OLbLlGGMxQTKMvi+5IC4v7O8DkjLCOHRzRVK/Lno2pGZNo0lzKM60pcQOhH8HVkXMQdFg==",
|
||||
"version": "2.3.8",
|
||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.8.tgz",
|
||||
"integrity": "sha512-RguzimPoZWtBapfKhKjcWXBVI91tiSprqdBYu7tWhgN8pKRZhw24rFeNZTNf6UiBfjCYCi9eFQs/JzJZIhuK4w==",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
},
|
||||
@@ -6893,86 +6878,85 @@
|
||||
"integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w=="
|
||||
},
|
||||
"@octokit/core": {
|
||||
"version": "7.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.5.tgz",
|
||||
"integrity": "sha512-t54CUOsFMappY1Jbzb7fetWeO0n6K0k/4+/ZpkS+3Joz8I4VcvY9OiEBFRYISqaI2fq5sCiPtAjRDOzVYG8m+Q==",
|
||||
"peer": true,
|
||||
"version": "7.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz",
|
||||
"integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==",
|
||||
"requires": {
|
||||
"@octokit/auth-token": "^6.0.0",
|
||||
"@octokit/graphql": "^9.0.2",
|
||||
"@octokit/request": "^10.0.4",
|
||||
"@octokit/request-error": "^7.0.1",
|
||||
"@octokit/types": "^15.0.0",
|
||||
"@octokit/graphql": "^9.0.3",
|
||||
"@octokit/request": "^10.0.6",
|
||||
"@octokit/request-error": "^7.0.2",
|
||||
"@octokit/types": "^16.0.0",
|
||||
"before-after-hook": "^4.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"@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==",
|
||||
"requires": {
|
||||
"@octokit/types": "^15.0.0",
|
||||
"@octokit/types": "^16.0.0",
|
||||
"universal-user-agent": "^7.0.2"
|
||||
}
|
||||
},
|
||||
"@octokit/graphql": {
|
||||
"version": "9.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.2.tgz",
|
||||
"integrity": "sha512-iz6KzZ7u95Fzy9Nt2L8cG88lGRMr/qy1Q36ih/XVzMIlPDMYwaNLE/ENhqmIzgPrlNWiYJkwmveEetvxAgFBJw==",
|
||||
"version": "9.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.3.tgz",
|
||||
"integrity": "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==",
|
||||
"requires": {
|
||||
"@octokit/request": "^10.0.4",
|
||||
"@octokit/types": "^15.0.0",
|
||||
"@octokit/request": "^10.0.6",
|
||||
"@octokit/types": "^16.0.0",
|
||||
"universal-user-agent": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"@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=="
|
||||
},
|
||||
"@octokit/plugin-paginate-rest": {
|
||||
"version": "13.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-13.2.1.tgz",
|
||||
"integrity": "sha512-Tj4PkZyIL6eBMYcG/76QGsedF0+dWVeLhYprTmuFVVxzDW7PQh23tM0TP0z+1MvSkxB29YFZwnUX+cXfTiSdyw==",
|
||||
"version": "14.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-14.0.0.tgz",
|
||||
"integrity": "sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==",
|
||||
"requires": {
|
||||
"@octokit/types": "^15.0.1"
|
||||
"@octokit/types": "^16.0.0"
|
||||
}
|
||||
},
|
||||
"@octokit/plugin-rest-endpoint-methods": {
|
||||
"version": "16.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-16.1.1.tgz",
|
||||
"integrity": "sha512-VztDkhM0ketQYSh5Im3IcKWFZl7VIrrsCaHbDINkdYeiiAsJzjhS2xRFCSJgfN6VOcsoW4laMtsmf3HcNqIimg==",
|
||||
"version": "17.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-17.0.0.tgz",
|
||||
"integrity": "sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==",
|
||||
"requires": {
|
||||
"@octokit/types": "^15.0.1"
|
||||
"@octokit/types": "^16.0.0"
|
||||
}
|
||||
},
|
||||
"@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==",
|
||||
"requires": {
|
||||
"@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"
|
||||
}
|
||||
},
|
||||
"@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==",
|
||||
"requires": {
|
||||
"@octokit/types": "^15.0.0"
|
||||
"@octokit/types": "^16.0.0"
|
||||
}
|
||||
},
|
||||
"@octokit/types": {
|
||||
"version": "15.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-15.0.1.tgz",
|
||||
"integrity": "sha512-sdiirM93IYJ9ODDCBgmRPIboLbSkpLa5i+WLuXH8b8Atg+YMLAyLvDDhNWLV4OYd08tlvYfVm/dw88cqHWtw1Q==",
|
||||
"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==",
|
||||
"requires": {
|
||||
"@octokit/openapi-types": "^26.0.0"
|
||||
"@octokit/openapi-types": "^27.0.0"
|
||||
}
|
||||
},
|
||||
"@opentelemetry/api": {
|
||||
@@ -7126,9 +7110,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"@types/node": {
|
||||
"version": "24.9.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.1.tgz",
|
||||
"integrity": "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg==",
|
||||
"version": "24.10.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
|
||||
"integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
|
||||
"requires": {
|
||||
"undici-types": "~7.16.0"
|
||||
}
|
||||
@@ -7503,7 +7487,6 @@
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.25.2.tgz",
|
||||
"integrity": "sha512-0si2SJK3ooGzIawRu61ZdPCO1IncZwS8IzuX73sPZsXW6EQ/w/DAfPyKI8l1ETTCr2MnvqWitmlCUxgdul45jA==",
|
||||
"dev": true,
|
||||
"peer": true,
|
||||
"requires": {
|
||||
"caniuse-lite": "^1.0.30001733",
|
||||
"electron-to-chromium": "^1.5.199",
|
||||
@@ -8250,7 +8233,6 @@
|
||||
"resolved": "https://registry.npmjs.org/jest/-/jest-30.2.0.tgz",
|
||||
"integrity": "sha512-F26gjC0yWN8uAA5m5Ss8ZQf5nDHWGlN/xWZIh8S5SRbsEKBovwZhxGd6LJlbZYxBgCYOtreSUyb8hpXyGC5O4A==",
|
||||
"dev": true,
|
||||
"peer": true,
|
||||
"requires": {
|
||||
"@jest/core": "30.2.0",
|
||||
"@jest/types": "30.2.0",
|
||||
@@ -9398,8 +9380,7 @@
|
||||
"version": "5.9.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
|
||||
"integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
|
||||
"dev": true,
|
||||
"peer": true
|
||||
"dev": true
|
||||
},
|
||||
"uglify-js": {
|
||||
"version": "3.19.3",
|
||||
|
||||
17
package.json
17
package.json
@@ -17,7 +17,12 @@
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/astral-sh/setup-uv.git"
|
||||
},
|
||||
"keywords": ["actions", "python", "setup", "uv"],
|
||||
"keywords": [
|
||||
"actions",
|
||||
"python",
|
||||
"setup",
|
||||
"uv"
|
||||
],
|
||||
"author": "@eifinger",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -27,17 +32,17 @@
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@actions/io": "^1.1.3",
|
||||
"@actions/tool-cache": "^2.0.2",
|
||||
"@octokit/core": "^7.0.5",
|
||||
"@octokit/plugin-paginate-rest": "^13.2.1",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^16.1.1",
|
||||
"@octokit/core": "^7.0.6",
|
||||
"@octokit/plugin-paginate-rest": "^14.0.0",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
||||
"@renovatebot/pep440": "^4.2.1",
|
||||
"smol-toml": "^1.4.2",
|
||||
"undici": "5.28.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.3.0",
|
||||
"@biomejs/biome": "2.3.8",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"@types/node": "^24.9.1",
|
||||
"@types/node": "^24.10.1",
|
||||
"@types/semver": "^7.7.1",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"jest": "^30.2.0",
|
||||
|
||||
7
src/cache/restore-cache.ts
vendored
7
src/cache/restore-cache.ts
vendored
@@ -32,7 +32,12 @@ export async function restoreCache(): Promise<void> {
|
||||
core.info(
|
||||
`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`,
|
||||
);
|
||||
const cachePaths = [cacheLocalPath];
|
||||
if (cacheLocalPath === undefined) {
|
||||
throw new Error(
|
||||
"cache-local-path is not set. Cannot restore cache without a valid cache path.",
|
||||
);
|
||||
}
|
||||
const cachePaths = [cacheLocalPath.path];
|
||||
if (cachePython) {
|
||||
cachePaths.push(pythonDir);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,41 @@
|
||||
// AUTOGENERATED_DO_NOT_EDIT
|
||||
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
||||
"aarch64-apple-darwin-0.9.16":
|
||||
"db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
||||
"aarch64-pc-windows-msvc-0.9.16":
|
||||
"591c73f47dfec72f9d242eebcb36197f27ad652a59d70e70db5c52018684d78e",
|
||||
"aarch64-unknown-linux-gnu-0.9.16":
|
||||
"a8e9e3f7e621e212d9663ea28827bd8fb9ec11c453ae88d520b48e969e9ff5db",
|
||||
"aarch64-unknown-linux-musl-0.9.16":
|
||||
"cb6730e083f17b38aea88c2bdfc3d4c834a832444087d30d7914bd460ae15b79",
|
||||
"arm-unknown-linux-musleabihf-0.9.16":
|
||||
"4c2447ff0aad62934605252eaf6372efb82fb38330b88785e162929491870186",
|
||||
"armv7-unknown-linux-gnueabihf-0.9.16":
|
||||
"5a09476442563f6ee32d864d89a87490bf5a850c987898c648ef57608c5899cb",
|
||||
"armv7-unknown-linux-musleabihf-0.9.16":
|
||||
"180846487d6baa1ca9d4cd90a0aaf38f7466d3c211c219bd4d7ffbbbc5077ef2",
|
||||
"i686-pc-windows-msvc-0.9.16":
|
||||
"f6921ace765a2905c0cda8bf8185ecd60d83060da4b2904a28b5a8c23ffc7aa2",
|
||||
"i686-unknown-linux-gnu-0.9.16":
|
||||
"1cdb9a2086a5d1ea37e219c45407730ef3e7711737b71fae49d1396918f4cdba",
|
||||
"i686-unknown-linux-musl-0.9.16":
|
||||
"f8b0159c52bc43cbe598c52dd43ca911c22c6b9da992f3604434b23d21ac5ff6",
|
||||
"powerpc64-unknown-linux-gnu-0.9.16":
|
||||
"40c39d344c92c6a877fdfe89db8a5f84990dbb7097e529122bd7d90d1975eb90",
|
||||
"powerpc64le-unknown-linux-gnu-0.9.16":
|
||||
"982167ebae22efbda212ccbacc582b00486150695d83fca94d39c3422a0f8865",
|
||||
"riscv64gc-unknown-linux-gnu-0.9.16":
|
||||
"b94ef3afa9bc94288e069162143ec20ed1d103d7631a17ca14c6ac28e8825baa",
|
||||
"s390x-unknown-linux-gnu-0.9.16":
|
||||
"cd32014282b2d2de53eb0176004dffddec77f0afbe76713f57c245e08cdf2b21",
|
||||
"x86_64-apple-darwin-0.9.16":
|
||||
"e1ba1992e163f8b9d54d1cd1501002f019f4b729dec2a197e79a56d354ec2773",
|
||||
"x86_64-pc-windows-msvc-0.9.16":
|
||||
"e498a1d5983da7727af96b63ddfcd52ee883173552664ad0b629b3d4c7a46e91",
|
||||
"x86_64-unknown-linux-gnu-0.9.16":
|
||||
"3adbf5322471b53a61483b4a5d091e70c32231ebc63fd327fae7b844cbcd3e01",
|
||||
"x86_64-unknown-linux-musl-0.9.16":
|
||||
"35a26bea6aad2c8eb468cdf69baccc7ab79b3d0971a76a6741a687535a2acfad",
|
||||
"aarch64-apple-darwin-0.9.15":
|
||||
"388029510fdf64771745e9fb85cd6ec042580678a9e61c90fe355301f1c42f1e",
|
||||
"aarch64-pc-windows-msvc-0.9.15":
|
||||
|
||||
@@ -59,10 +59,18 @@ async function saveCache(): Promise<void> {
|
||||
await pruneCache();
|
||||
}
|
||||
|
||||
let actualCachePath = cacheLocalPath;
|
||||
if (process.env.UV_CACHE_DIR && process.env.UV_CACHE_DIR !== cacheLocalPath) {
|
||||
if (cacheLocalPath === undefined) {
|
||||
throw new Error(
|
||||
"cache-local-path is not set. Cannot save cache without a valid cache path.",
|
||||
);
|
||||
}
|
||||
let actualCachePath = cacheLocalPath.path;
|
||||
if (
|
||||
process.env.UV_CACHE_DIR &&
|
||||
process.env.UV_CACHE_DIR !== cacheLocalPath.path
|
||||
) {
|
||||
core.warning(
|
||||
`The environment variable UV_CACHE_DIR has been changed to "${process.env.UV_CACHE_DIR}", by an action or step running after astral-sh/setup-uv. This can lead to unexpected behavior. If you expected this to happen set the cache-local-path input to "${process.env.UV_CACHE_DIR}" instead of "${cacheLocalPath}".`,
|
||||
`The environment variable UV_CACHE_DIR has been changed to "${process.env.UV_CACHE_DIR}", by an action or step running after astral-sh/setup-uv. This can lead to unexpected behavior. If you expected this to happen set the cache-local-path input to "${process.env.UV_CACHE_DIR}" instead of "${cacheLocalPath.path}".`,
|
||||
);
|
||||
actualCachePath = process.env.UV_CACHE_DIR;
|
||||
}
|
||||
|
||||
@@ -8,11 +8,11 @@ import {
|
||||
resolveVersion,
|
||||
tryGetFromToolCache,
|
||||
} from "./download/download-version";
|
||||
import { getConfigValueFromTomlFile } from "./utils/config-file";
|
||||
import { STATE_UV_PATH, STATE_UV_VERSION } from "./utils/constants";
|
||||
import {
|
||||
activateEnvironment as activateEnvironmentInput,
|
||||
addProblemMatchers,
|
||||
CacheLocalSource,
|
||||
cacheLocalPath,
|
||||
checkSum,
|
||||
enableCache,
|
||||
@@ -252,16 +252,15 @@ async function activateEnvironment(): Promise<void> {
|
||||
}
|
||||
|
||||
function setCacheDir(): void {
|
||||
if (enableCache) {
|
||||
const cacheDirFromConfig = getConfigValueFromTomlFile("", "cache-dir");
|
||||
if (cacheDirFromConfig !== undefined) {
|
||||
if (cacheLocalPath !== undefined) {
|
||||
if (cacheLocalPath.source === CacheLocalSource.Config) {
|
||||
core.info(
|
||||
"Using cache-dir from uv config file, not modifying UV_CACHE_DIR",
|
||||
);
|
||||
return;
|
||||
}
|
||||
core.exportVariable("UV_CACHE_DIR", cacheLocalPath);
|
||||
core.info(`Set UV_CACHE_DIR to ${cacheLocalPath}`);
|
||||
core.exportVariable("UV_CACHE_DIR", cacheLocalPath.path);
|
||||
core.info(`Set UV_CACHE_DIR to ${cacheLocalPath.path}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,13 @@ import path from "node:path";
|
||||
import * as core from "@actions/core";
|
||||
import { getConfigValueFromTomlFile } from "./config-file";
|
||||
|
||||
export enum CacheLocalSource {
|
||||
Input,
|
||||
Config,
|
||||
Env,
|
||||
Default,
|
||||
}
|
||||
|
||||
export const workingDirectory = core.getInput("working-directory");
|
||||
export const version = core.getInput("version");
|
||||
export const versionFile = getVersionFile();
|
||||
@@ -80,32 +87,51 @@ function getToolDir(): string | undefined {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function getCacheLocalPath(): string {
|
||||
function getCacheLocalPath():
|
||||
| {
|
||||
path: string;
|
||||
source: CacheLocalSource;
|
||||
}
|
||||
| undefined {
|
||||
const cacheLocalPathInput = core.getInput("cache-local-path");
|
||||
if (cacheLocalPathInput !== "") {
|
||||
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
||||
return resolveRelativePath(tildeExpanded);
|
||||
return {
|
||||
path: resolveRelativePath(tildeExpanded),
|
||||
source: CacheLocalSource.Input,
|
||||
};
|
||||
}
|
||||
const cacheDirFromConfig = getCacheDirFromConfig();
|
||||
if (cacheDirFromConfig !== undefined) {
|
||||
return cacheDirFromConfig;
|
||||
return { path: cacheDirFromConfig, source: CacheLocalSource.Config };
|
||||
}
|
||||
if (process.env.UV_CACHE_DIR !== undefined) {
|
||||
core.info(`UV_CACHE_DIR is already set to ${process.env.UV_CACHE_DIR}`);
|
||||
return process.env.UV_CACHE_DIR;
|
||||
return { path: process.env.UV_CACHE_DIR, source: CacheLocalSource.Env };
|
||||
}
|
||||
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||
if (process.env.RUNNER_TEMP !== undefined) {
|
||||
return `${process.env.RUNNER_TEMP}${path.sep}setup-uv-cache`;
|
||||
if (getEnableCache()) {
|
||||
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||
if (process.env.RUNNER_TEMP !== undefined) {
|
||||
return {
|
||||
path: `${process.env.RUNNER_TEMP}${path.sep}setup-uv-cache`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
throw Error(
|
||||
"Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input",
|
||||
);
|
||||
}
|
||||
throw Error(
|
||||
"Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input",
|
||||
);
|
||||
if (process.platform === "win32") {
|
||||
return {
|
||||
path: `${process.env.APPDATA}${path.sep}uv${path.sep}cache`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
return {
|
||||
path: `${process.env.HOME}${path.sep}.cache${path.sep}uv`,
|
||||
source: CacheLocalSource.Default,
|
||||
};
|
||||
}
|
||||
if (process.platform === "win32") {
|
||||
return `${process.env.APPDATA}${path.sep}uv${path.sep}cache`;
|
||||
}
|
||||
return `${process.env.HOME}${path.sep}.cache${path.sep}uv`;
|
||||
}
|
||||
|
||||
function getCacheDirFromConfig(): string | undefined {
|
||||
|
||||
@@ -1,4 +1,130 @@
|
||||
[
|
||||
{
|
||||
"arch": "aarch64",
|
||||
"artifactName": "uv-aarch64-apple-darwin.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-aarch64-apple-darwin.tar.gz",
|
||||
"platform": "apple-darwin",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "aarch64",
|
||||
"artifactName": "uv-aarch64-pc-windows-msvc.zip",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-aarch64-pc-windows-msvc.zip",
|
||||
"platform": "pc-windows-msvc",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "aarch64",
|
||||
"artifactName": "uv-aarch64-unknown-linux-gnu.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-aarch64-unknown-linux-gnu.tar.gz",
|
||||
"platform": "unknown-linux-gnu",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "aarch64",
|
||||
"artifactName": "uv-aarch64-unknown-linux-musl.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-aarch64-unknown-linux-musl.tar.gz",
|
||||
"platform": "unknown-linux-musl",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "arm",
|
||||
"artifactName": "uv-arm-unknown-linux-musleabihf.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-arm-unknown-linux-musleabihf.tar.gz",
|
||||
"platform": "unknown-linux-musleabihf",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "armv7",
|
||||
"artifactName": "uv-armv7-unknown-linux-gnueabihf.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-armv7-unknown-linux-gnueabihf.tar.gz",
|
||||
"platform": "unknown-linux-gnueabihf",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "armv7",
|
||||
"artifactName": "uv-armv7-unknown-linux-musleabihf.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-armv7-unknown-linux-musleabihf.tar.gz",
|
||||
"platform": "unknown-linux-musleabihf",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "i686",
|
||||
"artifactName": "uv-i686-pc-windows-msvc.zip",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-i686-pc-windows-msvc.zip",
|
||||
"platform": "pc-windows-msvc",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "i686",
|
||||
"artifactName": "uv-i686-unknown-linux-gnu.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-i686-unknown-linux-gnu.tar.gz",
|
||||
"platform": "unknown-linux-gnu",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "i686",
|
||||
"artifactName": "uv-i686-unknown-linux-musl.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-i686-unknown-linux-musl.tar.gz",
|
||||
"platform": "unknown-linux-musl",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "powerpc64",
|
||||
"artifactName": "uv-powerpc64-unknown-linux-gnu.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-powerpc64-unknown-linux-gnu.tar.gz",
|
||||
"platform": "unknown-linux-gnu",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "powerpc64le",
|
||||
"artifactName": "uv-powerpc64le-unknown-linux-gnu.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-powerpc64le-unknown-linux-gnu.tar.gz",
|
||||
"platform": "unknown-linux-gnu",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "riscv64gc",
|
||||
"artifactName": "uv-riscv64gc-unknown-linux-gnu.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-riscv64gc-unknown-linux-gnu.tar.gz",
|
||||
"platform": "unknown-linux-gnu",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "s390x",
|
||||
"artifactName": "uv-s390x-unknown-linux-gnu.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-s390x-unknown-linux-gnu.tar.gz",
|
||||
"platform": "unknown-linux-gnu",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "x86_64",
|
||||
"artifactName": "uv-x86_64-apple-darwin.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-x86_64-apple-darwin.tar.gz",
|
||||
"platform": "apple-darwin",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "x86_64",
|
||||
"artifactName": "uv-x86_64-pc-windows-msvc.zip",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-x86_64-pc-windows-msvc.zip",
|
||||
"platform": "pc-windows-msvc",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "x86_64",
|
||||
"artifactName": "uv-x86_64-unknown-linux-gnu.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-x86_64-unknown-linux-gnu.tar.gz",
|
||||
"platform": "unknown-linux-gnu",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "x86_64",
|
||||
"artifactName": "uv-x86_64-unknown-linux-musl.tar.gz",
|
||||
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.16/uv-x86_64-unknown-linux-musl.tar.gz",
|
||||
"platform": "unknown-linux-musl",
|
||||
"version": "0.9.16"
|
||||
},
|
||||
{
|
||||
"arch": "aarch64",
|
||||
"artifactName": "uv-aarch64-apple-darwin.tar.gz",
|
||||
|
||||
Reference in New Issue
Block a user