Skip to content

Commit 8051633

Browse files
committed
fix(ci): audit every web workspace in shared gate
1 parent cecfea5 commit 8051633

19 files changed

Lines changed: 4156 additions & 3821 deletions

.github/workflows/ci.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ permissions:
1414
contents: read
1515

1616
jobs:
17+
fast-gate:
18+
uses: ./.github/workflows/fast-gate.yaml
19+
1720
# ---------------------------------------------------------------------------
1821
# Linux: compile + test KVM hypervisor backend (cfg(target_os = "linux"))
1922
# ---------------------------------------------------------------------------
@@ -143,9 +146,6 @@ jobs:
143146
- name: Install release site dependencies
144147
run: cd release-site && pnpm install --frozen-lockfile
145148

146-
- name: Frontend dependency audit
147-
run: python3 scripts/audit-pnpm-bulk.py --project-dir frontend
148-
149149
- name: Install prebuilt Rust tools
150150
uses: taiki-e/install-action@07b4745e0c39a41822af610387492e3e53aa222b
151151
with:
@@ -464,25 +464,28 @@ jobs:
464464
# ---------------------------------------------------------------------------
465465
pr-gate:
466466
runs-on: ubuntu-latest
467-
needs: [test-linux, test, test-install, docs-build, site-build, release-site-build]
467+
needs: [fast-gate, test-linux, test, test-install, docs-build, site-build, release-site-build]
468468
if: ${{ always() }}
469469
steps:
470470
- name: Require all CI jobs
471471
env:
472+
FAST_GATE_RESULT: ${{ needs.fast-gate.result }}
472473
TEST_LINUX_RESULT: ${{ needs.test-linux.result }}
473474
TEST_MACOS_RESULT: ${{ needs.test.result }}
474475
TEST_INSTALL_RESULT: ${{ needs.test-install.result }}
475476
DOCS_BUILD_RESULT: ${{ needs.docs-build.result }}
476477
SITE_BUILD_RESULT: ${{ needs.site-build.result }}
477478
RELEASE_SITE_BUILD_RESULT: ${{ needs.release-site-build.result }}
478479
run: |
480+
echo "fast-gate: $FAST_GATE_RESULT"
479481
echo "test-linux: $TEST_LINUX_RESULT"
480482
echo "test: $TEST_MACOS_RESULT"
481483
echo "test-install: $TEST_INSTALL_RESULT"
482484
echo "docs-build: $DOCS_BUILD_RESULT"
483485
echo "site-build: $SITE_BUILD_RESULT"
484486
echo "release-site-build: $RELEASE_SITE_BUILD_RESULT"
485487
488+
test "$FAST_GATE_RESULT" = success
486489
test "$TEST_LINUX_RESULT" = success
487490
test "$TEST_MACOS_RESULT" = success
488491
test "$TEST_INSTALL_RESULT" = success

.github/workflows/fast-gate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install prebuilt Rust gate tools
4545
uses: taiki-e/install-action@07b4745e0c39a41822af610387492e3e53aa222b
4646
with:
47-
tool: cargo-audit@0.22.1,cargo-llvm-cov@0.8.5,b3sum@1.8.5,cargo-sbom,tauri-cli
47+
tool: cargo-audit@0.22.1,cargo-llvm-cov@0.8.5,b3sum@1.8.5,cargo-sbom@0.10.0,tauri-cli@2.11.0
4848

4949
- name: Run shared static module
5050
run: just _test-static

.github/workflows/security-audit.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ jobs:
2525
with:
2626
node-version: 24
2727
cache: pnpm
28-
cache-dependency-path: frontend/pnpm-lock.yaml
28+
cache-dependency-path: |
29+
frontend/pnpm-lock.yaml
30+
docs/pnpm-lock.yaml
31+
site/pnpm-lock.yaml
32+
release-site/pnpm-lock.yaml
2933
3034
- uses: taiki-e/install-action@07b4745e0c39a41822af610387492e3e53aa222b
3135
with:
@@ -37,8 +41,11 @@ jobs:
3741
- name: RustSec audit (blocking security signal)
3842
run: cargo audit
3943

40-
- name: Install frontend dependencies
41-
run: pnpm --dir frontend install --frozen-lockfile
44+
- name: Install all web dependencies
45+
run: |
46+
for project in frontend docs site release-site; do
47+
pnpm --dir "$project" install --frozen-lockfile
48+
done
4249
4350
- name: npm bulk advisory audit (blocking security signal)
44-
run: python3 scripts/audit-pnpm-bulk.py --project-dir frontend
51+
run: python3 scripts/audit-pnpm-bulk.py

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Restored fail-closed release inputs and early gates: CI now caches
1313
manifest-selected native profile blobs by recorded digest, installed
1414
Doctor/Winterfell boots real assets with retained failure evidence, blocking
15-
audits/Clippy/frontend checks run before builders, and the frontend uses its
16-
checked-in semantic theme without a Preline dependency.
15+
audits/Clippy/web checks run before builders, all JavaScript workspaces audit
16+
clean, and the frontend uses its checked-in semantic theme without a Preline
17+
dependency.
1718

1819
### Added
1920

docs/astro.config.mjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,36 @@ export default defineConfig({
2929
{ slug: 'getting-started' },
3030
{
3131
label: 'Usage',
32-
autogenerate: { directory: 'usage' },
32+
items: [{ autogenerate: { directory: 'usage' } }],
3333
},
3434
{
3535
label: 'Architecture',
36-
autogenerate: { directory: 'architecture' },
36+
items: [{ autogenerate: { directory: 'architecture' } }],
3737
},
3838
{
3939
label: 'Security',
40-
autogenerate: { directory: 'security' },
40+
items: [{ autogenerate: { directory: 'security' } }],
4141
},
4242
{
4343
label: 'Benchmarks',
44-
autogenerate: { directory: 'benchmarks' },
44+
items: [{ autogenerate: { directory: 'benchmarks' } }],
4545
},
4646
{
4747
label: 'Debugging',
48-
autogenerate: { directory: 'debugging' },
48+
items: [{ autogenerate: { directory: 'debugging' } }],
4949
},
5050
{
5151
label: 'Gotchas / FAQ',
52-
autogenerate: { directory: 'gotchas' },
52+
items: [{ autogenerate: { directory: 'gotchas' } }],
5353
},
5454
{
5555
label: 'Development',
56-
autogenerate: { directory: 'development' },
56+
items: [{ autogenerate: { directory: 'development' } }],
5757
},
5858
{
5959
label: 'Releases',
6060
collapsed: true,
61-
autogenerate: { directory: 'releases' },
61+
items: [{ autogenerate: { directory: 'releases' } }],
6262
},
6363
],
6464
}),

docs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"preview": "astro preview"
99
},
1010
"dependencies": {
11-
"@astrojs/starlight": "^0.38.2",
11+
"@astrojs/starlight": "^0.41.4",
1212
"@astrojs/starlight-tailwind": "^5.0.0",
13-
"@tailwindcss/vite": "^4.0.0",
14-
"astro": "^6.1.8",
15-
"astro-mermaid": "^2.0.1",
16-
"mermaid": "^11.13.0",
17-
"sharp": "^0.34.5",
18-
"tailwindcss": "^4.0.0"
13+
"@tailwindcss/vite": "^4.3.3",
14+
"astro": "^7.1.3",
15+
"astro-mermaid": "^2.1.0",
16+
"mermaid": "^11.16.0",
17+
"sharp": "^0.35.3",
18+
"tailwindcss": "^4.3.3"
1919
}
2020
}

0 commit comments

Comments
 (0)