mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-11-19 23:45:59 +00:00
Adds `require-checksums`, which enforces the "intrinsic or explicitly provided checksum" idea. See #1032. <details> <summary>Automated notes</summary> Add the opt-in input `require-checksums`. When enabled, setup-uv verifies the archive against the workflow's `checksum` input or the digest bundled for the resolved uv version, architecture, and platform. If neither is available, setup fails before downloading the archive. By default, setup-uv continues to accept manifest checksums as it does today. The setting also applies to custom manifests, which can still supply download URLs. On persistent runners, strict mode keys tool-cache entries by the expected archive digest so a previous manifest-verified installation cannot bypass the check. Closes #1032. Builds on #1033. ## Validation - `npm ci --ignore-scripts` and `npm run all` passed under Node 24 (182 tests). - The packaged-action regression test installs a custom build into a temporary runner tool cache. It checks that strict mode rejects a manifest-only version even with a warm cache, reuses a verified installation for the same digest, and rejects a changed digest or a custom build that conflicts with the bundled digest. </details> --------- Signed-off-by: William Woodruff <william@yossarian.net>
94 lines
1.5 KiB
YAML
94 lines
1.5 KiB
YAML
# See https://github.com/typesafegithub/github-actions-typing
|
|
|
|
inputs:
|
|
version:
|
|
type: string
|
|
version-file:
|
|
type: string
|
|
python-version:
|
|
type: string
|
|
python-arch:
|
|
type: string
|
|
activate-environment:
|
|
type: boolean
|
|
venv-path:
|
|
type: string
|
|
no-project:
|
|
type: boolean
|
|
working-directory:
|
|
type: string
|
|
checksum:
|
|
type: string
|
|
require-checksums:
|
|
type: boolean
|
|
github-token:
|
|
type: string
|
|
enable-cache:
|
|
type: enum
|
|
allowed-values:
|
|
- "true"
|
|
- "false"
|
|
- auto
|
|
cache-dependency-glob:
|
|
type: list
|
|
separator: "\n"
|
|
list-item:
|
|
type: string
|
|
restore-cache:
|
|
type: boolean
|
|
save-cache:
|
|
type: enum
|
|
allowed-values:
|
|
- "true"
|
|
- "false"
|
|
- auto
|
|
cache-suffix:
|
|
type: string
|
|
cache-local-path:
|
|
type: string
|
|
prune-cache:
|
|
type: boolean
|
|
cache-python:
|
|
type: boolean
|
|
ignore-nothing-to-cache:
|
|
type: boolean
|
|
ignore-empty-workdir:
|
|
type: boolean
|
|
tool-dir:
|
|
type: string
|
|
tool-bin-dir:
|
|
type: string
|
|
manifest-file:
|
|
type: string
|
|
download-from-astral-mirror:
|
|
type: boolean
|
|
add-problem-matchers:
|
|
type: boolean
|
|
quiet:
|
|
type: boolean
|
|
resolution-strategy:
|
|
type: enum
|
|
allowed-values:
|
|
- highest
|
|
- lowest
|
|
|
|
outputs:
|
|
uv-version:
|
|
type: string
|
|
uv-path:
|
|
type: string
|
|
uvx-path:
|
|
type: string
|
|
cache-hit:
|
|
type: boolean
|
|
cache-key:
|
|
type: string
|
|
venv:
|
|
type: string
|
|
python-version:
|
|
type: string
|
|
python-runtime-id:
|
|
type: string
|
|
python-cache-hit:
|
|
type: boolean
|