-
Notifications
You must be signed in to change notification settings - Fork 0
Prepare Vaani 1.2.0 for reliable dictation #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
1b254b3
92965e5
696fe78
30f63a9
850840f
14c6de0
b4ab696
24a0700
95abce9
279da30
995d06b
ba75a68
98bc594
0622115
b61fbdc
6851cd9
c4ddc73
7e170c4
e54abfd
e302cfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ci-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| validate: | ||
| runs-on: macos-latest | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup Bun | ||
| uses: oven-sh/setup-bun@v2 | ||
|
Comment on lines
+22
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new workflow resolves |
||
| with: | ||
| bun-version: 1.3.5 | ||
|
|
||
| - name: Install dependencies | ||
| run: bun install --frozen-lockfile | ||
|
|
||
| - name: Typecheck | ||
| run: bun run typecheck | ||
|
|
||
| - name: Test | ||
| run: bun run test | ||
|
|
||
| - name: Build | ||
| run: bun run build | ||
|
|
||
| - name: Check whitespace | ||
| run: git diff --check origin/main...HEAD | ||
|
|
||
| - name: Fail on tracked changes | ||
| run: git diff --exit-code -- | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,5 +21,6 @@ trial/ | |
| docs/ | ||
| issues/ | ||
| prd/ | ||
| .wayfinder/ | ||
| COMPARISON_REPORT.md | ||
| VAANI_IMPROVEMENT_PLAN.md | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,8 @@ Premium macOS voice dictation app — Electron Forge + Vite + React + TypeScript | |
| - `bun run build` — package app locally | ||
| - `bun run make` — create platform artifacts under `out/make/` | ||
| - `bun run typecheck` — TypeScript check (no emit) | ||
| - `bun test` — Vitest unit tests (`tests/**/*.test.ts`) | ||
| - `bun run test` — Vitest unit tests (`tests/**/*.test.ts`). NOT `bun test` — that invokes Bun's own | ||
| runner instead of Vitest and reports ~49 bogus failures plus unhandled errors. | ||
|
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- CLAUDE.md ---'
nl -ba CLAUDE.md | sed -n '1,70p'
printf '%s\n' '--- package manifests and test guidance ---'
find . -maxdepth 3 -type f \( -name 'package.json' -o -name 'bunfig.toml' -o -name 'README.md' -o -name 'AGENTS.md' \) -print
rg -n --hidden --glob '!{.git,.vite,build,out,dist,coverage}/**' \
'bun( run)? test|Vitest|vitest|bun run typecheck' \
CLAUDE.md AGENTS.md README.md package.json bunfig.toml .github 2>/dev/null || true
printf '%s\n' '--- tracked test configuration ---'
git ls-files | rg '(^|/)(package\.json|bunfig\.toml|vitest\.config\..*|.*\.test\.(ts|tsx|js|jsx))$' | head -100Repository: Onkarj012/Vaani Length of output: 2950 Use
🤖 Prompt for AI Agents |
||
|
|
||
| ## Architecture (read-only summary — do NOT re-read source files for this) | ||
| - `src/main/` — Electron main process (dictation, injection, tray, overlay, stores, native bridge) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: Onkarj012/Vaani
Length of output: 2682
🌐 Web query:
actions/checkout v4 persist-credentials default README token stored local git config💡 Result:
In the actions/checkout@v4 action, the persist-credentials input defaults to true [1][2]. When enabled, the action persists the authentication token (typically the GITHUB_TOKEN) into the local Git configuration [3][4]. Specifically, this configuration is written to the repository's.git/config file as an http.https://github.com/.extraheader value [5]. This allows subsequent steps in the same job to execute authenticated Git commands without needing to manually re-configure authentication [3][4]. The token is removed during the post-job cleanup phase [3][4]. If you wish to opt-out of this behavior—for example, to prevent the token from being included if the.git directory is uploaded as a build artifact—you can explicitly set persist-credentials: false in your workflow step [3][5].
Citations:
persist-credentials: falseon checkout steps cli/go-gh#225Disable checkout credential persistence for pull-request jobs.
This job runs repository-controlled Bun scripts.
actions/checkout@v4persistsGITHUB_TOKENin.git/configby default. A modified script can read and exfiltrate this token. Setpersist-credentials: false; later Git commands use local refs.🧰 Tools
🪛 zizmor (1.29.0)
[warning] 21-24: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
🤖 Prompt for AI Agents
Source: Linters/SAST tools