mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-12-17 11:05:59 +00:00
Compare commits
9 Commits
7dd56c18e9
...
v7.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
681c641aba | ||
|
|
2e85713bb0 | ||
|
|
58b6d7b303 | ||
|
|
e8b52af86e | ||
|
|
ed21f2f24f | ||
|
|
93202d8fbe | ||
|
|
5ce090076d | ||
|
|
4180991cd9 | ||
|
|
0439606c8e |
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@@ -41,13 +41,13 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
|
uses: github/codeql-action/init@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
languages: ${{ matrix.language }}
|
||||||
source-root: src
|
source-root: src
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# 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)
|
# If this step fails, then you should remove it and run the build manually (see below)
|
||||||
- name: Autobuild
|
- 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.
|
# ℹ️ Command-line programs to run using the OS shell.
|
||||||
# 📚 https://git.io/JvXDl
|
# 📚 https://git.io/JvXDl
|
||||||
@@ -73,4 +73,4 @@ jobs:
|
|||||||
# make release
|
# make release
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@16140ae1a102900babc80a33c44059580f687047 # v4.30.9
|
uses: github/codeql-action/analyze@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
|
||||||
|
|||||||
158
.github/workflows/test.yml
vendored
158
.github/workflows/test.yml
vendored
@@ -21,14 +21,14 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
security-events: write # for zizmor
|
security-events: write # for zizmor
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Actionlint
|
- name: Actionlint
|
||||||
uses: eifinger/actionlint-action@213860089b7cf97d640aa67567898fabeb132746 # v1.9.3
|
uses: eifinger/actionlint-action@213860089b7cf97d640aa67567898fabeb132746 # v1.9.3
|
||||||
- name: Run zizmor
|
- name: Run zizmor
|
||||||
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0
|
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0
|
||||||
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||||
with:
|
with:
|
||||||
node-version-file: .nvmrc
|
node-version-file: .nvmrc
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
|
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install latest version
|
- name: Install latest version
|
||||||
@@ -76,7 +76,7 @@ jobs:
|
|||||||
test-uv-no-modify-path:
|
test-uv-no-modify-path:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install with UV_NO_MODIFY_PATH set
|
- name: Install with UV_NO_MODIFY_PATH set
|
||||||
@@ -125,7 +125,7 @@ jobs:
|
|||||||
expected-version: "0.1.0"
|
expected-version: "0.1.0"
|
||||||
resolution-strategy: "lowest"
|
resolution-strategy: "lowest"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install version ${{ matrix.input.version-input }} with strategy ${{ matrix.input.resolution-strategy || 'highest' }}
|
- name: Install version ${{ matrix.input.version-input }} with strategy ${{ matrix.input.resolution-strategy || 'highest' }}
|
||||||
@@ -154,7 +154,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
version-input: ["latest", ">=0.8"]
|
version-input: ["latest", ">=0.8"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install version ${{ matrix.version-input }}
|
- name: Install version ${{ matrix.version-input }}
|
||||||
@@ -182,7 +182,7 @@ jobs:
|
|||||||
- working-directory: "__tests__/fixtures/uv-toml-project"
|
- working-directory: "__tests__/fixtures/uv-toml-project"
|
||||||
expected-version: "0.5.15"
|
expected-version: "0.5.15"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install version from ${{ matrix.input.working-directory }}
|
- name: Install version from ${{ matrix.input.working-directory }}
|
||||||
@@ -208,7 +208,7 @@ jobs:
|
|||||||
- version-file: "__tests__/fixtures/.tool-versions"
|
- version-file: "__tests__/fixtures/.tool-versions"
|
||||||
expected-version: "0.5.15"
|
expected-version: "0.5.15"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install version from ${{ matrix.input.version-file }}
|
- name: Install version from ${{ matrix.input.version-file }}
|
||||||
@@ -225,7 +225,7 @@ jobs:
|
|||||||
test-malformed-pyproject-file-fallback:
|
test-malformed-pyproject-file-fallback:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install using malformed pyproject.toml
|
- name: Install using malformed pyproject.toml
|
||||||
@@ -245,7 +245,7 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
checksum: "a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218"
|
checksum: "a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Checksum matches expected
|
- name: Checksum matches expected
|
||||||
@@ -259,7 +259,7 @@ jobs:
|
|||||||
test-with-explicit-token:
|
test-with-explicit-token:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install default version
|
- name: Install default version
|
||||||
@@ -272,7 +272,7 @@ jobs:
|
|||||||
test-uvx:
|
test-uvx:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install default version
|
- name: Install default version
|
||||||
@@ -285,7 +285,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
|
os: [ubuntu-latest, macos-latest, macos-14, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install default version
|
- name: Install default version
|
||||||
@@ -296,7 +296,7 @@ jobs:
|
|||||||
test-tilde-expansion-tool-dirs:
|
test-tilde-expansion-tool-dirs:
|
||||||
runs-on: selfhosted-ubuntu-arm64
|
runs-on: selfhosted-ubuntu-arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -321,7 +321,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install latest version
|
- name: Install latest version
|
||||||
@@ -344,7 +344,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install latest version
|
- name: Install latest version
|
||||||
@@ -381,14 +381,64 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: alpine
|
container: alpine
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install latest version
|
- name: Install latest version
|
||||||
|
id: setup-uv
|
||||||
uses: ./
|
uses: ./
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Verify cache key contains alpine
|
||||||
|
run: |
|
||||||
|
echo "Cache key: $CACHE_KEY"
|
||||||
|
if echo "$CACHE_KEY" | grep -qv "alpine"; then
|
||||||
|
echo "Cache key does not contain 'alpine'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shell: sh
|
||||||
|
env:
|
||||||
|
CACHE_KEY: ${{ steps.setup-uv.outputs.cache-key }}
|
||||||
- run: uv sync
|
- run: uv sync
|
||||||
working-directory: __tests__/fixtures/uv-project
|
working-directory: __tests__/fixtures/uv-project
|
||||||
|
|
||||||
|
test-cache-key-os-version:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- os: ubuntu-22.04
|
||||||
|
expected-os: "ubuntu-22.04"
|
||||||
|
- os: ubuntu-24.04
|
||||||
|
expected-os: "ubuntu-24.04"
|
||||||
|
- os: macos-14
|
||||||
|
expected-os: "macos-14"
|
||||||
|
- os: macos-15
|
||||||
|
expected-os: "macos-15"
|
||||||
|
- os: windows-2022
|
||||||
|
expected-os: "windows-2022"
|
||||||
|
- os: windows-2025
|
||||||
|
expected-os: "windows-2025"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
- name: Setup uv
|
||||||
|
id: setup-uv
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Verify cache key contains OS version
|
||||||
|
run: |
|
||||||
|
echo "Cache key: $CACHE_KEY"
|
||||||
|
if [[ "$CACHE_KEY" != *"${{ matrix.expected-os }}"* ]]; then
|
||||||
|
echo "Cache key does not contain expected OS version: ${{ matrix.expected-os }}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
CACHE_KEY: ${{ steps.setup-uv.outputs.cache-key }}
|
||||||
|
|
||||||
test-setup-cache:
|
test-setup-cache:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
@@ -396,7 +446,7 @@ jobs:
|
|||||||
enable-cache: ["true", "false", "auto"]
|
enable-cache: ["true", "false", "auto"]
|
||||||
os: ["ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest"]
|
os: ["ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -415,7 +465,7 @@ jobs:
|
|||||||
os: ["ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest"]
|
os: ["ubuntu-latest", "selfhosted-ubuntu-arm64", "windows-latest"]
|
||||||
needs: test-setup-cache
|
needs: test-setup-cache
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Restore with cache
|
- name: Restore with cache
|
||||||
@@ -449,7 +499,7 @@ jobs:
|
|||||||
test-setup-cache-requirements-txt:
|
test-setup-cache-requirements-txt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -465,7 +515,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test-setup-cache-requirements-txt
|
needs: test-setup-cache-requirements-txt
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Restore with cache
|
- name: Restore with cache
|
||||||
@@ -489,7 +539,7 @@ jobs:
|
|||||||
test-setup-cache-dependency-glob:
|
test-setup-cache-dependency-glob:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -506,7 +556,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test-setup-cache-dependency-glob
|
needs: test-setup-cache-dependency-glob
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Change pyproject.toml
|
- name: Change pyproject.toml
|
||||||
@@ -534,7 +584,7 @@ jobs:
|
|||||||
test-setup-cache-save-cache-false:
|
test-setup-cache-save-cache-false:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -550,7 +600,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test-setup-cache-save-cache-false
|
needs: test-setup-cache-save-cache-false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Restore with cache
|
- name: Restore with cache
|
||||||
@@ -570,7 +620,7 @@ jobs:
|
|||||||
test-setup-cache-restore-cache-false:
|
test-setup-cache-restore-cache-false:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -585,7 +635,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test-setup-cache-restore-cache-false
|
needs: test-setup-cache-restore-cache-false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Restore with cache
|
- name: Restore with cache
|
||||||
@@ -615,7 +665,7 @@ jobs:
|
|||||||
expected-cache-dir: "/home/ubuntu/.cache/uv"
|
expected-cache-dir: "/home/ubuntu/.cache/uv"
|
||||||
runs-on: ${{ matrix.inputs.os }}
|
runs-on: ${{ matrix.inputs.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -633,7 +683,7 @@ jobs:
|
|||||||
test-cache-local-cache-disabled:
|
test-cache-local-cache-disabled:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup without cache
|
- name: Setup without cache
|
||||||
@@ -649,10 +699,30 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
test-cache-local-cache-disabled-but-explicit-path:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
|
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:
|
test-setup-cache-local:
|
||||||
runs-on: selfhosted-ubuntu-arm64
|
runs-on: selfhosted-ubuntu-arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup with cache
|
- name: Setup with cache
|
||||||
@@ -667,7 +737,7 @@ jobs:
|
|||||||
runs-on: selfhosted-ubuntu-arm64
|
runs-on: selfhosted-ubuntu-arm64
|
||||||
needs: test-setup-cache-local
|
needs: test-setup-cache-local
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Restore with cache
|
- name: Restore with cache
|
||||||
@@ -690,7 +760,7 @@ jobs:
|
|||||||
test-tilde-expansion-cache-local-path:
|
test-tilde-expansion-cache-local-path:
|
||||||
runs-on: selfhosted-ubuntu-arm64
|
runs-on: selfhosted-ubuntu-arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Create cache directory
|
- name: Create cache directory
|
||||||
@@ -706,7 +776,7 @@ jobs:
|
|||||||
test-tilde-expansion-cache-dependency-glob:
|
test-tilde-expansion-cache-dependency-glob:
|
||||||
runs-on: selfhosted-ubuntu-arm64
|
runs-on: selfhosted-ubuntu-arm64
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Create cache directory
|
- name: Create cache directory
|
||||||
@@ -741,7 +811,7 @@ jobs:
|
|||||||
test-no-python-version:
|
test-no-python-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Fake pyproject.toml at root
|
- name: Fake pyproject.toml at root
|
||||||
@@ -756,7 +826,7 @@ jobs:
|
|||||||
test-custom-manifest-file:
|
test-custom-manifest-file:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install from custom manifest file
|
- name: Install from custom manifest file
|
||||||
@@ -775,7 +845,7 @@ jobs:
|
|||||||
test-absolute-path:
|
test-absolute-path:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Create requirements.txt
|
- name: Create requirements.txt
|
||||||
@@ -795,7 +865,7 @@ jobs:
|
|||||||
test-relative-path:
|
test-relative-path:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: mkdir
|
- name: mkdir
|
||||||
@@ -819,7 +889,7 @@ jobs:
|
|||||||
test-cache-prune-force:
|
test-cache-prune-force:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Setup uv
|
- name: Setup uv
|
||||||
@@ -836,7 +906,7 @@ jobs:
|
|||||||
test-cache-dir-from-file:
|
test-cache-dir-from-file:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Verify uv cache dir is not populated
|
- name: Verify uv cache dir is not populated
|
||||||
@@ -861,7 +931,7 @@ jobs:
|
|||||||
test-cache-python-installs:
|
test-cache-python-installs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Verify Python install dir is not populated
|
- name: Verify Python install dir is not populated
|
||||||
@@ -888,7 +958,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test-cache-python-installs
|
needs: test-cache-python-installs
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Verify Python install dir does not exist
|
- name: Verify Python install dir does not exist
|
||||||
@@ -932,7 +1002,7 @@ jobs:
|
|||||||
expected-python-dir: "/home/ubuntu/.local/share/uv/python"
|
expected-python-dir: "/home/ubuntu/.local/share/uv/python"
|
||||||
runs-on: ${{ matrix.inputs.os }}
|
runs-on: ${{ matrix.inputs.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install latest version
|
- name: Install latest version
|
||||||
@@ -951,7 +1021,7 @@ jobs:
|
|||||||
test-act:
|
test-act:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Install act
|
- name: Install act
|
||||||
@@ -982,8 +1052,10 @@ jobs:
|
|||||||
- test-python-version
|
- test-python-version
|
||||||
- test-activate-environment
|
- test-activate-environment
|
||||||
- test-musl
|
- test-musl
|
||||||
|
- test-cache-key-os-version
|
||||||
- test-cache-local
|
- test-cache-local
|
||||||
- test-cache-local-cache-disabled
|
- test-cache-local-cache-disabled
|
||||||
|
- test-cache-local-cache-disabled-but-explicit-path
|
||||||
- test-setup-cache
|
- test-setup-cache
|
||||||
- test-restore-cache
|
- test-restore-cache
|
||||||
- test-setup-cache-requirements-txt
|
- test-setup-cache-requirements-txt
|
||||||
|
|||||||
6
.github/workflows/update-known-versions.yml
vendored
6
.github/workflows/update-known-versions.yml
vendored
@@ -15,10 +15,10 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
|
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "20"
|
||||||
- name: Update known versions
|
- name: Update known versions
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: ${{ steps.changes-exist.outputs.changes-exist == 'true' && steps.commit-and-push.outcome != 'success' }}
|
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:
|
with:
|
||||||
commit-message: "chore: update known checksums"
|
commit-message: "chore: update known checksums"
|
||||||
title:
|
title:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||||
with:
|
with:
|
||||||
persist-credentials: true # needed for git push below
|
persist-credentials: true # needed for git push below
|
||||||
- name: Update Major Minor Tags
|
- name: Update Major Minor Tags
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ it.each<KnownVersionFixture>([
|
|||||||
known: false,
|
known: false,
|
||||||
version: "0.0.15",
|
version: "0.0.15",
|
||||||
},
|
},
|
||||||
])(
|
])("isknownVersion should return $known for version $version", ({
|
||||||
"isknownVersion should return $known for version $version",
|
version,
|
||||||
({ version, known }) => {
|
known,
|
||||||
expect(isknownVersion(version)).toBe(known);
|
}) => {
|
||||||
},
|
expect(isknownVersion(version)).toBe(known);
|
||||||
);
|
});
|
||||||
|
|||||||
@@ -89,6 +89,8 @@ outputs:
|
|||||||
description: "The path to the installed uvx binary."
|
description: "The path to the installed uvx binary."
|
||||||
cache-hit:
|
cache-hit:
|
||||||
description: "A boolean value to indicate a cache entry was found"
|
description: "A boolean value to indicate a cache entry was found"
|
||||||
|
cache-key:
|
||||||
|
description: "The cache key used for storing/restoring the cache"
|
||||||
venv:
|
venv:
|
||||||
description: "Path to the activated venv if activate-environment is true"
|
description: "Path to the activated venv if activate-environment is true"
|
||||||
runs:
|
runs:
|
||||||
|
|||||||
@@ -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": {
|
"assist": {
|
||||||
"actions": {
|
"actions": {
|
||||||
"source": {
|
"source": {
|
||||||
@@ -18,7 +18,8 @@
|
|||||||
"!**/node_modules",
|
"!**/node_modules",
|
||||||
"!**/package*.json",
|
"!**/package*.json",
|
||||||
"!**/known-checksums.*"
|
"!**/known-checksums.*"
|
||||||
]
|
],
|
||||||
|
"maxSize": 2097152
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|||||||
137
dist/save-cache/index.js
generated
vendored
137
dist/save-cache/index.js
generated
vendored
@@ -90609,17 +90609,21 @@ const inputs_1 = __nccwpck_require__(9612);
|
|||||||
const platforms_1 = __nccwpck_require__(8361);
|
const platforms_1 = __nccwpck_require__(8361);
|
||||||
exports.STATE_CACHE_KEY = "cache-key";
|
exports.STATE_CACHE_KEY = "cache-key";
|
||||||
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
const CACHE_VERSION = "1";
|
const CACHE_VERSION = "2";
|
||||||
async function restoreCache() {
|
async function restoreCache() {
|
||||||
const cacheKey = await computeKeys();
|
const cacheKey = await computeKeys();
|
||||||
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
||||||
|
core.setOutput("cache-key", cacheKey);
|
||||||
if (!inputs_1.restoreCache) {
|
if (!inputs_1.restoreCache) {
|
||||||
core.info("restore-cache is false. Skipping restore cache step.");
|
core.info("restore-cache is false. Skipping restore cache step.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let matchedKey;
|
let matchedKey;
|
||||||
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
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) {
|
if (inputs_1.cachePython) {
|
||||||
cachePaths.push(inputs_1.pythonDir);
|
cachePaths.push(inputs_1.pythonDir);
|
||||||
}
|
}
|
||||||
@@ -90649,9 +90653,10 @@ async function computeKeys() {
|
|||||||
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
||||||
const pythonVersion = await getPythonVersion();
|
const pythonVersion = await getPythonVersion();
|
||||||
const platform = await (0, platforms_1.getPlatform)();
|
const platform = await (0, platforms_1.getPlatform)();
|
||||||
|
const osNameVersion = (0, platforms_1.getOSNameVersion)();
|
||||||
const pruned = inputs_1.pruneCache ? "-pruned" : "";
|
const pruned = inputs_1.pruneCache ? "-pruned" : "";
|
||||||
const python = inputs_1.cachePython ? "-py" : "";
|
const python = inputs_1.cachePython ? "-py" : "";
|
||||||
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${platform}-${pythonVersion}${pruned}${python}${cacheDependencyPathHash}${suffix}`;
|
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${platform}-${osNameVersion}-${pythonVersion}${pruned}${python}${cacheDependencyPathHash}${suffix}`;
|
||||||
}
|
}
|
||||||
async function getPythonVersion() {
|
async function getPythonVersion() {
|
||||||
if (inputs_1.pythonVersion !== "") {
|
if (inputs_1.pythonVersion !== "") {
|
||||||
@@ -90868,9 +90873,13 @@ async function saveCache() {
|
|||||||
if (inputs_1.pruneCache) {
|
if (inputs_1.pruneCache) {
|
||||||
await pruneCache();
|
await pruneCache();
|
||||||
}
|
}
|
||||||
let actualCachePath = inputs_1.cacheLocalPath;
|
if (inputs_1.cacheLocalPath === undefined) {
|
||||||
if (process.env.UV_CACHE_DIR && process.env.UV_CACHE_DIR !== inputs_1.cacheLocalPath) {
|
throw new Error("cache-local-path is not set. Cannot save cache without a valid cache 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}".`);
|
}
|
||||||
|
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;
|
actualCachePath = process.env.UV_CACHE_DIR;
|
||||||
}
|
}
|
||||||
core.info(`Saving cache path: ${actualCachePath}`);
|
core.info(`Saving cache path: ${actualCachePath}`);
|
||||||
@@ -91038,11 +91047,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
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;
|
exports.getUvPythonDir = getUvPythonDir;
|
||||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const config_file_1 = __nccwpck_require__(7846);
|
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.workingDirectory = core.getInput("working-directory");
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
exports.versionFile = getVersionFile();
|
exports.versionFile = getVersionFile();
|
||||||
@@ -91113,26 +91129,40 @@ function getCacheLocalPath() {
|
|||||||
const cacheLocalPathInput = core.getInput("cache-local-path");
|
const cacheLocalPathInput = core.getInput("cache-local-path");
|
||||||
if (cacheLocalPathInput !== "") {
|
if (cacheLocalPathInput !== "") {
|
||||||
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
||||||
return resolveRelativePath(tildeExpanded);
|
return {
|
||||||
|
path: resolveRelativePath(tildeExpanded),
|
||||||
|
source: CacheLocalSource.Input,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
const cacheDirFromConfig = getCacheDirFromConfig();
|
const cacheDirFromConfig = getCacheDirFromConfig();
|
||||||
if (cacheDirFromConfig !== undefined) {
|
if (cacheDirFromConfig !== undefined) {
|
||||||
return cacheDirFromConfig;
|
return { path: cacheDirFromConfig, source: CacheLocalSource.Config };
|
||||||
}
|
}
|
||||||
if (process.env.UV_CACHE_DIR !== undefined) {
|
if (process.env.UV_CACHE_DIR !== undefined) {
|
||||||
core.info(`UV_CACHE_DIR is already set to ${process.env.UV_CACHE_DIR}`);
|
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 (getEnableCache()) {
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||||
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`;
|
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() {
|
function getCacheDirFromConfig() {
|
||||||
for (const filePath of [exports.versionFile, "uv.toml", "pyproject.toml"]) {
|
for (const filePath of [exports.versionFile, "uv.toml", "pyproject.toml"]) {
|
||||||
@@ -91254,9 +91284,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getArch = getArch;
|
exports.getArch = getArch;
|
||||||
exports.getPlatform = getPlatform;
|
exports.getPlatform = getPlatform;
|
||||||
|
exports.getOSNameVersion = getOSNameVersion;
|
||||||
|
const node_fs_1 = __importDefault(__nccwpck_require__(3024));
|
||||||
|
const node_os_1 = __importDefault(__nccwpck_require__(8161));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const exec = __importStar(__nccwpck_require__(5236));
|
const exec = __importStar(__nccwpck_require__(5236));
|
||||||
function getArch() {
|
function getArch() {
|
||||||
@@ -91314,6 +91350,63 @@ async function isMuslOs() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Returns OS name and version for cache key differentiation.
|
||||||
|
* Examples: "ubuntu-22.04", "macos-14", "windows-2022"
|
||||||
|
* Throws if OS detection fails.
|
||||||
|
*/
|
||||||
|
function getOSNameVersion() {
|
||||||
|
const platform = process.platform;
|
||||||
|
if (platform === "linux") {
|
||||||
|
return getLinuxOSNameVersion();
|
||||||
|
}
|
||||||
|
if (platform === "darwin") {
|
||||||
|
return getMacOSNameVersion();
|
||||||
|
}
|
||||||
|
if (platform === "win32") {
|
||||||
|
return getWindowsNameVersion();
|
||||||
|
}
|
||||||
|
throw new Error(`Unsupported platform: ${platform}`);
|
||||||
|
}
|
||||||
|
function getLinuxOSNameVersion() {
|
||||||
|
const files = ["/etc/os-release", "/usr/lib/os-release"];
|
||||||
|
for (const file of files) {
|
||||||
|
try {
|
||||||
|
const content = node_fs_1.default.readFileSync(file, "utf8");
|
||||||
|
const id = parseOsReleaseValue(content, "ID");
|
||||||
|
const versionId = parseOsReleaseValue(content, "VERSION_ID");
|
||||||
|
if (id && versionId) {
|
||||||
|
return `${id}-${versionId}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
// Try next file
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new Error("Failed to determine Linux distribution. " +
|
||||||
|
"Could not read /etc/os-release or /usr/lib/os-release");
|
||||||
|
}
|
||||||
|
function parseOsReleaseValue(content, key) {
|
||||||
|
const regex = new RegExp(`^${key}=["']?([^"'\\n]*)["']?$`, "m");
|
||||||
|
const match = content.match(regex);
|
||||||
|
return match?.[1];
|
||||||
|
}
|
||||||
|
function getMacOSNameVersion() {
|
||||||
|
const darwinVersion = Number.parseInt(node_os_1.default.release().split(".")[0], 10);
|
||||||
|
if (Number.isNaN(darwinVersion)) {
|
||||||
|
throw new Error(`Failed to parse macOS version from: ${node_os_1.default.release()}`);
|
||||||
|
}
|
||||||
|
const macosVersion = darwinVersion - 9;
|
||||||
|
return `macos-${macosVersion}`;
|
||||||
|
}
|
||||||
|
function getWindowsNameVersion() {
|
||||||
|
const version = node_os_1.default.version();
|
||||||
|
const match = version.match(/Windows(?: Server)? (\d+)/);
|
||||||
|
if (!match) {
|
||||||
|
throw new Error(`Failed to parse Windows version from: ${version}`);
|
||||||
|
}
|
||||||
|
return `windows-${match[1]}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -91454,6 +91547,14 @@ module.exports = require("node:fs");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8161:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:os");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 6760:
|
/***/ 6760:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
|||||||
361
dist/setup/index.js
generated
vendored
361
dist/setup/index.js
generated
vendored
@@ -91512,17 +91512,21 @@ const inputs_1 = __nccwpck_require__(9612);
|
|||||||
const platforms_1 = __nccwpck_require__(8361);
|
const platforms_1 = __nccwpck_require__(8361);
|
||||||
exports.STATE_CACHE_KEY = "cache-key";
|
exports.STATE_CACHE_KEY = "cache-key";
|
||||||
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
exports.STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
const CACHE_VERSION = "1";
|
const CACHE_VERSION = "2";
|
||||||
async function restoreCache() {
|
async function restoreCache() {
|
||||||
const cacheKey = await computeKeys();
|
const cacheKey = await computeKeys();
|
||||||
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
core.saveState(exports.STATE_CACHE_KEY, cacheKey);
|
||||||
|
core.setOutput("cache-key", cacheKey);
|
||||||
if (!inputs_1.restoreCache) {
|
if (!inputs_1.restoreCache) {
|
||||||
core.info("restore-cache is false. Skipping restore cache step.");
|
core.info("restore-cache is false. Skipping restore cache step.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let matchedKey;
|
let matchedKey;
|
||||||
core.info(`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`);
|
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) {
|
if (inputs_1.cachePython) {
|
||||||
cachePaths.push(inputs_1.pythonDir);
|
cachePaths.push(inputs_1.pythonDir);
|
||||||
}
|
}
|
||||||
@@ -91552,9 +91556,10 @@ async function computeKeys() {
|
|||||||
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
const suffix = inputs_1.cacheSuffix ? `-${inputs_1.cacheSuffix}` : "";
|
||||||
const pythonVersion = await getPythonVersion();
|
const pythonVersion = await getPythonVersion();
|
||||||
const platform = await (0, platforms_1.getPlatform)();
|
const platform = await (0, platforms_1.getPlatform)();
|
||||||
|
const osNameVersion = (0, platforms_1.getOSNameVersion)();
|
||||||
const pruned = inputs_1.pruneCache ? "-pruned" : "";
|
const pruned = inputs_1.pruneCache ? "-pruned" : "";
|
||||||
const python = inputs_1.cachePython ? "-py" : "";
|
const python = inputs_1.cachePython ? "-py" : "";
|
||||||
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${platform}-${pythonVersion}${pruned}${python}${cacheDependencyPathHash}${suffix}`;
|
return `setup-uv-${CACHE_VERSION}-${(0, platforms_1.getArch)()}-${platform}-${osNameVersion}-${pythonVersion}${pruned}${python}${cacheDependencyPathHash}${suffix}`;
|
||||||
}
|
}
|
||||||
async function getPythonVersion() {
|
async function getPythonVersion() {
|
||||||
if (inputs_1.pythonVersion !== "") {
|
if (inputs_1.pythonVersion !== "") {
|
||||||
@@ -91696,6 +91701,24 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|||||||
exports.KNOWN_CHECKSUMS = void 0;
|
exports.KNOWN_CHECKSUMS = void 0;
|
||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
exports.KNOWN_CHECKSUMS = {
|
exports.KNOWN_CHECKSUMS = {
|
||||||
|
"aarch64-apple-darwin-0.9.17": "a1e1464aa1d04d5e5fa700aa2f2e10397d1114e835dbd56be25ba65c9a31bd99",
|
||||||
|
"aarch64-pc-windows-msvc-0.9.17": "28423a27ad1d82347c00411a6792567119b3c1cfe775d3312c0e08a6b489be5b",
|
||||||
|
"aarch64-unknown-linux-gnu-0.9.17": "e9eba97b7169e47fd3c926e409f0b714820f0befc23b3ae062780586a793e4cc",
|
||||||
|
"aarch64-unknown-linux-musl-0.9.17": "f6f48a301f8e855765af42ef50257af0cebc9c5439dfdcbc188142941aea45ca",
|
||||||
|
"arm-unknown-linux-musleabihf-0.9.17": "4d80f3509b6351882a64c1dd08f72a80e2b27f055a996295ef1f935bc3efcdde",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.9.17": "30a6c041429e2176062573f33c5c44307cb756264224bcb005723a6e18cff34c",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.9.17": "6b034dc63735c2a4541430cbece688e28bce51a09e2ad1ea2c1646a6b24cf1c3",
|
||||||
|
"i686-pc-windows-msvc-0.9.17": "6e93737710e31bf73fcc3b4b6da616bd341e9c6baf1162ddc1e7f65884063f50",
|
||||||
|
"i686-unknown-linux-gnu-0.9.17": "d2426a6d10bedd83524599bb0fbe0ba22e681ed45e892b4fd29086b424daf02a",
|
||||||
|
"i686-unknown-linux-musl-0.9.17": "988c7702a2e88092b30f16fb7f8c18284a8062044cf57e6abd1dfeae82aa6377",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.9.17": "5ad301d9fa15e0791ef96abd83f0ed97e7ac1191b4b7578caaad3151633fb17c",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.9.17": "4958185c5febf22f1c4c84944334cb0d9262c2c2c93faf30c1e0abd26f9d94fa",
|
||||||
|
"riscv64gc-unknown-linux-gnu-0.9.17": "feed7cc7b5fc8a99e683ee1761cf99e3da12b60a2a413b7b87a0447726a66369",
|
||||||
|
"s390x-unknown-linux-gnu-0.9.17": "a297518913a0f0e4af1bce434440ca9d415728aaf828c7def0e913aa5c46da8f",
|
||||||
|
"x86_64-apple-darwin-0.9.17": "249e7fb18d45c06ba283c48f0a8e586ecc5fbb9e8dad0923c4169a7c4db815b2",
|
||||||
|
"x86_64-pc-windows-msvc-0.9.17": "ebc76197bf3e1a58f9dac6f70f49b0ebd3e6907ab35289ce228bce5ba8a3f201",
|
||||||
|
"x86_64-unknown-linux-gnu-0.9.17": "0114d54f9aafd07516cf1cadfe72afa970f5fd293fbe82dd924b8a7b42c984d8",
|
||||||
|
"x86_64-unknown-linux-musl-0.9.17": "ab616c1851e7b1ed377a9ff3997dcee184bea7eda0b20bc8607abba6c469cbad",
|
||||||
"aarch64-apple-darwin-0.9.16": "db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
"aarch64-apple-darwin-0.9.16": "db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
||||||
"aarch64-pc-windows-msvc-0.9.16": "591c73f47dfec72f9d242eebcb36197f27ad652a59d70e70db5c52018684d78e",
|
"aarch64-pc-windows-msvc-0.9.16": "591c73f47dfec72f9d242eebcb36197f27ad652a59d70e70db5c52018684d78e",
|
||||||
"aarch64-unknown-linux-gnu-0.9.16": "a8e9e3f7e621e212d9663ea28827bd8fb9ec11c453ae88d520b48e969e9ff5db",
|
"aarch64-unknown-linux-gnu-0.9.16": "a8e9e3f7e621e212d9663ea28827bd8fb9ec11c453ae88d520b48e969e9ff5db",
|
||||||
@@ -96168,7 +96191,6 @@ const core = __importStar(__nccwpck_require__(7484));
|
|||||||
const exec = __importStar(__nccwpck_require__(5236));
|
const exec = __importStar(__nccwpck_require__(5236));
|
||||||
const restore_cache_1 = __nccwpck_require__(5391);
|
const restore_cache_1 = __nccwpck_require__(5391);
|
||||||
const download_version_1 = __nccwpck_require__(8255);
|
const download_version_1 = __nccwpck_require__(8255);
|
||||||
const config_file_1 = __nccwpck_require__(7846);
|
|
||||||
const constants_1 = __nccwpck_require__(6156);
|
const constants_1 = __nccwpck_require__(6156);
|
||||||
const inputs_1 = __nccwpck_require__(9612);
|
const inputs_1 = __nccwpck_require__(9612);
|
||||||
const platforms_1 = __nccwpck_require__(8361);
|
const platforms_1 = __nccwpck_require__(8361);
|
||||||
@@ -96336,14 +96358,13 @@ async function activateEnvironment() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function setCacheDir() {
|
function setCacheDir() {
|
||||||
if (inputs_1.enableCache) {
|
if (inputs_1.cacheLocalPath !== undefined) {
|
||||||
const cacheDirFromConfig = (0, config_file_1.getConfigValueFromTomlFile)("", "cache-dir");
|
if (inputs_1.cacheLocalPath.source === inputs_1.CacheLocalSource.Config) {
|
||||||
if (cacheDirFromConfig !== undefined) {
|
|
||||||
core.info("Using cache-dir from uv config file, not modifying UV_CACHE_DIR");
|
core.info("Using cache-dir from uv config file, not modifying UV_CACHE_DIR");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.exportVariable("UV_CACHE_DIR", inputs_1.cacheLocalPath);
|
core.exportVariable("UV_CACHE_DIR", inputs_1.cacheLocalPath.path);
|
||||||
core.info(`Set UV_CACHE_DIR to ${inputs_1.cacheLocalPath}`);
|
core.info(`Set UV_CACHE_DIR to ${inputs_1.cacheLocalPath.path}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function addMatchers() {
|
function addMatchers() {
|
||||||
@@ -96505,11 +96526,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
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;
|
exports.getUvPythonDir = getUvPythonDir;
|
||||||
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
const node_path_1 = __importDefault(__nccwpck_require__(6760));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const config_file_1 = __nccwpck_require__(7846);
|
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.workingDirectory = core.getInput("working-directory");
|
||||||
exports.version = core.getInput("version");
|
exports.version = core.getInput("version");
|
||||||
exports.versionFile = getVersionFile();
|
exports.versionFile = getVersionFile();
|
||||||
@@ -96580,26 +96608,40 @@ function getCacheLocalPath() {
|
|||||||
const cacheLocalPathInput = core.getInput("cache-local-path");
|
const cacheLocalPathInput = core.getInput("cache-local-path");
|
||||||
if (cacheLocalPathInput !== "") {
|
if (cacheLocalPathInput !== "") {
|
||||||
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
||||||
return resolveRelativePath(tildeExpanded);
|
return {
|
||||||
|
path: resolveRelativePath(tildeExpanded),
|
||||||
|
source: CacheLocalSource.Input,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
const cacheDirFromConfig = getCacheDirFromConfig();
|
const cacheDirFromConfig = getCacheDirFromConfig();
|
||||||
if (cacheDirFromConfig !== undefined) {
|
if (cacheDirFromConfig !== undefined) {
|
||||||
return cacheDirFromConfig;
|
return { path: cacheDirFromConfig, source: CacheLocalSource.Config };
|
||||||
}
|
}
|
||||||
if (process.env.UV_CACHE_DIR !== undefined) {
|
if (process.env.UV_CACHE_DIR !== undefined) {
|
||||||
core.info(`UV_CACHE_DIR is already set to ${process.env.UV_CACHE_DIR}`);
|
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 (getEnableCache()) {
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||||
return `${process.env.RUNNER_TEMP}${node_path_1.default.sep}setup-uv-cache`;
|
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() {
|
function getCacheDirFromConfig() {
|
||||||
for (const filePath of [exports.versionFile, "uv.toml", "pyproject.toml"]) {
|
for (const filePath of [exports.versionFile, "uv.toml", "pyproject.toml"]) {
|
||||||
@@ -96751,9 +96793,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
})();
|
})();
|
||||||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
|
};
|
||||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
exports.getArch = getArch;
|
exports.getArch = getArch;
|
||||||
exports.getPlatform = getPlatform;
|
exports.getPlatform = getPlatform;
|
||||||
|
exports.getOSNameVersion = getOSNameVersion;
|
||||||
|
const node_fs_1 = __importDefault(__nccwpck_require__(3024));
|
||||||
|
const node_os_1 = __importDefault(__nccwpck_require__(8161));
|
||||||
const core = __importStar(__nccwpck_require__(7484));
|
const core = __importStar(__nccwpck_require__(7484));
|
||||||
const exec = __importStar(__nccwpck_require__(5236));
|
const exec = __importStar(__nccwpck_require__(5236));
|
||||||
function getArch() {
|
function getArch() {
|
||||||
@@ -96811,6 +96859,63 @@ async function isMuslOs() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Returns OS name and version for cache key differentiation.
|
||||||
|
* Examples: "ubuntu-22.04", "macos-14", "windows-2022"
|
||||||
|
* Throws if OS detection fails.
|
||||||
|
*/
|
||||||
|
function getOSNameVersion() {
|
||||||
|
const platform = process.platform;
|
||||||
|
if (platform === "linux") {
|
||||||
|
return getLinuxOSNameVersion();
|
||||||
|
}
|
||||||
|
if (platform === "darwin") {
|
||||||
|
return getMacOSNameVersion();
|
||||||
|
}
|
||||||
|
if (platform === "win32") {
|
||||||
|
return getWindowsNameVersion();
|
||||||
|
}
|
||||||
|
throw new Error(`Unsupported platform: ${platform}`);
|
||||||
|
}
|
||||||
|
function getLinuxOSNameVersion() {
|
||||||
|
const files = ["/etc/os-release", "/usr/lib/os-release"];
|
||||||
|
for (const file of files) {
|
||||||
|
try {
|
||||||
|
const content = node_fs_1.default.readFileSync(file, "utf8");
|
||||||
|
const id = parseOsReleaseValue(content, "ID");
|
||||||
|
const versionId = parseOsReleaseValue(content, "VERSION_ID");
|
||||||
|
if (id && versionId) {
|
||||||
|
return `${id}-${versionId}`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
// Try next file
|
||||||
|
}
|
||||||
|
}
|
||||||
|
throw new Error("Failed to determine Linux distribution. " +
|
||||||
|
"Could not read /etc/os-release or /usr/lib/os-release");
|
||||||
|
}
|
||||||
|
function parseOsReleaseValue(content, key) {
|
||||||
|
const regex = new RegExp(`^${key}=["']?([^"'\\n]*)["']?$`, "m");
|
||||||
|
const match = content.match(regex);
|
||||||
|
return match?.[1];
|
||||||
|
}
|
||||||
|
function getMacOSNameVersion() {
|
||||||
|
const darwinVersion = Number.parseInt(node_os_1.default.release().split(".")[0], 10);
|
||||||
|
if (Number.isNaN(darwinVersion)) {
|
||||||
|
throw new Error(`Failed to parse macOS version from: ${node_os_1.default.release()}`);
|
||||||
|
}
|
||||||
|
const macosVersion = darwinVersion - 9;
|
||||||
|
return `macos-${macosVersion}`;
|
||||||
|
}
|
||||||
|
function getWindowsNameVersion() {
|
||||||
|
const version = node_os_1.default.version();
|
||||||
|
const match = version.match(/Windows(?: Server)? (\d+)/);
|
||||||
|
if (!match) {
|
||||||
|
throw new Error(`Failed to parse Windows version from: ${version}`);
|
||||||
|
}
|
||||||
|
return `windows-${match[1]}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -97176,6 +97281,14 @@ module.exports = require("node:fs");
|
|||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
|
/***/ 8161:
|
||||||
|
/***/ ((module) => {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
module.exports = require("node:os");
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
|
||||||
/***/ 6760:
|
/***/ 6760:
|
||||||
/***/ ((module) => {
|
/***/ ((module) => {
|
||||||
|
|
||||||
@@ -100568,12 +100681,13 @@ class RequestError extends Error {
|
|||||||
*/
|
*/
|
||||||
response;
|
response;
|
||||||
constructor(message, statusCode, options) {
|
constructor(message, statusCode, options) {
|
||||||
super(message);
|
super(message, { cause: options.cause });
|
||||||
this.name = "HttpError";
|
this.name = "HttpError";
|
||||||
this.status = Number.parseInt(statusCode);
|
this.status = Number.parseInt(statusCode);
|
||||||
if (Number.isNaN(this.status)) {
|
if (Number.isNaN(this.status)) {
|
||||||
this.status = 0;
|
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) {
|
if ("response" in options) {
|
||||||
this.response = options.response;
|
this.response = options.response;
|
||||||
}
|
}
|
||||||
@@ -100600,7 +100714,7 @@ class RequestError extends Error {
|
|||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/version.js
|
// pkg/dist-src/version.js
|
||||||
var dist_bundle_VERSION = "10.0.5";
|
var dist_bundle_VERSION = "10.0.7";
|
||||||
|
|
||||||
// pkg/dist-src/defaults.js
|
// pkg/dist-src/defaults.js
|
||||||
var defaults_default = {
|
var defaults_default = {
|
||||||
@@ -100624,6 +100738,7 @@ function dist_bundle_isPlainObject(value) {
|
|||||||
|
|
||||||
// pkg/dist-src/fetch-wrapper.js
|
// pkg/dist-src/fetch-wrapper.js
|
||||||
|
|
||||||
|
var noop = () => "";
|
||||||
async function fetchWrapper(requestOptions) {
|
async function fetchWrapper(requestOptions) {
|
||||||
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
||||||
if (!fetch) {
|
if (!fetch) {
|
||||||
@@ -100725,7 +100840,7 @@ async function fetchWrapper(requestOptions) {
|
|||||||
async function getResponseData(response) {
|
async function getResponseData(response) {
|
||||||
const contentType = response.headers.get("content-type");
|
const contentType = response.headers.get("content-type");
|
||||||
if (!contentType) {
|
if (!contentType) {
|
||||||
return response.text().catch(() => "");
|
return response.text().catch(noop);
|
||||||
}
|
}
|
||||||
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
|
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
|
||||||
if (isJSONResponse(mimetype)) {
|
if (isJSONResponse(mimetype)) {
|
||||||
@@ -100737,9 +100852,12 @@ async function getResponseData(response) {
|
|||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
||||||
return response.text().catch(() => "");
|
return response.text().catch(noop);
|
||||||
} else {
|
} else {
|
||||||
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
|
return response.arrayBuffer().catch(
|
||||||
|
/* v8 ignore next -- @preserve */
|
||||||
|
() => new ArrayBuffer(0)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function isJSONResponse(mimetype) {
|
function isJSONResponse(mimetype) {
|
||||||
@@ -100787,6 +100905,8 @@ function dist_bundle_withDefaults(oldEndpoint, newDefaults) {
|
|||||||
// pkg/dist-src/index.js
|
// pkg/dist-src/index.js
|
||||||
var request = dist_bundle_withDefaults(endpoint, defaults_default);
|
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
|
;// CONCATENATED MODULE: ./node_modules/@octokit/graphql/dist-bundle/index.js
|
||||||
// pkg/dist-src/index.js
|
// pkg/dist-src/index.js
|
||||||
@@ -100971,7 +101091,7 @@ var createTokenAuth = function createTokenAuth2(token) {
|
|||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
|
;// 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
|
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
|
||||||
@@ -100981,16 +101101,16 @@ const version_VERSION = "7.0.5";
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
const noop = () => {
|
const dist_src_noop = () => {
|
||||||
};
|
};
|
||||||
const consoleWarn = console.warn.bind(console);
|
const consoleWarn = console.warn.bind(console);
|
||||||
const consoleError = console.error.bind(console);
|
const consoleError = console.error.bind(console);
|
||||||
function createLogger(logger = {}) {
|
function createLogger(logger = {}) {
|
||||||
if (typeof logger.debug !== "function") {
|
if (typeof logger.debug !== "function") {
|
||||||
logger.debug = noop;
|
logger.debug = dist_src_noop;
|
||||||
}
|
}
|
||||||
if (typeof logger.info !== "function") {
|
if (typeof logger.info !== "function") {
|
||||||
logger.info = noop;
|
logger.info = dist_src_noop;
|
||||||
}
|
}
|
||||||
if (typeof logger.warn !== "function") {
|
if (typeof logger.warn !== "function") {
|
||||||
logger.warn = consoleWarn;
|
logger.warn = consoleWarn;
|
||||||
@@ -101257,7 +101377,9 @@ var paginatingEndpoints = [
|
|||||||
"GET /enterprises/{enterprise}/code-security/configurations",
|
"GET /enterprises/{enterprise}/code-security/configurations",
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
||||||
"GET /enterprises/{enterprise}/dependabot/alerts",
|
"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 /events",
|
||||||
"GET /gists",
|
"GET /gists",
|
||||||
"GET /gists/public",
|
"GET /gists/public",
|
||||||
@@ -101289,6 +101411,7 @@ var paginatingEndpoints = [
|
|||||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
||||||
"GET /orgs/{org}/actions/variables",
|
"GET /orgs/{org}/actions/variables",
|
||||||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||||
|
"GET /orgs/{org}/attestations/repositories",
|
||||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
"GET /orgs/{org}/attestations/{subject_digest}",
|
||||||
"GET /orgs/{org}/blocks",
|
"GET /orgs/{org}/blocks",
|
||||||
"GET /orgs/{org}/campaigns",
|
"GET /orgs/{org}/campaigns",
|
||||||
@@ -101340,6 +101463,7 @@ var paginatingEndpoints = [
|
|||||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
||||||
"GET /orgs/{org}/secret-scanning/alerts",
|
"GET /orgs/{org}/secret-scanning/alerts",
|
||||||
"GET /orgs/{org}/security-advisories",
|
"GET /orgs/{org}/security-advisories",
|
||||||
|
"GET /orgs/{org}/settings/immutable-releases/repositories",
|
||||||
"GET /orgs/{org}/settings/network-configurations",
|
"GET /orgs/{org}/settings/network-configurations",
|
||||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
||||||
"GET /orgs/{org}/teams",
|
"GET /orgs/{org}/teams",
|
||||||
@@ -101353,7 +101477,6 @@ var paginatingEndpoints = [
|
|||||||
"GET /orgs/{org}/teams/{team_slug}/repos",
|
"GET /orgs/{org}/teams/{team_slug}/repos",
|
||||||
"GET /orgs/{org}/teams/{team_slug}/teams",
|
"GET /orgs/{org}/teams/{team_slug}/teams",
|
||||||
"GET /projects/{project_id}/collaborators",
|
"GET /projects/{project_id}/collaborators",
|
||||||
"GET /projects/{project_id}/columns",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/artifacts",
|
"GET /repos/{owner}/{repo}/actions/artifacts",
|
||||||
"GET /repos/{owner}/{repo}/actions/caches",
|
"GET /repos/{owner}/{repo}/actions/caches",
|
||||||
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
||||||
@@ -101493,8 +101616,6 @@ var paginatingEndpoints = [
|
|||||||
"GET /user/subscriptions",
|
"GET /user/subscriptions",
|
||||||
"GET /user/teams",
|
"GET /user/teams",
|
||||||
"GET /users",
|
"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}/attestations/{subject_digest}",
|
||||||
"GET /users/{username}/events",
|
"GET /users/{username}/events",
|
||||||
"GET /users/{username}/events/orgs/{org}",
|
"GET /users/{username}/events/orgs/{org}",
|
||||||
@@ -101508,6 +101629,8 @@ var paginatingEndpoints = [
|
|||||||
"GET /users/{username}/packages",
|
"GET /users/{username}/packages",
|
||||||
"GET /users/{username}/projects",
|
"GET /users/{username}/projects",
|
||||||
"GET /users/{username}/projectsV2",
|
"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",
|
||||||
"GET /users/{username}/received_events/public",
|
"GET /users/{username}/received_events/public",
|
||||||
"GET /users/{username}/repos",
|
"GET /users/{username}/repos",
|
||||||
@@ -101554,7 +101677,7 @@ __nccwpck_require__.d(__webpack_exports__, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
;// 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
|
//# sourceMappingURL=version.js.map
|
||||||
|
|
||||||
@@ -101617,6 +101740,12 @@ const Endpoints = {
|
|||||||
deleteArtifact: [
|
deleteArtifact: [
|
||||||
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
"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: [
|
deleteEnvironmentSecret: [
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||||
],
|
],
|
||||||
@@ -101690,6 +101819,12 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||||
],
|
],
|
||||||
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
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: [
|
getCustomOidcSubClaimForRepo: [
|
||||||
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
||||||
],
|
],
|
||||||
@@ -101769,6 +101904,12 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
||||||
],
|
],
|
||||||
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
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: [
|
listEnvironmentSecrets: [
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
||||||
],
|
],
|
||||||
@@ -102027,6 +102168,12 @@ const Endpoints = {
|
|||||||
getGithubActionsBillingUser: [
|
getGithubActionsBillingUser: [
|
||||||
"GET /users/{username}/settings/billing/actions"
|
"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: [
|
getGithubBillingUsageReportOrg: [
|
||||||
"GET /organizations/{org}/settings/billing/usage"
|
"GET /organizations/{org}/settings/billing/usage"
|
||||||
],
|
],
|
||||||
@@ -102394,6 +102541,51 @@ const Endpoints = {
|
|||||||
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
||||||
},
|
},
|
||||||
emojis: { get: ["GET /emojis"] },
|
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: {
|
gists: {
|
||||||
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
||||||
create: ["POST /gists"],
|
create: ["POST /gists"],
|
||||||
@@ -102663,14 +102855,34 @@ const Endpoints = {
|
|||||||
],
|
],
|
||||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||||
createIssueType: ["POST /orgs/{org}/issue-types"],
|
createIssueType: ["POST /orgs/{org}/issue-types"],
|
||||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
customPropertiesForOrgsCreateOrUpdateOrganizationValues: [
|
||||||
"PATCH /orgs/{org}/properties/values"
|
"PATCH /organizations/{org}/org-properties/values"
|
||||||
],
|
],
|
||||||
createOrUpdateCustomProperty: [
|
customPropertiesForOrgsGetOrganizationValues: [
|
||||||
|
"GET /organizations/{org}/org-properties/values"
|
||||||
|
],
|
||||||
|
customPropertiesForReposCreateOrUpdateOrganizationDefinition: [
|
||||||
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
"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}"],
|
delete: ["DELETE /orgs/{org}"],
|
||||||
deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
|
deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
|
||||||
deleteAttestationsById: [
|
deleteAttestationsById: [
|
||||||
@@ -102681,10 +102893,18 @@ const Endpoints = {
|
|||||||
],
|
],
|
||||||
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
||||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_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}"],
|
get: ["GET /orgs/{org}"],
|
||||||
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
getImmutableReleasesSettings: [
|
||||||
getCustomProperty: [
|
"GET /orgs/{org}/settings/immutable-releases"
|
||||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
],
|
||||||
|
getImmutableReleasesSettingsRepositories: [
|
||||||
|
"GET /orgs/{org}/settings/immutable-releases/repositories"
|
||||||
],
|
],
|
||||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||||
@@ -102703,12 +102923,12 @@ const Endpoints = {
|
|||||||
listArtifactStorageRecords: [
|
listArtifactStorageRecords: [
|
||||||
"GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
|
"GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
|
||||||
],
|
],
|
||||||
|
listAttestationRepositories: ["GET /orgs/{org}/attestations/repositories"],
|
||||||
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
||||||
listAttestationsBulk: [
|
listAttestationsBulk: [
|
||||||
"POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
|
"POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
|
||||||
],
|
],
|
||||||
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
||||||
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
||||||
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
||||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||||
listForUser: ["GET /users/{username}/orgs"],
|
listForUser: ["GET /users/{username}/orgs"],
|
||||||
@@ -102746,9 +102966,6 @@ const Endpoints = {
|
|||||||
redeliverWebhookDelivery: [
|
redeliverWebhookDelivery: [
|
||||||
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
"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}"],
|
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
||||||
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
||||||
removeOutsideCollaborator: [
|
removeOutsideCollaborator: [
|
||||||
@@ -102782,6 +102999,12 @@ const Endpoints = {
|
|||||||
revokeOrgRoleUser: [
|
revokeOrgRoleUser: [
|
||||||
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
"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}"],
|
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
||||||
setPublicMembershipForAuthenticatedUser: [
|
setPublicMembershipForAuthenticatedUser: [
|
||||||
"PUT /orgs/{org}/public_members/{username}"
|
"PUT /orgs/{org}/public_members/{username}"
|
||||||
@@ -102903,40 +103126,42 @@ const Endpoints = {
|
|||||||
},
|
},
|
||||||
projects: {
|
projects: {
|
||||||
addItemForOrg: ["POST /orgs/{org}/projectsV2/{project_number}/items"],
|
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: [
|
deleteItemForOrg: [
|
||||||
"DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
"DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||||
],
|
],
|
||||||
deleteItemForUser: [
|
deleteItemForUser: [
|
||||||
"DELETE /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
"DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||||
],
|
],
|
||||||
getFieldForOrg: [
|
getFieldForOrg: [
|
||||||
"GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
|
"GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
|
||||||
],
|
],
|
||||||
getFieldForUser: [
|
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}"],
|
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}"],
|
getOrgItem: ["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],
|
||||||
getUserItem: [
|
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"],
|
listFieldsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/fields"],
|
||||||
listFieldsForUser: [
|
listFieldsForUser: [
|
||||||
"GET /users/{user_id}/projectsV2/{project_number}/fields"
|
"GET /users/{username}/projectsV2/{project_number}/fields"
|
||||||
],
|
],
|
||||||
listForOrg: ["GET /orgs/{org}/projectsV2"],
|
listForOrg: ["GET /orgs/{org}/projectsV2"],
|
||||||
listForUser: ["GET /users/{username}/projectsV2"],
|
listForUser: ["GET /users/{username}/projectsV2"],
|
||||||
listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
|
listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
|
||||||
listItemsForUser: [
|
listItemsForUser: [
|
||||||
"GET /users/{user_id}/projectsV2/{project_number}/items"
|
"GET /users/{username}/projectsV2/{project_number}/items"
|
||||||
],
|
],
|
||||||
updateItemForOrg: [
|
updateItemForOrg: [
|
||||||
"PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
"PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||||
],
|
],
|
||||||
updateItemForUser: [
|
updateItemForUser: [
|
||||||
"PATCH /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
"PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
pulls: {
|
pulls: {
|
||||||
@@ -103099,6 +103324,7 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
||||||
],
|
],
|
||||||
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
||||||
|
checkImmutableReleases: ["GET /repos/{owner}/{repo}/immutable-releases"],
|
||||||
checkPrivateVulnerabilityReporting: [
|
checkPrivateVulnerabilityReporting: [
|
||||||
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
],
|
],
|
||||||
@@ -103134,9 +103360,6 @@ const Endpoints = {
|
|||||||
createForAuthenticatedUser: ["POST /user/repos"],
|
createForAuthenticatedUser: ["POST /user/repos"],
|
||||||
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
||||||
createInOrg: ["POST /orgs/{org}/repos"],
|
createInOrg: ["POST /orgs/{org}/repos"],
|
||||||
createOrUpdateCustomPropertiesValues: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
||||||
],
|
|
||||||
createOrUpdateEnvironment: [
|
createOrUpdateEnvironment: [
|
||||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
||||||
],
|
],
|
||||||
@@ -103150,6 +103373,12 @@ const Endpoints = {
|
|||||||
"POST /repos/{template_owner}/{template_repo}/generate"
|
"POST /repos/{template_owner}/{template_repo}/generate"
|
||||||
],
|
],
|
||||||
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
||||||
|
customPropertiesForReposCreateOrUpdateRepositoryValues: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/properties/values"
|
||||||
|
],
|
||||||
|
customPropertiesForReposGetRepositoryValues: [
|
||||||
|
"GET /repos/{owner}/{repo}/properties/values"
|
||||||
|
],
|
||||||
declineInvitation: [
|
declineInvitation: [
|
||||||
"DELETE /user/repository_invitations/{invitation_id}",
|
"DELETE /user/repository_invitations/{invitation_id}",
|
||||||
{},
|
{},
|
||||||
@@ -103204,6 +103433,9 @@ const Endpoints = {
|
|||||||
disableDeploymentProtectionRule: [
|
disableDeploymentProtectionRule: [
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||||
],
|
],
|
||||||
|
disableImmutableReleases: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/immutable-releases"
|
||||||
|
],
|
||||||
disablePrivateVulnerabilityReporting: [
|
disablePrivateVulnerabilityReporting: [
|
||||||
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
],
|
],
|
||||||
@@ -103220,6 +103452,7 @@ const Endpoints = {
|
|||||||
enableAutomatedSecurityFixes: [
|
enableAutomatedSecurityFixes: [
|
||||||
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
||||||
],
|
],
|
||||||
|
enableImmutableReleases: ["PUT /repos/{owner}/{repo}/immutable-releases"],
|
||||||
enablePrivateVulnerabilityReporting: [
|
enablePrivateVulnerabilityReporting: [
|
||||||
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
],
|
],
|
||||||
@@ -103271,7 +103504,6 @@ const Endpoints = {
|
|||||||
getCustomDeploymentProtectionRule: [
|
getCustomDeploymentProtectionRule: [
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
"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}"],
|
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
||||||
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
||||||
getDeploymentBranchPolicy: [
|
getDeploymentBranchPolicy: [
|
||||||
@@ -103489,13 +103721,7 @@ const Endpoints = {
|
|||||||
search: {
|
search: {
|
||||||
code: ["GET /search/code"],
|
code: ["GET /search/code"],
|
||||||
commits: ["GET /search/commits"],
|
commits: ["GET /search/commits"],
|
||||||
issuesAndPullRequests: [
|
issuesAndPullRequests: ["GET /search/issues"],
|
||||||
"GET /search/issues",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
deprecated: "octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
labels: ["GET /search/labels"],
|
labels: ["GET /search/labels"],
|
||||||
repos: ["GET /search/repositories"],
|
repos: ["GET /search/repositories"],
|
||||||
topics: ["GET /search/topics"],
|
topics: ["GET /search/topics"],
|
||||||
@@ -103509,9 +103735,6 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||||
],
|
],
|
||||||
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
||||||
listAlertsForEnterprise: [
|
|
||||||
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
||||||
],
|
|
||||||
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
||||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
||||||
listLocationsForAlert: [
|
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;
|
exports.KNOWN_CHECKSUMS = void 0;
|
||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
exports.KNOWN_CHECKSUMS = {
|
exports.KNOWN_CHECKSUMS = {
|
||||||
|
"aarch64-apple-darwin-0.9.17": "a1e1464aa1d04d5e5fa700aa2f2e10397d1114e835dbd56be25ba65c9a31bd99",
|
||||||
|
"aarch64-pc-windows-msvc-0.9.17": "28423a27ad1d82347c00411a6792567119b3c1cfe775d3312c0e08a6b489be5b",
|
||||||
|
"aarch64-unknown-linux-gnu-0.9.17": "e9eba97b7169e47fd3c926e409f0b714820f0befc23b3ae062780586a793e4cc",
|
||||||
|
"aarch64-unknown-linux-musl-0.9.17": "f6f48a301f8e855765af42ef50257af0cebc9c5439dfdcbc188142941aea45ca",
|
||||||
|
"arm-unknown-linux-musleabihf-0.9.17": "4d80f3509b6351882a64c1dd08f72a80e2b27f055a996295ef1f935bc3efcdde",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.9.17": "30a6c041429e2176062573f33c5c44307cb756264224bcb005723a6e18cff34c",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.9.17": "6b034dc63735c2a4541430cbece688e28bce51a09e2ad1ea2c1646a6b24cf1c3",
|
||||||
|
"i686-pc-windows-msvc-0.9.17": "6e93737710e31bf73fcc3b4b6da616bd341e9c6baf1162ddc1e7f65884063f50",
|
||||||
|
"i686-unknown-linux-gnu-0.9.17": "d2426a6d10bedd83524599bb0fbe0ba22e681ed45e892b4fd29086b424daf02a",
|
||||||
|
"i686-unknown-linux-musl-0.9.17": "988c7702a2e88092b30f16fb7f8c18284a8062044cf57e6abd1dfeae82aa6377",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.9.17": "5ad301d9fa15e0791ef96abd83f0ed97e7ac1191b4b7578caaad3151633fb17c",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.9.17": "4958185c5febf22f1c4c84944334cb0d9262c2c2c93faf30c1e0abd26f9d94fa",
|
||||||
|
"riscv64gc-unknown-linux-gnu-0.9.17": "feed7cc7b5fc8a99e683ee1761cf99e3da12b60a2a413b7b87a0447726a66369",
|
||||||
|
"s390x-unknown-linux-gnu-0.9.17": "a297518913a0f0e4af1bce434440ca9d415728aaf828c7def0e913aa5c46da8f",
|
||||||
|
"x86_64-apple-darwin-0.9.17": "249e7fb18d45c06ba283c48f0a8e586ecc5fbb9e8dad0923c4169a7c4db815b2",
|
||||||
|
"x86_64-pc-windows-msvc-0.9.17": "ebc76197bf3e1a58f9dac6f70f49b0ebd3e6907ab35289ce228bce5ba8a3f201",
|
||||||
|
"x86_64-unknown-linux-gnu-0.9.17": "0114d54f9aafd07516cf1cadfe72afa970f5fd293fbe82dd924b8a7b42c984d8",
|
||||||
|
"x86_64-unknown-linux-musl-0.9.17": "ab616c1851e7b1ed377a9ff3997dcee184bea7eda0b20bc8607abba6c469cbad",
|
||||||
"aarch64-apple-darwin-0.9.16": "db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
"aarch64-apple-darwin-0.9.16": "db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
||||||
"aarch64-pc-windows-msvc-0.9.16": "591c73f47dfec72f9d242eebcb36197f27ad652a59d70e70db5c52018684d78e",
|
"aarch64-pc-windows-msvc-0.9.16": "591c73f47dfec72f9d242eebcb36197f27ad652a59d70e70db5c52018684d78e",
|
||||||
"aarch64-unknown-linux-gnu-0.9.16": "a8e9e3f7e621e212d9663ea28827bd8fb9ec11c453ae88d520b48e969e9ff5db",
|
"aarch64-unknown-linux-gnu-0.9.16": "a8e9e3f7e621e212d9663ea28827bd8fb9ec11c453ae88d520b48e969e9ff5db",
|
||||||
@@ -35143,12 +35161,13 @@ class RequestError extends Error {
|
|||||||
*/
|
*/
|
||||||
response;
|
response;
|
||||||
constructor(message, statusCode, options) {
|
constructor(message, statusCode, options) {
|
||||||
super(message);
|
super(message, { cause: options.cause });
|
||||||
this.name = "HttpError";
|
this.name = "HttpError";
|
||||||
this.status = Number.parseInt(statusCode);
|
this.status = Number.parseInt(statusCode);
|
||||||
if (Number.isNaN(this.status)) {
|
if (Number.isNaN(this.status)) {
|
||||||
this.status = 0;
|
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) {
|
if ("response" in options) {
|
||||||
this.response = options.response;
|
this.response = options.response;
|
||||||
}
|
}
|
||||||
@@ -35175,7 +35194,7 @@ class RequestError extends Error {
|
|||||||
|
|
||||||
|
|
||||||
// pkg/dist-src/version.js
|
// pkg/dist-src/version.js
|
||||||
var dist_bundle_VERSION = "10.0.5";
|
var dist_bundle_VERSION = "10.0.7";
|
||||||
|
|
||||||
// pkg/dist-src/defaults.js
|
// pkg/dist-src/defaults.js
|
||||||
var defaults_default = {
|
var defaults_default = {
|
||||||
@@ -35199,6 +35218,7 @@ function dist_bundle_isPlainObject(value) {
|
|||||||
|
|
||||||
// pkg/dist-src/fetch-wrapper.js
|
// pkg/dist-src/fetch-wrapper.js
|
||||||
|
|
||||||
|
var noop = () => "";
|
||||||
async function fetchWrapper(requestOptions) {
|
async function fetchWrapper(requestOptions) {
|
||||||
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
const fetch = requestOptions.request?.fetch || globalThis.fetch;
|
||||||
if (!fetch) {
|
if (!fetch) {
|
||||||
@@ -35300,7 +35320,7 @@ async function fetchWrapper(requestOptions) {
|
|||||||
async function getResponseData(response) {
|
async function getResponseData(response) {
|
||||||
const contentType = response.headers.get("content-type");
|
const contentType = response.headers.get("content-type");
|
||||||
if (!contentType) {
|
if (!contentType) {
|
||||||
return response.text().catch(() => "");
|
return response.text().catch(noop);
|
||||||
}
|
}
|
||||||
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
|
const mimetype = (0,fast_content_type_parse/* safeParse */.xL)(contentType);
|
||||||
if (isJSONResponse(mimetype)) {
|
if (isJSONResponse(mimetype)) {
|
||||||
@@ -35312,9 +35332,12 @@ async function getResponseData(response) {
|
|||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
} else if (mimetype.type.startsWith("text/") || mimetype.parameters.charset?.toLowerCase() === "utf-8") {
|
||||||
return response.text().catch(() => "");
|
return response.text().catch(noop);
|
||||||
} else {
|
} else {
|
||||||
return response.arrayBuffer().catch(() => new ArrayBuffer(0));
|
return response.arrayBuffer().catch(
|
||||||
|
/* v8 ignore next -- @preserve */
|
||||||
|
() => new ArrayBuffer(0)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function isJSONResponse(mimetype) {
|
function isJSONResponse(mimetype) {
|
||||||
@@ -35362,6 +35385,8 @@ function dist_bundle_withDefaults(oldEndpoint, newDefaults) {
|
|||||||
// pkg/dist-src/index.js
|
// pkg/dist-src/index.js
|
||||||
var request = dist_bundle_withDefaults(endpoint, defaults_default);
|
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
|
;// CONCATENATED MODULE: ./node_modules/@octokit/graphql/dist-bundle/index.js
|
||||||
// pkg/dist-src/index.js
|
// pkg/dist-src/index.js
|
||||||
@@ -35546,7 +35571,7 @@ var createTokenAuth = function createTokenAuth2(token) {
|
|||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
|
;// 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
|
;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
|
||||||
@@ -35556,16 +35581,16 @@ const version_VERSION = "7.0.5";
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
const noop = () => {
|
const dist_src_noop = () => {
|
||||||
};
|
};
|
||||||
const consoleWarn = console.warn.bind(console);
|
const consoleWarn = console.warn.bind(console);
|
||||||
const consoleError = console.error.bind(console);
|
const consoleError = console.error.bind(console);
|
||||||
function createLogger(logger = {}) {
|
function createLogger(logger = {}) {
|
||||||
if (typeof logger.debug !== "function") {
|
if (typeof logger.debug !== "function") {
|
||||||
logger.debug = noop;
|
logger.debug = dist_src_noop;
|
||||||
}
|
}
|
||||||
if (typeof logger.info !== "function") {
|
if (typeof logger.info !== "function") {
|
||||||
logger.info = noop;
|
logger.info = dist_src_noop;
|
||||||
}
|
}
|
||||||
if (typeof logger.warn !== "function") {
|
if (typeof logger.warn !== "function") {
|
||||||
logger.warn = consoleWarn;
|
logger.warn = consoleWarn;
|
||||||
@@ -35832,7 +35857,9 @@ var paginatingEndpoints = [
|
|||||||
"GET /enterprises/{enterprise}/code-security/configurations",
|
"GET /enterprises/{enterprise}/code-security/configurations",
|
||||||
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
"GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories",
|
||||||
"GET /enterprises/{enterprise}/dependabot/alerts",
|
"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 /events",
|
||||||
"GET /gists",
|
"GET /gists",
|
||||||
"GET /gists/public",
|
"GET /gists/public",
|
||||||
@@ -35864,6 +35891,7 @@ var paginatingEndpoints = [
|
|||||||
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
"GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
|
||||||
"GET /orgs/{org}/actions/variables",
|
"GET /orgs/{org}/actions/variables",
|
||||||
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
"GET /orgs/{org}/actions/variables/{name}/repositories",
|
||||||
|
"GET /orgs/{org}/attestations/repositories",
|
||||||
"GET /orgs/{org}/attestations/{subject_digest}",
|
"GET /orgs/{org}/attestations/{subject_digest}",
|
||||||
"GET /orgs/{org}/blocks",
|
"GET /orgs/{org}/blocks",
|
||||||
"GET /orgs/{org}/campaigns",
|
"GET /orgs/{org}/campaigns",
|
||||||
@@ -35915,6 +35943,7 @@ var paginatingEndpoints = [
|
|||||||
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
"GET /orgs/{org}/rulesets/{ruleset_id}/history",
|
||||||
"GET /orgs/{org}/secret-scanning/alerts",
|
"GET /orgs/{org}/secret-scanning/alerts",
|
||||||
"GET /orgs/{org}/security-advisories",
|
"GET /orgs/{org}/security-advisories",
|
||||||
|
"GET /orgs/{org}/settings/immutable-releases/repositories",
|
||||||
"GET /orgs/{org}/settings/network-configurations",
|
"GET /orgs/{org}/settings/network-configurations",
|
||||||
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
"GET /orgs/{org}/team/{team_slug}/copilot/metrics",
|
||||||
"GET /orgs/{org}/teams",
|
"GET /orgs/{org}/teams",
|
||||||
@@ -35928,7 +35957,6 @@ var paginatingEndpoints = [
|
|||||||
"GET /orgs/{org}/teams/{team_slug}/repos",
|
"GET /orgs/{org}/teams/{team_slug}/repos",
|
||||||
"GET /orgs/{org}/teams/{team_slug}/teams",
|
"GET /orgs/{org}/teams/{team_slug}/teams",
|
||||||
"GET /projects/{project_id}/collaborators",
|
"GET /projects/{project_id}/collaborators",
|
||||||
"GET /projects/{project_id}/columns",
|
|
||||||
"GET /repos/{owner}/{repo}/actions/artifacts",
|
"GET /repos/{owner}/{repo}/actions/artifacts",
|
||||||
"GET /repos/{owner}/{repo}/actions/caches",
|
"GET /repos/{owner}/{repo}/actions/caches",
|
||||||
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
"GET /repos/{owner}/{repo}/actions/organization-secrets",
|
||||||
@@ -36068,8 +36096,6 @@ var paginatingEndpoints = [
|
|||||||
"GET /user/subscriptions",
|
"GET /user/subscriptions",
|
||||||
"GET /user/teams",
|
"GET /user/teams",
|
||||||
"GET /users",
|
"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}/attestations/{subject_digest}",
|
||||||
"GET /users/{username}/events",
|
"GET /users/{username}/events",
|
||||||
"GET /users/{username}/events/orgs/{org}",
|
"GET /users/{username}/events/orgs/{org}",
|
||||||
@@ -36083,6 +36109,8 @@ var paginatingEndpoints = [
|
|||||||
"GET /users/{username}/packages",
|
"GET /users/{username}/packages",
|
||||||
"GET /users/{username}/projects",
|
"GET /users/{username}/projects",
|
||||||
"GET /users/{username}/projectsV2",
|
"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",
|
||||||
"GET /users/{username}/received_events/public",
|
"GET /users/{username}/received_events/public",
|
||||||
"GET /users/{username}/repos",
|
"GET /users/{username}/repos",
|
||||||
@@ -36129,7 +36157,7 @@ __nccwpck_require__.d(__webpack_exports__, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js
|
;// 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
|
//# sourceMappingURL=version.js.map
|
||||||
|
|
||||||
@@ -36192,6 +36220,12 @@ const Endpoints = {
|
|||||||
deleteArtifact: [
|
deleteArtifact: [
|
||||||
"DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
|
"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: [
|
deleteEnvironmentSecret: [
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"
|
||||||
],
|
],
|
||||||
@@ -36265,6 +36299,12 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
"GET /repos/{owner}/{repo}/actions/permissions/selected-actions"
|
||||||
],
|
],
|
||||||
getArtifact: ["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],
|
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: [
|
getCustomOidcSubClaimForRepo: [
|
||||||
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
"GET /repos/{owner}/{repo}/actions/oidc/customization/sub"
|
||||||
],
|
],
|
||||||
@@ -36344,6 +36384,12 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"
|
||||||
],
|
],
|
||||||
listArtifactsForRepo: ["GET /repos/{owner}/{repo}/actions/artifacts"],
|
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: [
|
listEnvironmentSecrets: [
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
"GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"
|
||||||
],
|
],
|
||||||
@@ -36602,6 +36648,12 @@ const Endpoints = {
|
|||||||
getGithubActionsBillingUser: [
|
getGithubActionsBillingUser: [
|
||||||
"GET /users/{username}/settings/billing/actions"
|
"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: [
|
getGithubBillingUsageReportOrg: [
|
||||||
"GET /organizations/{org}/settings/billing/usage"
|
"GET /organizations/{org}/settings/billing/usage"
|
||||||
],
|
],
|
||||||
@@ -36969,6 +37021,51 @@ const Endpoints = {
|
|||||||
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
exportSbom: ["GET /repos/{owner}/{repo}/dependency-graph/sbom"]
|
||||||
},
|
},
|
||||||
emojis: { get: ["GET /emojis"] },
|
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: {
|
gists: {
|
||||||
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
checkIsStarred: ["GET /gists/{gist_id}/star"],
|
||||||
create: ["POST /gists"],
|
create: ["POST /gists"],
|
||||||
@@ -37238,14 +37335,34 @@ const Endpoints = {
|
|||||||
],
|
],
|
||||||
createInvitation: ["POST /orgs/{org}/invitations"],
|
createInvitation: ["POST /orgs/{org}/invitations"],
|
||||||
createIssueType: ["POST /orgs/{org}/issue-types"],
|
createIssueType: ["POST /orgs/{org}/issue-types"],
|
||||||
createOrUpdateCustomProperties: ["PATCH /orgs/{org}/properties/schema"],
|
createWebhook: ["POST /orgs/{org}/hooks"],
|
||||||
createOrUpdateCustomPropertiesValuesForRepos: [
|
customPropertiesForOrgsCreateOrUpdateOrganizationValues: [
|
||||||
"PATCH /orgs/{org}/properties/values"
|
"PATCH /organizations/{org}/org-properties/values"
|
||||||
],
|
],
|
||||||
createOrUpdateCustomProperty: [
|
customPropertiesForOrgsGetOrganizationValues: [
|
||||||
|
"GET /organizations/{org}/org-properties/values"
|
||||||
|
],
|
||||||
|
customPropertiesForReposCreateOrUpdateOrganizationDefinition: [
|
||||||
"PUT /orgs/{org}/properties/schema/{custom_property_name}"
|
"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}"],
|
delete: ["DELETE /orgs/{org}"],
|
||||||
deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
|
deleteAttestationsBulk: ["POST /orgs/{org}/attestations/delete-request"],
|
||||||
deleteAttestationsById: [
|
deleteAttestationsById: [
|
||||||
@@ -37256,10 +37373,18 @@ const Endpoints = {
|
|||||||
],
|
],
|
||||||
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
deleteIssueType: ["DELETE /orgs/{org}/issue-types/{issue_type_id}"],
|
||||||
deleteWebhook: ["DELETE /orgs/{org}/hooks/{hook_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}"],
|
get: ["GET /orgs/{org}"],
|
||||||
getAllCustomProperties: ["GET /orgs/{org}/properties/schema"],
|
getImmutableReleasesSettings: [
|
||||||
getCustomProperty: [
|
"GET /orgs/{org}/settings/immutable-releases"
|
||||||
"GET /orgs/{org}/properties/schema/{custom_property_name}"
|
],
|
||||||
|
getImmutableReleasesSettingsRepositories: [
|
||||||
|
"GET /orgs/{org}/settings/immutable-releases/repositories"
|
||||||
],
|
],
|
||||||
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
getMembershipForAuthenticatedUser: ["GET /user/memberships/orgs/{org}"],
|
||||||
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
getMembershipForUser: ["GET /orgs/{org}/memberships/{username}"],
|
||||||
@@ -37278,12 +37403,12 @@ const Endpoints = {
|
|||||||
listArtifactStorageRecords: [
|
listArtifactStorageRecords: [
|
||||||
"GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
|
"GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"
|
||||||
],
|
],
|
||||||
|
listAttestationRepositories: ["GET /orgs/{org}/attestations/repositories"],
|
||||||
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
listAttestations: ["GET /orgs/{org}/attestations/{subject_digest}"],
|
||||||
listAttestationsBulk: [
|
listAttestationsBulk: [
|
||||||
"POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
|
"POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"
|
||||||
],
|
],
|
||||||
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
listBlockedUsers: ["GET /orgs/{org}/blocks"],
|
||||||
listCustomPropertiesValuesForRepos: ["GET /orgs/{org}/properties/values"],
|
|
||||||
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
listFailedInvitations: ["GET /orgs/{org}/failed_invitations"],
|
||||||
listForAuthenticatedUser: ["GET /user/orgs"],
|
listForAuthenticatedUser: ["GET /user/orgs"],
|
||||||
listForUser: ["GET /users/{username}/orgs"],
|
listForUser: ["GET /users/{username}/orgs"],
|
||||||
@@ -37321,9 +37446,6 @@ const Endpoints = {
|
|||||||
redeliverWebhookDelivery: [
|
redeliverWebhookDelivery: [
|
||||||
"POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"
|
"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}"],
|
removeMember: ["DELETE /orgs/{org}/members/{username}"],
|
||||||
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
removeMembershipForUser: ["DELETE /orgs/{org}/memberships/{username}"],
|
||||||
removeOutsideCollaborator: [
|
removeOutsideCollaborator: [
|
||||||
@@ -37357,6 +37479,12 @@ const Endpoints = {
|
|||||||
revokeOrgRoleUser: [
|
revokeOrgRoleUser: [
|
||||||
"DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"
|
"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}"],
|
setMembershipForUser: ["PUT /orgs/{org}/memberships/{username}"],
|
||||||
setPublicMembershipForAuthenticatedUser: [
|
setPublicMembershipForAuthenticatedUser: [
|
||||||
"PUT /orgs/{org}/public_members/{username}"
|
"PUT /orgs/{org}/public_members/{username}"
|
||||||
@@ -37478,40 +37606,42 @@ const Endpoints = {
|
|||||||
},
|
},
|
||||||
projects: {
|
projects: {
|
||||||
addItemForOrg: ["POST /orgs/{org}/projectsV2/{project_number}/items"],
|
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: [
|
deleteItemForOrg: [
|
||||||
"DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
"DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||||
],
|
],
|
||||||
deleteItemForUser: [
|
deleteItemForUser: [
|
||||||
"DELETE /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
"DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||||
],
|
],
|
||||||
getFieldForOrg: [
|
getFieldForOrg: [
|
||||||
"GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
|
"GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"
|
||||||
],
|
],
|
||||||
getFieldForUser: [
|
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}"],
|
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}"],
|
getOrgItem: ["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],
|
||||||
getUserItem: [
|
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"],
|
listFieldsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/fields"],
|
||||||
listFieldsForUser: [
|
listFieldsForUser: [
|
||||||
"GET /users/{user_id}/projectsV2/{project_number}/fields"
|
"GET /users/{username}/projectsV2/{project_number}/fields"
|
||||||
],
|
],
|
||||||
listForOrg: ["GET /orgs/{org}/projectsV2"],
|
listForOrg: ["GET /orgs/{org}/projectsV2"],
|
||||||
listForUser: ["GET /users/{username}/projectsV2"],
|
listForUser: ["GET /users/{username}/projectsV2"],
|
||||||
listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
|
listItemsForOrg: ["GET /orgs/{org}/projectsV2/{project_number}/items"],
|
||||||
listItemsForUser: [
|
listItemsForUser: [
|
||||||
"GET /users/{user_id}/projectsV2/{project_number}/items"
|
"GET /users/{username}/projectsV2/{project_number}/items"
|
||||||
],
|
],
|
||||||
updateItemForOrg: [
|
updateItemForOrg: [
|
||||||
"PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
"PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"
|
||||||
],
|
],
|
||||||
updateItemForUser: [
|
updateItemForUser: [
|
||||||
"PATCH /users/{user_id}/projectsV2/{project_number}/items/{item_id}"
|
"PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
pulls: {
|
pulls: {
|
||||||
@@ -37674,6 +37804,7 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
"GET /repos/{owner}/{repo}/automated-security-fixes"
|
||||||
],
|
],
|
||||||
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
checkCollaborator: ["GET /repos/{owner}/{repo}/collaborators/{username}"],
|
||||||
|
checkImmutableReleases: ["GET /repos/{owner}/{repo}/immutable-releases"],
|
||||||
checkPrivateVulnerabilityReporting: [
|
checkPrivateVulnerabilityReporting: [
|
||||||
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
"GET /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
],
|
],
|
||||||
@@ -37709,9 +37840,6 @@ const Endpoints = {
|
|||||||
createForAuthenticatedUser: ["POST /user/repos"],
|
createForAuthenticatedUser: ["POST /user/repos"],
|
||||||
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
createFork: ["POST /repos/{owner}/{repo}/forks"],
|
||||||
createInOrg: ["POST /orgs/{org}/repos"],
|
createInOrg: ["POST /orgs/{org}/repos"],
|
||||||
createOrUpdateCustomPropertiesValues: [
|
|
||||||
"PATCH /repos/{owner}/{repo}/properties/values"
|
|
||||||
],
|
|
||||||
createOrUpdateEnvironment: [
|
createOrUpdateEnvironment: [
|
||||||
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
"PUT /repos/{owner}/{repo}/environments/{environment_name}"
|
||||||
],
|
],
|
||||||
@@ -37725,6 +37853,12 @@ const Endpoints = {
|
|||||||
"POST /repos/{template_owner}/{template_repo}/generate"
|
"POST /repos/{template_owner}/{template_repo}/generate"
|
||||||
],
|
],
|
||||||
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
createWebhook: ["POST /repos/{owner}/{repo}/hooks"],
|
||||||
|
customPropertiesForReposCreateOrUpdateRepositoryValues: [
|
||||||
|
"PATCH /repos/{owner}/{repo}/properties/values"
|
||||||
|
],
|
||||||
|
customPropertiesForReposGetRepositoryValues: [
|
||||||
|
"GET /repos/{owner}/{repo}/properties/values"
|
||||||
|
],
|
||||||
declineInvitation: [
|
declineInvitation: [
|
||||||
"DELETE /user/repository_invitations/{invitation_id}",
|
"DELETE /user/repository_invitations/{invitation_id}",
|
||||||
{},
|
{},
|
||||||
@@ -37779,6 +37913,9 @@ const Endpoints = {
|
|||||||
disableDeploymentProtectionRule: [
|
disableDeploymentProtectionRule: [
|
||||||
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
"DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
||||||
],
|
],
|
||||||
|
disableImmutableReleases: [
|
||||||
|
"DELETE /repos/{owner}/{repo}/immutable-releases"
|
||||||
|
],
|
||||||
disablePrivateVulnerabilityReporting: [
|
disablePrivateVulnerabilityReporting: [
|
||||||
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
"DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
],
|
],
|
||||||
@@ -37795,6 +37932,7 @@ const Endpoints = {
|
|||||||
enableAutomatedSecurityFixes: [
|
enableAutomatedSecurityFixes: [
|
||||||
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
"PUT /repos/{owner}/{repo}/automated-security-fixes"
|
||||||
],
|
],
|
||||||
|
enableImmutableReleases: ["PUT /repos/{owner}/{repo}/immutable-releases"],
|
||||||
enablePrivateVulnerabilityReporting: [
|
enablePrivateVulnerabilityReporting: [
|
||||||
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
"PUT /repos/{owner}/{repo}/private-vulnerability-reporting"
|
||||||
],
|
],
|
||||||
@@ -37846,7 +37984,6 @@ const Endpoints = {
|
|||||||
getCustomDeploymentProtectionRule: [
|
getCustomDeploymentProtectionRule: [
|
||||||
"GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"
|
"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}"],
|
getDeployKey: ["GET /repos/{owner}/{repo}/keys/{key_id}"],
|
||||||
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
getDeployment: ["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],
|
||||||
getDeploymentBranchPolicy: [
|
getDeploymentBranchPolicy: [
|
||||||
@@ -38064,13 +38201,7 @@ const Endpoints = {
|
|||||||
search: {
|
search: {
|
||||||
code: ["GET /search/code"],
|
code: ["GET /search/code"],
|
||||||
commits: ["GET /search/commits"],
|
commits: ["GET /search/commits"],
|
||||||
issuesAndPullRequests: [
|
issuesAndPullRequests: ["GET /search/issues"],
|
||||||
"GET /search/issues",
|
|
||||||
{},
|
|
||||||
{
|
|
||||||
deprecated: "octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
labels: ["GET /search/labels"],
|
labels: ["GET /search/labels"],
|
||||||
repos: ["GET /search/repositories"],
|
repos: ["GET /search/repositories"],
|
||||||
topics: ["GET /search/topics"],
|
topics: ["GET /search/topics"],
|
||||||
@@ -38084,9 +38215,6 @@ const Endpoints = {
|
|||||||
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"
|
||||||
],
|
],
|
||||||
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
getScanHistory: ["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],
|
||||||
listAlertsForEnterprise: [
|
|
||||||
"GET /enterprises/{enterprise}/secret-scanning/alerts"
|
|
||||||
],
|
|
||||||
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
listAlertsForOrg: ["GET /orgs/{org}/secret-scanning/alerts"],
|
||||||
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
listAlertsForRepo: ["GET /repos/{owner}/{repo}/secret-scanning/alerts"],
|
||||||
listLocationsForAlert: [
|
listLocationsForAlert: [
|
||||||
|
|||||||
@@ -2,6 +2,34 @@
|
|||||||
|
|
||||||
This document covers all caching-related configuration options for setup-uv.
|
This document covers all caching-related configuration options for setup-uv.
|
||||||
|
|
||||||
|
## Cache key
|
||||||
|
|
||||||
|
The cache key is automatically generated based on:
|
||||||
|
|
||||||
|
- **Architecture**: CPU architecture (e.g., `x86_64`, `aarch64`)
|
||||||
|
- **Platform**: OS platform type (e.g., `unknown-linux-gnu`, `unknown-linux-musl`, `apple-darwin`,
|
||||||
|
`pc-windows-msvc`)
|
||||||
|
- **OS version**: OS name and version (e.g., `ubuntu-22.04`, `macos-14`, `windows-2022`)
|
||||||
|
- **Python version**: The Python version in use
|
||||||
|
- **Cache options**: Whether pruning and Python caching are enabled
|
||||||
|
- **Dependency hash**: Hash of files matching `cache-dependency-glob`
|
||||||
|
- **Suffix**: Optional `cache-suffix` if provided
|
||||||
|
|
||||||
|
Including the OS version ensures that caches are not shared between different OS versions,
|
||||||
|
preventing binary incompatibility issues when runner images change.
|
||||||
|
|
||||||
|
The computed cache key is available as the `cache-key` output:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: Setup uv
|
||||||
|
id: setup-uv
|
||||||
|
uses: astral-sh/setup-uv@v7
|
||||||
|
with:
|
||||||
|
enable-cache: true
|
||||||
|
- name: Print cache key
|
||||||
|
run: echo "Cache key: ${{ steps.setup-uv.outputs.cache-key }}"
|
||||||
|
```
|
||||||
|
|
||||||
## Enable caching
|
## Enable caching
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
@@ -134,6 +162,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
|
> 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`.
|
> 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
|
```yaml
|
||||||
- name: Define a custom uv cache path
|
- name: Define a custom uv cache path
|
||||||
uses: astral-sh/setup-uv@v7
|
uses: astral-sh/setup-uv@v7
|
||||||
|
|||||||
326
package-lock.json
generated
326
package-lock.json
generated
@@ -15,17 +15,17 @@
|
|||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/core": "^7.0.5",
|
"@octokit/core": "^7.0.6",
|
||||||
"@octokit/plugin-paginate-rest": "^13.2.1",
|
"@octokit/plugin-paginate-rest": "^14.0.0",
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^16.1.1",
|
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
||||||
"@renovatebot/pep440": "^4.2.1",
|
"@renovatebot/pep440": "^4.2.1",
|
||||||
"smol-toml": "^1.4.2",
|
"smol-toml": "^1.4.2",
|
||||||
"undici": "5.28.5"
|
"undici": "5.28.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.3.0",
|
"@biomejs/biome": "2.3.7",
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
"@types/node": "^24.9.1",
|
"@types/node": "^24.10.1",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@vercel/ncc": "^0.38.4",
|
"@vercel/ncc": "^0.38.4",
|
||||||
"jest": "^30.2.0",
|
"jest": "^30.2.0",
|
||||||
@@ -890,9 +890,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/biome": {
|
"node_modules/@biomejs/biome": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.7.tgz",
|
||||||
"integrity": "sha512-shdUY5H3S3tJVUWoVWo5ua+GdPW5lRHf+b0IwZ4OC1o2zOKQECZ6l2KbU6t89FNhtd3Qx5eg5N7/UsQWGQbAFw==",
|
"integrity": "sha512-CTbAS/jNAiUc6rcq94BrTB8z83O9+BsgWj2sBCQg9rD6Wkh2gjfR87usjx0Ncx0zGXP1NKgT7JNglay5Zfs9jw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT OR Apache-2.0",
|
"license": "MIT OR Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
@@ -906,20 +906,20 @@
|
|||||||
"url": "https://opencollective.com/biome"
|
"url": "https://opencollective.com/biome"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"@biomejs/cli-darwin-arm64": "2.3.0",
|
"@biomejs/cli-darwin-arm64": "2.3.7",
|
||||||
"@biomejs/cli-darwin-x64": "2.3.0",
|
"@biomejs/cli-darwin-x64": "2.3.7",
|
||||||
"@biomejs/cli-linux-arm64": "2.3.0",
|
"@biomejs/cli-linux-arm64": "2.3.7",
|
||||||
"@biomejs/cli-linux-arm64-musl": "2.3.0",
|
"@biomejs/cli-linux-arm64-musl": "2.3.7",
|
||||||
"@biomejs/cli-linux-x64": "2.3.0",
|
"@biomejs/cli-linux-x64": "2.3.7",
|
||||||
"@biomejs/cli-linux-x64-musl": "2.3.0",
|
"@biomejs/cli-linux-x64-musl": "2.3.7",
|
||||||
"@biomejs/cli-win32-arm64": "2.3.0",
|
"@biomejs/cli-win32-arm64": "2.3.7",
|
||||||
"@biomejs/cli-win32-x64": "2.3.0"
|
"@biomejs/cli-win32-x64": "2.3.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-darwin-arm64": {
|
"node_modules/@biomejs/cli-darwin-arm64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.7.tgz",
|
||||||
"integrity": "sha512-3cJVT0Z5pbTkoBmbjmDZTDFYxIkRcrs9sYVJbIBHU8E6qQxgXAaBfSVjjCreG56rfDuQBr43GzwzmaHPcu4vlw==",
|
"integrity": "sha512-LirkamEwzIUULhXcf2D5b+NatXKeqhOwilM+5eRkbrnr6daKz9rsBL0kNZ16Hcy4b8RFq22SG4tcLwM+yx/wFA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -934,9 +934,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-darwin-x64": {
|
"node_modules/@biomejs/cli-darwin-x64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.7.tgz",
|
||||||
"integrity": "sha512-6LIkhglh3UGjuDqJXsK42qCA0XkD1Ke4K/raFOii7QQPbM8Pia7Qj2Hji4XuF2/R78hRmEx7uKJH3t/Y9UahtQ==",
|
"integrity": "sha512-Q4TO633kvrMQkKIV7wmf8HXwF0dhdTD9S458LGE24TYgBjSRbuhvio4D5eOQzirEYg6eqxfs53ga/rbdd8nBKg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -951,9 +951,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-arm64": {
|
"node_modules/@biomejs/cli-linux-arm64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.7.tgz",
|
||||||
"integrity": "sha512-uhAsbXySX7xsXahegDg5h3CDgfMcRsJvWLFPG0pjkylgBb9lErbK2C0UINW52zhwg0cPISB09lxHPxCau4e2xA==",
|
"integrity": "sha512-inHOTdlstUBzgjDcx0ge71U4SVTbwAljmkfi3MC5WzsYCRhancqfeL+sa4Ke6v2ND53WIwCFD5hGsYExoI3EZQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -968,9 +968,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-arm64-musl": {
|
"node_modules/@biomejs/cli-linux-arm64-musl": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.7.tgz",
|
||||||
"integrity": "sha512-nDksoFdwZ2YrE7NiYDhtMhL2UgFn8Kb7Y0bYvnTAakHnqEdb4lKindtBc1f+xg2Snz0JQhJUYO7r9CDBosRU5w==",
|
"integrity": "sha512-/afy8lto4CB8scWfMdt+NoCZtatBUF62Tk3ilWH2w8ENd5spLhM77zKlFZEvsKJv9AFNHknMl03zO67CiklL2Q==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -985,9 +985,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-x64": {
|
"node_modules/@biomejs/cli-linux-x64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.7.tgz",
|
||||||
"integrity": "sha512-uxa8reA2s1VgoH8MhbGlCmMOt3JuSE1vJBifkh1ulaPiuk0SPx8cCdpnm9NWnTe2x/LfWInWx4sZ7muaXTPGGw==",
|
"integrity": "sha512-fJMc3ZEuo/NaMYo5rvoWjdSS5/uVSW+HPRQujucpZqm2ZCq71b8MKJ9U4th9yrv2L5+5NjPF0nqqILCl8HY/fg==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -1002,9 +1002,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-linux-x64-musl": {
|
"node_modules/@biomejs/cli-linux-x64-musl": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.7.tgz",
|
||||||
"integrity": "sha512-+i9UcJwl99uAhtRQDz9jUAh+Xkb097eekxs/D9j4deWDg5/yB/jPWzISe1nBHvlzTXsdUSj0VvB4Go2DSpKIMw==",
|
"integrity": "sha512-CQUtgH1tIN6e5wiYSJqzSwJumHYolNtaj1dwZGCnZXm2PZU1jOJof9TsyiP3bXNDb+VOR7oo7ZvY01If0W3iFQ==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -1019,9 +1019,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-win32-arm64": {
|
"node_modules/@biomejs/cli-win32-arm64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.7.tgz",
|
||||||
"integrity": "sha512-ynjmsJLIKrAjC3CCnKMMhzcnNy8dbQWjKfSU5YA0mIruTxBNMbkAJp+Pr2iV7/hFou+66ZSD/WV8hmLEmhUaXA==",
|
"integrity": "sha512-aJAE8eCNyRpcfx2JJAtsPtISnELJ0H4xVVSwnxm13bzI8RwbXMyVtxy2r5DV1xT3WiSP+7LxORcApWw0LM8HiA==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"arm64"
|
"arm64"
|
||||||
],
|
],
|
||||||
@@ -1036,9 +1036,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@biomejs/cli-win32-x64": {
|
"node_modules/@biomejs/cli-win32-x64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.7.tgz",
|
||||||
"integrity": "sha512-zOCYmCRVkWXc9v8P7OLbLlGGMxQTKMvi+5IC4v7O8DkjLCOHRzRVK/Lno2pGZNo0lzKM60pcQOhH8HVkXMQdFg==",
|
"integrity": "sha512-pulzUshqv9Ed//MiE8MOUeeEkbkSHVDVY5Cz5wVAnH1DUqliCQG3j6s1POaITTFqFfo7AVIx2sWdKpx/GS+Nqw==",
|
||||||
"cpu": [
|
"cpu": [
|
||||||
"x64"
|
"x64"
|
||||||
],
|
],
|
||||||
@@ -1600,17 +1600,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/core": {
|
"node_modules/@octokit/core": {
|
||||||
"version": "7.0.5",
|
"version": "7.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz",
|
||||||
"integrity": "sha512-t54CUOsFMappY1Jbzb7fetWeO0n6K0k/4+/ZpkS+3Joz8I4VcvY9OiEBFRYISqaI2fq5sCiPtAjRDOzVYG8m+Q==",
|
"integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"peer": true,
|
"peer": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/auth-token": "^6.0.0",
|
"@octokit/auth-token": "^6.0.0",
|
||||||
"@octokit/graphql": "^9.0.2",
|
"@octokit/graphql": "^9.0.3",
|
||||||
"@octokit/request": "^10.0.4",
|
"@octokit/request": "^10.0.6",
|
||||||
"@octokit/request-error": "^7.0.1",
|
"@octokit/request-error": "^7.0.2",
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"before-after-hook": "^4.0.0",
|
"before-after-hook": "^4.0.0",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
},
|
},
|
||||||
@@ -1619,12 +1619,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/endpoint": {
|
"node_modules/@octokit/endpoint": {
|
||||||
"version": "11.0.1",
|
"version": "11.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.2.tgz",
|
||||||
"integrity": "sha512-7P1dRAZxuWAOPI7kXfio88trNi/MegQ0IJD3vfgC3b+LZo1Qe6gRJc2v0mz2USWWJOKrB2h5spXCzGbw+fAdqA==",
|
"integrity": "sha512-4zCpzP1fWc7QlqunZ5bSEjxc6yLAlRTnDwKtgXfcI/FxxGoqedDG8V2+xJ60bV2kODqcGB+nATdtap/XYq2NZQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"universal-user-agent": "^7.0.2"
|
"universal-user-agent": "^7.0.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -1632,13 +1632,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/graphql": {
|
"node_modules/@octokit/graphql": {
|
||||||
"version": "9.0.2",
|
"version": "9.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.3.tgz",
|
||||||
"integrity": "sha512-iz6KzZ7u95Fzy9Nt2L8cG88lGRMr/qy1Q36ih/XVzMIlPDMYwaNLE/ENhqmIzgPrlNWiYJkwmveEetvxAgFBJw==",
|
"integrity": "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/request": "^10.0.4",
|
"@octokit/request": "^10.0.6",
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@@ -1646,18 +1646,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/openapi-types": {
|
"node_modules/@octokit/openapi-types": {
|
||||||
"version": "26.0.0",
|
"version": "27.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-26.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz",
|
||||||
"integrity": "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA==",
|
"integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/plugin-paginate-rest": {
|
"node_modules/@octokit/plugin-paginate-rest": {
|
||||||
"version": "13.2.1",
|
"version": "14.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-13.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-14.0.0.tgz",
|
||||||
"integrity": "sha512-Tj4PkZyIL6eBMYcG/76QGsedF0+dWVeLhYprTmuFVVxzDW7PQh23tM0TP0z+1MvSkxB29YFZwnUX+cXfTiSdyw==",
|
"integrity": "sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^15.0.1"
|
"@octokit/types": "^16.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 20"
|
"node": ">= 20"
|
||||||
@@ -1667,12 +1667,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
"node_modules/@octokit/plugin-rest-endpoint-methods": {
|
||||||
"version": "16.1.1",
|
"version": "17.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-16.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-17.0.0.tgz",
|
||||||
"integrity": "sha512-VztDkhM0ketQYSh5Im3IcKWFZl7VIrrsCaHbDINkdYeiiAsJzjhS2xRFCSJgfN6VOcsoW4laMtsmf3HcNqIimg==",
|
"integrity": "sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^15.0.1"
|
"@octokit/types": "^16.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 20"
|
"node": ">= 20"
|
||||||
@@ -1682,14 +1682,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/request": {
|
"node_modules/@octokit/request": {
|
||||||
"version": "10.0.5",
|
"version": "10.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.7.tgz",
|
||||||
"integrity": "sha512-TXnouHIYLtgDhKo+N6mXATnDBkV05VwbR0TtMWpgTHIoQdRQfCSzmy/LGqR1AbRMbijq/EckC/E3/ZNcU92NaQ==",
|
"integrity": "sha512-v93h0i1yu4idj8qFPZwjehoJx4j3Ntn+JhXsdJrG9pYaX6j/XRz2RmasMUHtNgQD39nrv/VwTWSqK0RNXR8upA==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/endpoint": "^11.0.1",
|
"@octokit/endpoint": "^11.0.2",
|
||||||
"@octokit/request-error": "^7.0.1",
|
"@octokit/request-error": "^7.0.2",
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"fast-content-type-parse": "^3.0.0",
|
"fast-content-type-parse": "^3.0.0",
|
||||||
"universal-user-agent": "^7.0.2"
|
"universal-user-agent": "^7.0.2"
|
||||||
},
|
},
|
||||||
@@ -1698,24 +1698,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/request-error": {
|
"node_modules/@octokit/request-error": {
|
||||||
"version": "7.0.1",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.0.tgz",
|
||||||
"integrity": "sha512-CZpFwV4+1uBrxu7Cw8E5NCXDWFNf18MSY23TdxCBgjw1tXXHvTrZVsXlW8hgFTOLw8RQR1BBrMvYRtuyaijHMA==",
|
"integrity": "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/types": "^15.0.0"
|
"@octokit/types": "^16.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 20"
|
"node": ">= 20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@octokit/types": {
|
"node_modules/@octokit/types": {
|
||||||
"version": "15.0.1",
|
"version": "16.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-15.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz",
|
||||||
"integrity": "sha512-sdiirM93IYJ9ODDCBgmRPIboLbSkpLa5i+WLuXH8b8Atg+YMLAyLvDDhNWLV4OYd08tlvYfVm/dw88cqHWtw1Q==",
|
"integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@octokit/openapi-types": "^26.0.0"
|
"@octokit/openapi-types": "^27.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@opentelemetry/api": {
|
"node_modules/@opentelemetry/api": {
|
||||||
@@ -1900,9 +1900,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "24.9.1",
|
"version": "24.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
|
||||||
"integrity": "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg==",
|
"integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"undici-types": "~7.16.0"
|
"undici-types": "~7.16.0"
|
||||||
@@ -6395,74 +6395,74 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@biomejs/biome": {
|
"@biomejs/biome": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.7.tgz",
|
||||||
"integrity": "sha512-shdUY5H3S3tJVUWoVWo5ua+GdPW5lRHf+b0IwZ4OC1o2zOKQECZ6l2KbU6t89FNhtd3Qx5eg5N7/UsQWGQbAFw==",
|
"integrity": "sha512-CTbAS/jNAiUc6rcq94BrTB8z83O9+BsgWj2sBCQg9rD6Wkh2gjfR87usjx0Ncx0zGXP1NKgT7JNglay5Zfs9jw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@biomejs/cli-darwin-arm64": "2.3.0",
|
"@biomejs/cli-darwin-arm64": "2.3.7",
|
||||||
"@biomejs/cli-darwin-x64": "2.3.0",
|
"@biomejs/cli-darwin-x64": "2.3.7",
|
||||||
"@biomejs/cli-linux-arm64": "2.3.0",
|
"@biomejs/cli-linux-arm64": "2.3.7",
|
||||||
"@biomejs/cli-linux-arm64-musl": "2.3.0",
|
"@biomejs/cli-linux-arm64-musl": "2.3.7",
|
||||||
"@biomejs/cli-linux-x64": "2.3.0",
|
"@biomejs/cli-linux-x64": "2.3.7",
|
||||||
"@biomejs/cli-linux-x64-musl": "2.3.0",
|
"@biomejs/cli-linux-x64-musl": "2.3.7",
|
||||||
"@biomejs/cli-win32-arm64": "2.3.0",
|
"@biomejs/cli-win32-arm64": "2.3.7",
|
||||||
"@biomejs/cli-win32-x64": "2.3.0"
|
"@biomejs/cli-win32-x64": "2.3.7"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@biomejs/cli-darwin-arm64": {
|
"@biomejs/cli-darwin-arm64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-2.3.7.tgz",
|
||||||
"integrity": "sha512-3cJVT0Z5pbTkoBmbjmDZTDFYxIkRcrs9sYVJbIBHU8E6qQxgXAaBfSVjjCreG56rfDuQBr43GzwzmaHPcu4vlw==",
|
"integrity": "sha512-LirkamEwzIUULhXcf2D5b+NatXKeqhOwilM+5eRkbrnr6daKz9rsBL0kNZ16Hcy4b8RFq22SG4tcLwM+yx/wFA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-darwin-x64": {
|
"@biomejs/cli-darwin-x64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-2.3.7.tgz",
|
||||||
"integrity": "sha512-6LIkhglh3UGjuDqJXsK42qCA0XkD1Ke4K/raFOii7QQPbM8Pia7Qj2Hji4XuF2/R78hRmEx7uKJH3t/Y9UahtQ==",
|
"integrity": "sha512-Q4TO633kvrMQkKIV7wmf8HXwF0dhdTD9S458LGE24TYgBjSRbuhvio4D5eOQzirEYg6eqxfs53ga/rbdd8nBKg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-arm64": {
|
"@biomejs/cli-linux-arm64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-2.3.7.tgz",
|
||||||
"integrity": "sha512-uhAsbXySX7xsXahegDg5h3CDgfMcRsJvWLFPG0pjkylgBb9lErbK2C0UINW52zhwg0cPISB09lxHPxCau4e2xA==",
|
"integrity": "sha512-inHOTdlstUBzgjDcx0ge71U4SVTbwAljmkfi3MC5WzsYCRhancqfeL+sa4Ke6v2ND53WIwCFD5hGsYExoI3EZQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-arm64-musl": {
|
"@biomejs/cli-linux-arm64-musl": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.3.7.tgz",
|
||||||
"integrity": "sha512-nDksoFdwZ2YrE7NiYDhtMhL2UgFn8Kb7Y0bYvnTAakHnqEdb4lKindtBc1f+xg2Snz0JQhJUYO7r9CDBosRU5w==",
|
"integrity": "sha512-/afy8lto4CB8scWfMdt+NoCZtatBUF62Tk3ilWH2w8ENd5spLhM77zKlFZEvsKJv9AFNHknMl03zO67CiklL2Q==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-x64": {
|
"@biomejs/cli-linux-x64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.7.tgz",
|
||||||
"integrity": "sha512-uxa8reA2s1VgoH8MhbGlCmMOt3JuSE1vJBifkh1ulaPiuk0SPx8cCdpnm9NWnTe2x/LfWInWx4sZ7muaXTPGGw==",
|
"integrity": "sha512-fJMc3ZEuo/NaMYo5rvoWjdSS5/uVSW+HPRQujucpZqm2ZCq71b8MKJ9U4th9yrv2L5+5NjPF0nqqILCl8HY/fg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-linux-x64-musl": {
|
"@biomejs/cli-linux-x64-musl": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-2.3.7.tgz",
|
||||||
"integrity": "sha512-+i9UcJwl99uAhtRQDz9jUAh+Xkb097eekxs/D9j4deWDg5/yB/jPWzISe1nBHvlzTXsdUSj0VvB4Go2DSpKIMw==",
|
"integrity": "sha512-CQUtgH1tIN6e5wiYSJqzSwJumHYolNtaj1dwZGCnZXm2PZU1jOJof9TsyiP3bXNDb+VOR7oo7ZvY01If0W3iFQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-win32-arm64": {
|
"@biomejs/cli-win32-arm64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-2.3.7.tgz",
|
||||||
"integrity": "sha512-ynjmsJLIKrAjC3CCnKMMhzcnNy8dbQWjKfSU5YA0mIruTxBNMbkAJp+Pr2iV7/hFou+66ZSD/WV8hmLEmhUaXA==",
|
"integrity": "sha512-aJAE8eCNyRpcfx2JJAtsPtISnELJ0H4xVVSwnxm13bzI8RwbXMyVtxy2r5DV1xT3WiSP+7LxORcApWw0LM8HiA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
"@biomejs/cli-win32-x64": {
|
"@biomejs/cli-win32-x64": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.7",
|
||||||
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-2.3.7.tgz",
|
||||||
"integrity": "sha512-zOCYmCRVkWXc9v8P7OLbLlGGMxQTKMvi+5IC4v7O8DkjLCOHRzRVK/Lno2pGZNo0lzKM60pcQOhH8HVkXMQdFg==",
|
"integrity": "sha512-pulzUshqv9Ed//MiE8MOUeeEkbkSHVDVY5Cz5wVAnH1DUqliCQG3j6s1POaITTFqFfo7AVIx2sWdKpx/GS+Nqw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true
|
"optional": true
|
||||||
},
|
},
|
||||||
@@ -6893,86 +6893,86 @@
|
|||||||
"integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w=="
|
"integrity": "sha512-P4YJBPdPSpWTQ1NU4XYdvHvXJJDxM6YwpS0FZHRgP7YFkdVxsWcpWGy/NVqlAA7PcPCnMacXlRm1y2PFZRWL/w=="
|
||||||
},
|
},
|
||||||
"@octokit/core": {
|
"@octokit/core": {
|
||||||
"version": "7.0.5",
|
"version": "7.0.6",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/core/-/core-7.0.6.tgz",
|
||||||
"integrity": "sha512-t54CUOsFMappY1Jbzb7fetWeO0n6K0k/4+/ZpkS+3Joz8I4VcvY9OiEBFRYISqaI2fq5sCiPtAjRDOzVYG8m+Q==",
|
"integrity": "sha512-DhGl4xMVFGVIyMwswXeyzdL4uXD5OGILGX5N8Y+f6W7LhC1Ze2poSNrkF/fedpVDHEEZ+PHFW0vL14I+mm8K3Q==",
|
||||||
"peer": true,
|
"peer": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/auth-token": "^6.0.0",
|
"@octokit/auth-token": "^6.0.0",
|
||||||
"@octokit/graphql": "^9.0.2",
|
"@octokit/graphql": "^9.0.3",
|
||||||
"@octokit/request": "^10.0.4",
|
"@octokit/request": "^10.0.6",
|
||||||
"@octokit/request-error": "^7.0.1",
|
"@octokit/request-error": "^7.0.2",
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"before-after-hook": "^4.0.0",
|
"before-after-hook": "^4.0.0",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/endpoint": {
|
"@octokit/endpoint": {
|
||||||
"version": "11.0.1",
|
"version": "11.0.2",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-11.0.2.tgz",
|
||||||
"integrity": "sha512-7P1dRAZxuWAOPI7kXfio88trNi/MegQ0IJD3vfgC3b+LZo1Qe6gRJc2v0mz2USWWJOKrB2h5spXCzGbw+fAdqA==",
|
"integrity": "sha512-4zCpzP1fWc7QlqunZ5bSEjxc6yLAlRTnDwKtgXfcI/FxxGoqedDG8V2+xJ60bV2kODqcGB+nATdtap/XYq2NZQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"universal-user-agent": "^7.0.2"
|
"universal-user-agent": "^7.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/graphql": {
|
"@octokit/graphql": {
|
||||||
"version": "9.0.2",
|
"version": "9.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-9.0.3.tgz",
|
||||||
"integrity": "sha512-iz6KzZ7u95Fzy9Nt2L8cG88lGRMr/qy1Q36ih/XVzMIlPDMYwaNLE/ENhqmIzgPrlNWiYJkwmveEetvxAgFBJw==",
|
"integrity": "sha512-grAEuupr/C1rALFnXTv6ZQhFuL1D8G5y8CN04RgrO4FIPMrtm+mcZzFG7dcBm+nq+1ppNixu+Jd78aeJOYxlGA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/request": "^10.0.4",
|
"@octokit/request": "^10.0.6",
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"universal-user-agent": "^7.0.0"
|
"universal-user-agent": "^7.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/openapi-types": {
|
"@octokit/openapi-types": {
|
||||||
"version": "26.0.0",
|
"version": "27.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-26.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-27.0.0.tgz",
|
||||||
"integrity": "sha512-7AtcfKtpo77j7Ts73b4OWhOZHTKo/gGY8bB3bNBQz4H+GRSWqx2yvj8TXRsbdTE0eRmYmXOEY66jM7mJ7LzfsA=="
|
"integrity": "sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA=="
|
||||||
},
|
},
|
||||||
"@octokit/plugin-paginate-rest": {
|
"@octokit/plugin-paginate-rest": {
|
||||||
"version": "13.2.1",
|
"version": "14.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-13.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-14.0.0.tgz",
|
||||||
"integrity": "sha512-Tj4PkZyIL6eBMYcG/76QGsedF0+dWVeLhYprTmuFVVxzDW7PQh23tM0TP0z+1MvSkxB29YFZwnUX+cXfTiSdyw==",
|
"integrity": "sha512-fNVRE7ufJiAA3XUrha2omTA39M6IXIc6GIZLvlbsm8QOQCYvpq/LkMNGyFlB1d8hTDzsAXa3OKtybdMAYsV/fw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^15.0.1"
|
"@octokit/types": "^16.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/plugin-rest-endpoint-methods": {
|
"@octokit/plugin-rest-endpoint-methods": {
|
||||||
"version": "16.1.1",
|
"version": "17.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-16.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-17.0.0.tgz",
|
||||||
"integrity": "sha512-VztDkhM0ketQYSh5Im3IcKWFZl7VIrrsCaHbDINkdYeiiAsJzjhS2xRFCSJgfN6VOcsoW4laMtsmf3HcNqIimg==",
|
"integrity": "sha512-B5yCyIlOJFPqUUeiD0cnBJwWJO8lkJs5d8+ze9QDP6SvfiXSz1BF+91+0MeI1d2yxgOhU/O+CvtiZ9jSkHhFAw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^15.0.1"
|
"@octokit/types": "^16.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/request": {
|
"@octokit/request": {
|
||||||
"version": "10.0.5",
|
"version": "10.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request/-/request-10.0.7.tgz",
|
||||||
"integrity": "sha512-TXnouHIYLtgDhKo+N6mXATnDBkV05VwbR0TtMWpgTHIoQdRQfCSzmy/LGqR1AbRMbijq/EckC/E3/ZNcU92NaQ==",
|
"integrity": "sha512-v93h0i1yu4idj8qFPZwjehoJx4j3Ntn+JhXsdJrG9pYaX6j/XRz2RmasMUHtNgQD39nrv/VwTWSqK0RNXR8upA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/endpoint": "^11.0.1",
|
"@octokit/endpoint": "^11.0.2",
|
||||||
"@octokit/request-error": "^7.0.1",
|
"@octokit/request-error": "^7.0.2",
|
||||||
"@octokit/types": "^15.0.0",
|
"@octokit/types": "^16.0.0",
|
||||||
"fast-content-type-parse": "^3.0.0",
|
"fast-content-type-parse": "^3.0.0",
|
||||||
"universal-user-agent": "^7.0.2"
|
"universal-user-agent": "^7.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/request-error": {
|
"@octokit/request-error": {
|
||||||
"version": "7.0.1",
|
"version": "7.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-7.1.0.tgz",
|
||||||
"integrity": "sha512-CZpFwV4+1uBrxu7Cw8E5NCXDWFNf18MSY23TdxCBgjw1tXXHvTrZVsXlW8hgFTOLw8RQR1BBrMvYRtuyaijHMA==",
|
"integrity": "sha512-KMQIfq5sOPpkQYajXHwnhjCC0slzCNScLHs9JafXc4RAJI+9f+jNDlBNaIMTvazOPLgb4BnlhGJOTbnN0wIjPw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/types": "^15.0.0"
|
"@octokit/types": "^16.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@octokit/types": {
|
"@octokit/types": {
|
||||||
"version": "15.0.1",
|
"version": "16.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-15.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-16.0.0.tgz",
|
||||||
"integrity": "sha512-sdiirM93IYJ9ODDCBgmRPIboLbSkpLa5i+WLuXH8b8Atg+YMLAyLvDDhNWLV4OYd08tlvYfVm/dw88cqHWtw1Q==",
|
"integrity": "sha512-sKq+9r1Mm4efXW1FCk7hFSeJo4QKreL/tTbR0rz/qx/r1Oa2VV83LTA/H/MuCOX7uCIJmQVRKBcbmWoySjAnSg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@octokit/openapi-types": "^26.0.0"
|
"@octokit/openapi-types": "^27.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@opentelemetry/api": {
|
"@opentelemetry/api": {
|
||||||
@@ -7126,9 +7126,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "24.9.1",
|
"version": "24.10.1",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.9.1.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.1.tgz",
|
||||||
"integrity": "sha512-QoiaXANRkSXK6p0Duvt56W208du4P9Uye9hWLWgGMDTEoKPhuenzNcC4vGUmrNkiOKTlIrBoyNQYNpSwfEZXSg==",
|
"integrity": "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"undici-types": "~7.16.0"
|
"undici-types": "~7.16.0"
|
||||||
}
|
}
|
||||||
|
|||||||
17
package.json
17
package.json
@@ -17,7 +17,12 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/astral-sh/setup-uv.git"
|
"url": "git+https://github.com/astral-sh/setup-uv.git"
|
||||||
},
|
},
|
||||||
"keywords": ["actions", "python", "setup", "uv"],
|
"keywords": [
|
||||||
|
"actions",
|
||||||
|
"python",
|
||||||
|
"setup",
|
||||||
|
"uv"
|
||||||
|
],
|
||||||
"author": "@eifinger",
|
"author": "@eifinger",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -27,17 +32,17 @@
|
|||||||
"@actions/glob": "^0.5.0",
|
"@actions/glob": "^0.5.0",
|
||||||
"@actions/io": "^1.1.3",
|
"@actions/io": "^1.1.3",
|
||||||
"@actions/tool-cache": "^2.0.2",
|
"@actions/tool-cache": "^2.0.2",
|
||||||
"@octokit/core": "^7.0.5",
|
"@octokit/core": "^7.0.6",
|
||||||
"@octokit/plugin-paginate-rest": "^13.2.1",
|
"@octokit/plugin-paginate-rest": "^14.0.0",
|
||||||
"@octokit/plugin-rest-endpoint-methods": "^16.1.1",
|
"@octokit/plugin-rest-endpoint-methods": "^17.0.0",
|
||||||
"@renovatebot/pep440": "^4.2.1",
|
"@renovatebot/pep440": "^4.2.1",
|
||||||
"smol-toml": "^1.4.2",
|
"smol-toml": "^1.4.2",
|
||||||
"undici": "5.28.5"
|
"undici": "5.28.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "2.3.0",
|
"@biomejs/biome": "2.3.7",
|
||||||
"@types/js-yaml": "^4.0.9",
|
"@types/js-yaml": "^4.0.9",
|
||||||
"@types/node": "^24.9.1",
|
"@types/node": "^24.10.1",
|
||||||
"@types/semver": "^7.7.1",
|
"@types/semver": "^7.7.1",
|
||||||
"@vercel/ncc": "^0.38.4",
|
"@vercel/ncc": "^0.38.4",
|
||||||
"jest": "^30.2.0",
|
"jest": "^30.2.0",
|
||||||
|
|||||||
15
src/cache/restore-cache.ts
vendored
15
src/cache/restore-cache.ts
vendored
@@ -13,15 +13,16 @@ import {
|
|||||||
restoreCache as shouldRestoreCache,
|
restoreCache as shouldRestoreCache,
|
||||||
workingDirectory,
|
workingDirectory,
|
||||||
} from "../utils/inputs";
|
} from "../utils/inputs";
|
||||||
import { getArch, getPlatform } from "../utils/platforms";
|
import { getArch, getOSNameVersion, getPlatform } from "../utils/platforms";
|
||||||
|
|
||||||
export const STATE_CACHE_KEY = "cache-key";
|
export const STATE_CACHE_KEY = "cache-key";
|
||||||
export const STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
export const STATE_CACHE_MATCHED_KEY = "cache-matched-key";
|
||||||
const CACHE_VERSION = "1";
|
const CACHE_VERSION = "2";
|
||||||
|
|
||||||
export async function restoreCache(): Promise<void> {
|
export async function restoreCache(): Promise<void> {
|
||||||
const cacheKey = await computeKeys();
|
const cacheKey = await computeKeys();
|
||||||
core.saveState(STATE_CACHE_KEY, cacheKey);
|
core.saveState(STATE_CACHE_KEY, cacheKey);
|
||||||
|
core.setOutput("cache-key", cacheKey);
|
||||||
|
|
||||||
if (!shouldRestoreCache) {
|
if (!shouldRestoreCache) {
|
||||||
core.info("restore-cache is false. Skipping restore cache step.");
|
core.info("restore-cache is false. Skipping restore cache step.");
|
||||||
@@ -32,7 +33,12 @@ export async function restoreCache(): Promise<void> {
|
|||||||
core.info(
|
core.info(
|
||||||
`Trying to restore uv cache from GitHub Actions cache with key: ${cacheKey}`,
|
`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) {
|
if (cachePython) {
|
||||||
cachePaths.push(pythonDir);
|
cachePaths.push(pythonDir);
|
||||||
}
|
}
|
||||||
@@ -67,9 +73,10 @@ async function computeKeys(): Promise<string> {
|
|||||||
const suffix = cacheSuffix ? `-${cacheSuffix}` : "";
|
const suffix = cacheSuffix ? `-${cacheSuffix}` : "";
|
||||||
const pythonVersion = await getPythonVersion();
|
const pythonVersion = await getPythonVersion();
|
||||||
const platform = await getPlatform();
|
const platform = await getPlatform();
|
||||||
|
const osNameVersion = getOSNameVersion();
|
||||||
const pruned = pruneCache ? "-pruned" : "";
|
const pruned = pruneCache ? "-pruned" : "";
|
||||||
const python = cachePython ? "-py" : "";
|
const python = cachePython ? "-py" : "";
|
||||||
return `setup-uv-${CACHE_VERSION}-${getArch()}-${platform}-${pythonVersion}${pruned}${python}${cacheDependencyPathHash}${suffix}`;
|
return `setup-uv-${CACHE_VERSION}-${getArch()}-${platform}-${osNameVersion}-${pythonVersion}${pruned}${python}${cacheDependencyPathHash}${suffix}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getPythonVersion(): Promise<string> {
|
async function getPythonVersion(): Promise<string> {
|
||||||
|
|||||||
@@ -1,5 +1,41 @@
|
|||||||
// AUTOGENERATED_DO_NOT_EDIT
|
// AUTOGENERATED_DO_NOT_EDIT
|
||||||
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
export const KNOWN_CHECKSUMS: { [key: string]: string } = {
|
||||||
|
"aarch64-apple-darwin-0.9.17":
|
||||||
|
"a1e1464aa1d04d5e5fa700aa2f2e10397d1114e835dbd56be25ba65c9a31bd99",
|
||||||
|
"aarch64-pc-windows-msvc-0.9.17":
|
||||||
|
"28423a27ad1d82347c00411a6792567119b3c1cfe775d3312c0e08a6b489be5b",
|
||||||
|
"aarch64-unknown-linux-gnu-0.9.17":
|
||||||
|
"e9eba97b7169e47fd3c926e409f0b714820f0befc23b3ae062780586a793e4cc",
|
||||||
|
"aarch64-unknown-linux-musl-0.9.17":
|
||||||
|
"f6f48a301f8e855765af42ef50257af0cebc9c5439dfdcbc188142941aea45ca",
|
||||||
|
"arm-unknown-linux-musleabihf-0.9.17":
|
||||||
|
"4d80f3509b6351882a64c1dd08f72a80e2b27f055a996295ef1f935bc3efcdde",
|
||||||
|
"armv7-unknown-linux-gnueabihf-0.9.17":
|
||||||
|
"30a6c041429e2176062573f33c5c44307cb756264224bcb005723a6e18cff34c",
|
||||||
|
"armv7-unknown-linux-musleabihf-0.9.17":
|
||||||
|
"6b034dc63735c2a4541430cbece688e28bce51a09e2ad1ea2c1646a6b24cf1c3",
|
||||||
|
"i686-pc-windows-msvc-0.9.17":
|
||||||
|
"6e93737710e31bf73fcc3b4b6da616bd341e9c6baf1162ddc1e7f65884063f50",
|
||||||
|
"i686-unknown-linux-gnu-0.9.17":
|
||||||
|
"d2426a6d10bedd83524599bb0fbe0ba22e681ed45e892b4fd29086b424daf02a",
|
||||||
|
"i686-unknown-linux-musl-0.9.17":
|
||||||
|
"988c7702a2e88092b30f16fb7f8c18284a8062044cf57e6abd1dfeae82aa6377",
|
||||||
|
"powerpc64-unknown-linux-gnu-0.9.17":
|
||||||
|
"5ad301d9fa15e0791ef96abd83f0ed97e7ac1191b4b7578caaad3151633fb17c",
|
||||||
|
"powerpc64le-unknown-linux-gnu-0.9.17":
|
||||||
|
"4958185c5febf22f1c4c84944334cb0d9262c2c2c93faf30c1e0abd26f9d94fa",
|
||||||
|
"riscv64gc-unknown-linux-gnu-0.9.17":
|
||||||
|
"feed7cc7b5fc8a99e683ee1761cf99e3da12b60a2a413b7b87a0447726a66369",
|
||||||
|
"s390x-unknown-linux-gnu-0.9.17":
|
||||||
|
"a297518913a0f0e4af1bce434440ca9d415728aaf828c7def0e913aa5c46da8f",
|
||||||
|
"x86_64-apple-darwin-0.9.17":
|
||||||
|
"249e7fb18d45c06ba283c48f0a8e586ecc5fbb9e8dad0923c4169a7c4db815b2",
|
||||||
|
"x86_64-pc-windows-msvc-0.9.17":
|
||||||
|
"ebc76197bf3e1a58f9dac6f70f49b0ebd3e6907ab35289ce228bce5ba8a3f201",
|
||||||
|
"x86_64-unknown-linux-gnu-0.9.17":
|
||||||
|
"0114d54f9aafd07516cf1cadfe72afa970f5fd293fbe82dd924b8a7b42c984d8",
|
||||||
|
"x86_64-unknown-linux-musl-0.9.17":
|
||||||
|
"ab616c1851e7b1ed377a9ff3997dcee184bea7eda0b20bc8607abba6c469cbad",
|
||||||
"aarch64-apple-darwin-0.9.16":
|
"aarch64-apple-darwin-0.9.16":
|
||||||
"db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
"db6d7fb299c35dc9bbbeb89cfa9aa55a9584f637d370c0a4c62a50df9c9294a7",
|
||||||
"aarch64-pc-windows-msvc-0.9.16":
|
"aarch64-pc-windows-msvc-0.9.16":
|
||||||
|
|||||||
@@ -59,10 +59,18 @@ async function saveCache(): Promise<void> {
|
|||||||
await pruneCache();
|
await pruneCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
let actualCachePath = cacheLocalPath;
|
if (cacheLocalPath === undefined) {
|
||||||
if (process.env.UV_CACHE_DIR && process.env.UV_CACHE_DIR !== cacheLocalPath) {
|
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(
|
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;
|
actualCachePath = process.env.UV_CACHE_DIR;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,11 +8,11 @@ import {
|
|||||||
resolveVersion,
|
resolveVersion,
|
||||||
tryGetFromToolCache,
|
tryGetFromToolCache,
|
||||||
} from "./download/download-version";
|
} from "./download/download-version";
|
||||||
import { getConfigValueFromTomlFile } from "./utils/config-file";
|
|
||||||
import { STATE_UV_PATH, STATE_UV_VERSION } from "./utils/constants";
|
import { STATE_UV_PATH, STATE_UV_VERSION } from "./utils/constants";
|
||||||
import {
|
import {
|
||||||
activateEnvironment as activateEnvironmentInput,
|
activateEnvironment as activateEnvironmentInput,
|
||||||
addProblemMatchers,
|
addProblemMatchers,
|
||||||
|
CacheLocalSource,
|
||||||
cacheLocalPath,
|
cacheLocalPath,
|
||||||
checkSum,
|
checkSum,
|
||||||
enableCache,
|
enableCache,
|
||||||
@@ -252,16 +252,15 @@ async function activateEnvironment(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setCacheDir(): void {
|
function setCacheDir(): void {
|
||||||
if (enableCache) {
|
if (cacheLocalPath !== undefined) {
|
||||||
const cacheDirFromConfig = getConfigValueFromTomlFile("", "cache-dir");
|
if (cacheLocalPath.source === CacheLocalSource.Config) {
|
||||||
if (cacheDirFromConfig !== undefined) {
|
|
||||||
core.info(
|
core.info(
|
||||||
"Using cache-dir from uv config file, not modifying UV_CACHE_DIR",
|
"Using cache-dir from uv config file, not modifying UV_CACHE_DIR",
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
core.exportVariable("UV_CACHE_DIR", cacheLocalPath);
|
core.exportVariable("UV_CACHE_DIR", cacheLocalPath.path);
|
||||||
core.info(`Set UV_CACHE_DIR to ${cacheLocalPath}`);
|
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 * as core from "@actions/core";
|
||||||
import { getConfigValueFromTomlFile } from "./config-file";
|
import { getConfigValueFromTomlFile } from "./config-file";
|
||||||
|
|
||||||
|
export enum CacheLocalSource {
|
||||||
|
Input,
|
||||||
|
Config,
|
||||||
|
Env,
|
||||||
|
Default,
|
||||||
|
}
|
||||||
|
|
||||||
export const workingDirectory = core.getInput("working-directory");
|
export const workingDirectory = core.getInput("working-directory");
|
||||||
export const version = core.getInput("version");
|
export const version = core.getInput("version");
|
||||||
export const versionFile = getVersionFile();
|
export const versionFile = getVersionFile();
|
||||||
@@ -80,32 +87,51 @@ function getToolDir(): string | undefined {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCacheLocalPath(): string {
|
function getCacheLocalPath():
|
||||||
|
| {
|
||||||
|
path: string;
|
||||||
|
source: CacheLocalSource;
|
||||||
|
}
|
||||||
|
| undefined {
|
||||||
const cacheLocalPathInput = core.getInput("cache-local-path");
|
const cacheLocalPathInput = core.getInput("cache-local-path");
|
||||||
if (cacheLocalPathInput !== "") {
|
if (cacheLocalPathInput !== "") {
|
||||||
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
const tildeExpanded = expandTilde(cacheLocalPathInput);
|
||||||
return resolveRelativePath(tildeExpanded);
|
return {
|
||||||
|
path: resolveRelativePath(tildeExpanded),
|
||||||
|
source: CacheLocalSource.Input,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
const cacheDirFromConfig = getCacheDirFromConfig();
|
const cacheDirFromConfig = getCacheDirFromConfig();
|
||||||
if (cacheDirFromConfig !== undefined) {
|
if (cacheDirFromConfig !== undefined) {
|
||||||
return cacheDirFromConfig;
|
return { path: cacheDirFromConfig, source: CacheLocalSource.Config };
|
||||||
}
|
}
|
||||||
if (process.env.UV_CACHE_DIR !== undefined) {
|
if (process.env.UV_CACHE_DIR !== undefined) {
|
||||||
core.info(`UV_CACHE_DIR is already set to ${process.env.UV_CACHE_DIR}`);
|
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 (getEnableCache()) {
|
||||||
if (process.env.RUNNER_TEMP !== undefined) {
|
if (process.env.RUNNER_ENVIRONMENT === "github-hosted") {
|
||||||
return `${process.env.RUNNER_TEMP}${path.sep}setup-uv-cache`;
|
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(
|
if (process.platform === "win32") {
|
||||||
"Could not determine UV_CACHE_DIR. Please make sure RUNNER_TEMP is set or provide the cache-local-path input",
|
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 {
|
function getCacheDirFromConfig(): string | undefined {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import fs from "node:fs";
|
||||||
|
import os from "node:os";
|
||||||
import * as core from "@actions/core";
|
import * as core from "@actions/core";
|
||||||
import * as exec from "@actions/exec";
|
import * as exec from "@actions/exec";
|
||||||
export type Platform =
|
export type Platform =
|
||||||
@@ -74,3 +76,71 @@ async function isMuslOs(): Promise<boolean> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns OS name and version for cache key differentiation.
|
||||||
|
* Examples: "ubuntu-22.04", "macos-14", "windows-2022"
|
||||||
|
* Throws if OS detection fails.
|
||||||
|
*/
|
||||||
|
export function getOSNameVersion(): string {
|
||||||
|
const platform = process.platform;
|
||||||
|
|
||||||
|
if (platform === "linux") {
|
||||||
|
return getLinuxOSNameVersion();
|
||||||
|
}
|
||||||
|
if (platform === "darwin") {
|
||||||
|
return getMacOSNameVersion();
|
||||||
|
}
|
||||||
|
if (platform === "win32") {
|
||||||
|
return getWindowsNameVersion();
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Error(`Unsupported platform: ${platform}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getLinuxOSNameVersion(): string {
|
||||||
|
const files = ["/etc/os-release", "/usr/lib/os-release"];
|
||||||
|
|
||||||
|
for (const file of files) {
|
||||||
|
try {
|
||||||
|
const content = fs.readFileSync(file, "utf8");
|
||||||
|
const id = parseOsReleaseValue(content, "ID");
|
||||||
|
const versionId = parseOsReleaseValue(content, "VERSION_ID");
|
||||||
|
|
||||||
|
if (id && versionId) {
|
||||||
|
return `${id}-${versionId}`;
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
// Try next file
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Error(
|
||||||
|
"Failed to determine Linux distribution. " +
|
||||||
|
"Could not read /etc/os-release or /usr/lib/os-release",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function parseOsReleaseValue(content: string, key: string): string | undefined {
|
||||||
|
const regex = new RegExp(`^${key}=["']?([^"'\\n]*)["']?$`, "m");
|
||||||
|
const match = content.match(regex);
|
||||||
|
return match?.[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
function getMacOSNameVersion(): string {
|
||||||
|
const darwinVersion = Number.parseInt(os.release().split(".")[0], 10);
|
||||||
|
if (Number.isNaN(darwinVersion)) {
|
||||||
|
throw new Error(`Failed to parse macOS version from: ${os.release()}`);
|
||||||
|
}
|
||||||
|
const macosVersion = darwinVersion - 9;
|
||||||
|
return `macos-${macosVersion}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getWindowsNameVersion(): string {
|
||||||
|
const version = os.version();
|
||||||
|
const match = version.match(/Windows(?: Server)? (\d+)/);
|
||||||
|
if (!match) {
|
||||||
|
throw new Error(`Failed to parse Windows version from: ${version}`);
|
||||||
|
}
|
||||||
|
return `windows-${match[1]}`;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,130 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"arch": "aarch64",
|
||||||
|
"artifactName": "uv-aarch64-apple-darwin.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-aarch64-apple-darwin.tar.gz",
|
||||||
|
"platform": "apple-darwin",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "aarch64",
|
||||||
|
"artifactName": "uv-aarch64-pc-windows-msvc.zip",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-aarch64-pc-windows-msvc.zip",
|
||||||
|
"platform": "pc-windows-msvc",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "aarch64",
|
||||||
|
"artifactName": "uv-aarch64-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-aarch64-unknown-linux-gnu.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnu",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "aarch64",
|
||||||
|
"artifactName": "uv-aarch64-unknown-linux-musl.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-aarch64-unknown-linux-musl.tar.gz",
|
||||||
|
"platform": "unknown-linux-musl",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "arm",
|
||||||
|
"artifactName": "uv-arm-unknown-linux-musleabihf.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-arm-unknown-linux-musleabihf.tar.gz",
|
||||||
|
"platform": "unknown-linux-musleabihf",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "armv7",
|
||||||
|
"artifactName": "uv-armv7-unknown-linux-gnueabihf.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-armv7-unknown-linux-gnueabihf.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnueabihf",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "armv7",
|
||||||
|
"artifactName": "uv-armv7-unknown-linux-musleabihf.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-armv7-unknown-linux-musleabihf.tar.gz",
|
||||||
|
"platform": "unknown-linux-musleabihf",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "i686",
|
||||||
|
"artifactName": "uv-i686-pc-windows-msvc.zip",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-i686-pc-windows-msvc.zip",
|
||||||
|
"platform": "pc-windows-msvc",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "i686",
|
||||||
|
"artifactName": "uv-i686-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-i686-unknown-linux-gnu.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnu",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "i686",
|
||||||
|
"artifactName": "uv-i686-unknown-linux-musl.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-i686-unknown-linux-musl.tar.gz",
|
||||||
|
"platform": "unknown-linux-musl",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "powerpc64",
|
||||||
|
"artifactName": "uv-powerpc64-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-powerpc64-unknown-linux-gnu.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnu",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "powerpc64le",
|
||||||
|
"artifactName": "uv-powerpc64le-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-powerpc64le-unknown-linux-gnu.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnu",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "riscv64gc",
|
||||||
|
"artifactName": "uv-riscv64gc-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-riscv64gc-unknown-linux-gnu.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnu",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "s390x",
|
||||||
|
"artifactName": "uv-s390x-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-s390x-unknown-linux-gnu.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnu",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "x86_64",
|
||||||
|
"artifactName": "uv-x86_64-apple-darwin.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-x86_64-apple-darwin.tar.gz",
|
||||||
|
"platform": "apple-darwin",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "x86_64",
|
||||||
|
"artifactName": "uv-x86_64-pc-windows-msvc.zip",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-x86_64-pc-windows-msvc.zip",
|
||||||
|
"platform": "pc-windows-msvc",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "x86_64",
|
||||||
|
"artifactName": "uv-x86_64-unknown-linux-gnu.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-x86_64-unknown-linux-gnu.tar.gz",
|
||||||
|
"platform": "unknown-linux-gnu",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"arch": "x86_64",
|
||||||
|
"artifactName": "uv-x86_64-unknown-linux-musl.tar.gz",
|
||||||
|
"downloadUrl": "https://github.com/astral-sh/uv/releases/download/0.9.17/uv-x86_64-unknown-linux-musl.tar.gz",
|
||||||
|
"platform": "unknown-linux-musl",
|
||||||
|
"version": "0.9.17"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"arch": "aarch64",
|
"arch": "aarch64",
|
||||||
"artifactName": "uv-aarch64-apple-darwin.tar.gz",
|
"artifactName": "uv-aarch64-apple-darwin.tar.gz",
|
||||||
|
|||||||
Reference in New Issue
Block a user