Skip to content

Commit 510e48a

Browse files
Tommyclaude
andcommitted
ci: stub web assets so tauri_build succeeds in the security workflow
The lint-and-test and hardening-flags jobs run bare cargo (no pnpm/vite/noscript build), so tauri_build failed on the missing bundled NoScript .so and frontendDist. This CI only verifies the Rust backend + ELF hardening, not the web bundle, so we stub an empty .so and a minimal dist/index.html to satisfy tauri_build instead of running the full frontend build. Validated locally with the stubs in place. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e47358a commit 510e48a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ jobs:
5252
run: |
5353
sudo apt-get update
5454
sudo apt-get install -y $APT_DEPS
55+
- name: Stub web assets
56+
# This job verifies the Rust backend (tests) — not the web bundle. tauri_build
57+
# only checks that the bundled NoScript .so and the frontendDist exist, so we
58+
# stub them instead of running the full pnpm/vite/noscript build.
59+
run: |
60+
mkdir -p apps/reclaim/src-tauri/resources/noscript
61+
touch apps/reclaim/src-tauri/resources/noscript/libearth_noscript_ext.so
62+
mkdir -p apps/reclaim/dist
63+
printf '<!doctype html><meta charset="utf-8"><title>ci</title><div id="root"></div>' > apps/reclaim/dist/index.html
5564
- name: Unit tests (vault isolation, totp, hygiene)
5665
run: cargo test --lib
5766
- name: Clippy (our crates)
@@ -69,6 +78,14 @@ jobs:
6978
run: |
7079
sudo apt-get update
7180
sudo apt-get install -y $APT_DEPS
81+
- name: Stub web assets
82+
# We only readelf the binary's hardening flags here, not run the app, so the
83+
# NoScript .so + frontendDist just need to exist for tauri_build.
84+
run: |
85+
mkdir -p apps/reclaim/src-tauri/resources/noscript
86+
touch apps/reclaim/src-tauri/resources/noscript/libearth_noscript_ext.so
87+
mkdir -p apps/reclaim/dist
88+
printf '<!doctype html><meta charset="utf-8"><title>ci</title><div id="root"></div>' > apps/reclaim/dist/index.html
7289
- name: Build release binary
7390
run: cargo build --release --bin reclaim
7491
- name: Verify hardening (RELRO now + NX + PIE)

0 commit comments

Comments
 (0)