Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

fix(ci): audit declared dependencies, not the +cpu local install

Nandakishorf59380276c48
diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml
index 656c9380..e6815264 100644
--- a/.github/workflows/security.yml
+++ b/.github/workflows/security.yml
@@ -32,11 +32,20 @@ jobs:
with:
python-version: "3.11"
- run: pip install pip-audit
- - name: pip-audit
+ - name: Audit declared dependencies
run: |
- pip install torch --index-url https://download.pytorch.org/whl/cpu
- pip install -e .
- pip-audit --strict --desc
+ # Audit what the package DECLARES, not a local install. Installing torch from the
+ # PyTorch CPU index yields a local version (2.14.0+cpu) that does not exist on PyPI,
+ # so pip-audit cannot resolve it and --strict fails the job on that alone.
+ python - <<'PY' > requirements-audit.txt
+ import re
+ src = open("pyproject.toml").read()
+ block = re.search(r"dependencies = \[(.*?)\]", src, re.S).group(1)
+ for dep in re.findall(r'"([^"]+)"', block):
+ print(dep)
+ PY
+ cat requirements-audit.txt
+ pip-audit --strict --desc -r requirements-audit.txt
codeql:
name: CodeQL