Skip to content

Apache Lucene open-source search software

ci: pin zizmor nightly online run (#15876)

Robert Muir4e743856ba02
diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml
index 241088cf6bd..d804c2f9d93 100644
--- a/.github/workflows/actions.yml
+++ b/.github/workflows/actions.yml
@@ -20,12 +20,23 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
+
- name: Install the latest version of uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ with:
+ version-file: dev-tools/pyproject.toml
+ enable-cache: true
+ save-cache: false
+ cache-dependency-glob: dev-tools/uv.lock
+ cache-suffix: dev-tools
+
- name: Run zizmor
- run: uvx zizmor --pedantic --format=sarif . > results.sarif
+ run: uv run zizmor --pedantic --format=sarif . > results.sarif
env:
+ UV_PROJECT: dev-tools
+ UV_FROZEN: "1"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
with:
diff --git a/.github/workflows/run-checks-all.yml b/.github/workflows/run-checks-all.yml
index a15379f573c..c352ed655e5 100644
--- a/.github/workflows/run-checks-all.yml
+++ b/.github/workflows/run-checks-all.yml
@@ -47,7 +47,7 @@ jobs:
- name: Setup uv
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
- version: "0.9.27"
+ version-file: dev-tools/pyproject.toml
enable-cache: true
prune-cache: false
save-cache: ${{ github.event_name != 'pull_request' }}
diff --git a/dev-tools/pyproject.toml b/dev-tools/pyproject.toml
index 4c11a04ef74..c8154645c90 100644
--- a/dev-tools/pyproject.toml
+++ b/dev-tools/pyproject.toml
@@ -22,3 +22,6 @@ dev = [
# validates various
"ast-grep-cli==0.42.0",
]
+
+[tool.uv]
+required-version = ">=0.9.27"