Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

CI: always run Studio export/load-orchestrator and the security audit (#8086)

Daniel Han4c1ee96287c2
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
index 15be6cb7167..393220d2e7e 100644
--- a/.github/workflows/security-audit.yml
+++ b/.github/workflows/security-audit.yml
@@ -2,14 +2,15 @@
# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved.
# Multi-language supply-chain audit. Triggers:
-# - PRs touching any dependency manifest (Python / npm / Cargo), a
-# scanner or its allowlist baseline, or this workflow file,
-# - push to main / pip,
+# - every pull request, deliberately not path-filtered, so nothing
+# slips past the audit by touching only files outside the
+# dependency manifests,
+# - push to main,
# - nightly @ 04:13 UTC so newly-published advisories surface even
# when no PR opens,
# - workflow_dispatch for ad-hoc invocations.
#
-# Two jobs:
+# Six jobs:
# - advisory-audit: one runner that runs pip-audit + npm audit +
# cargo audit back-to-back. All three are
# advisory-DB lookups -- fast, lockfile-driven,
@@ -24,6 +25,12 @@
# independent so a CVE-DB hit in advisory-audit
# does not block the supply-chain pattern scan
# (or vice versa).
+# - npm-scan-packages: npm tarball content scan, no npm install.
+# - workflow-trigger-lint:
+# bans pull_request_target + shared cache keys.
+# - tests-security: pytest tests/security regression suite.
+# - npm-provenance-and-install-scripts:
+# npm audit signatures + new-postinstall gate.
#
# All steps are non-blocking initially. The default branch already
# carries a known-vuln backlog (the dependabot banner shows 17 today,
@@ -49,32 +56,8 @@ name: Security audit
on:
pull_request:
- paths:
- - 'studio/backend/requirements/**'
- - 'studio/frontend/package.json'
- - 'studio/frontend/package-lock.json'
- - 'studio/src-tauri/Cargo.toml'
- - 'studio/src-tauri/Cargo.lock'
- - 'pyproject.toml'
- - 'scripts/scan_packages.py'
- - 'scripts/scan_packages_baseline.json'
- - 'scripts/scan_npm_packages.py'
- - 'scripts/scan_npm_packages_baseline.json'
- - '.github/workflows/security-audit.yml'
push:
branches: [main]
- paths:
- - 'studio/backend/requirements/**'
- - 'studio/frontend/package.json'
- - 'studio/frontend/package-lock.json'
- - 'studio/src-tauri/Cargo.toml'
- - 'studio/src-tauri/Cargo.lock'
- - 'pyproject.toml'
- - 'scripts/scan_packages.py'
- - 'scripts/scan_packages_baseline.json'
- - 'scripts/scan_npm_packages.py'
- - 'scripts/scan_npm_packages_baseline.json'
- - '.github/workflows/security-audit.yml'
schedule:
- cron: '13 4 * * *' # 04:13 UTC daily, off the cron rush
workflow_dispatch:
@@ -557,7 +540,7 @@ jobs:
# / tokens / cred files committed accidentally. --only-verified
# filters out probabilistic findings, so we only flag tokens
# that the source provider confirmed are live. On push to main
- # / pip we scan the full repo; on PR we scan base..head.
+ # we scan the full repo; on PR we scan base..head.
# SHA-pinned for the same reason as harden-runner above.
# v3.95.2 commit:
# ─────────────────────────────────────────────────────────────
diff --git a/.github/workflows/studio-export-capability-ci.yml b/.github/workflows/studio-export-capability-ci.yml
index d48ded36260..1953b2be7fc 100644
--- a/.github/workflows/studio-export-capability-ci.yml
+++ b/.github/workflows/studio-export-capability-ci.yml
@@ -22,13 +22,6 @@ on:
- '.github/workflows/studio-export-capability-ci.yml'
push:
branches: [main]
- paths:
- - 'studio/backend/utils/hardware/hardware.py'
- - 'studio/backend/core/export/export.py'
- - 'studio/backend/routes/export.py'
- - 'studio/backend/main.py'
- - 'studio/backend/tests/test_export_capability.py'
- - '.github/workflows/studio-export-capability-ci.yml'
workflow_dispatch:
concurrency:
diff --git a/.github/workflows/studio-load-orchestrator-ci.yml b/.github/workflows/studio-load-orchestrator-ci.yml
index 8710efc2bde..fb8121ec1a7 100644
--- a/.github/workflows/studio-load-orchestrator-ci.yml
+++ b/.github/workflows/studio-load-orchestrator-ci.yml
@@ -25,11 +25,6 @@ on:
- '.github/workflows/studio-load-orchestrator-ci.yml'
push:
branches: [main]
- paths:
- - 'studio/backend/routes/inference.py'
- - 'studio/backend/core/inference/llama_cpp.py'
- - 'tests/studio/load_freeze/**'
- - '.github/workflows/studio-load-orchestrator-ci.yml'
workflow_dispatch:
concurrency: