Skip to content

fix: resolve SonarQube findings in workflows, Dockerfile and UI - #38

Merged
fabianzimber merged 2 commits into
mainfrom
fix/sonar-findings
Nov 27, 2026
Merged

fabianzimber merged 2 commits into
mainfrom
fix/sonar-findings

Conversation

@fabianzimber

@fabianzimber fabianzimber commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Linked issue

None.

What this changes

Fixes the open SonarQube Cloud findings that are real and cheap to resolve:

  • Workflows: third-party actions (dtolnay/rust-toolchain, swatinem/rust-cache, pypa/gh-action-pypi-publish) are pinned to full commit SHAs with the tag as a comment. dtolnay/rust-toolchain now gets toolchain: stable explicitly, since it can no longer read it from the ref.
  • Dependabot: adds the github-actions ecosystem so the pinned SHAs are kept current.
  • Dockerfile: the image runs as a non-root voxcpm user (uid 10001) instead of root. The Hugging Face / model cache now lives under /home/voxcpm/.cache.
  • Desktop UI: the API URL and file inputs get aria-labels, the "Auto-Transcript" and "Text" captions become real <label for> elements (same look via display: block).
  • macOS build script: test -x becomes [[ -x ]].

Decisions

  • Only third-party actions are pinned (what Sonar flagged); first-party actions/* stay on major tags.
  • pip install of the local project (., -e .) cannot use --only-binary :all:, and a lock file for the torch/voxcpm stack is a larger change, so those findings are accepted in Sonar rather than changed here.
  • The drag-and-drop zone stays a <div>: the native file input covers it and handles click and keyboard.
  • Deploy note: anyone mounting a volume for the model cache into the container must make it writable for uid 10001.

Validation

  • docker build --build-arg INSTALL_EXTRAS= and docker run: container runs as uid=10001(voxcpm), voxcpm2-api starts and shuts down cleanly (without the voxcpm extra).
  • Workflow and Dependabot YAML parse; bash -n on the build script is clean.
  • Tauri smoke and release workflows not run locally.

Pin third-party actions to commit SHAs and let Dependabot keep them
current, run the container as a non-root user, label the UI inputs and
use [[ ]] in the macOS build script.
@sonarqubecloud

Copy link
Copy Markdown

@fabianzimber
fabianzimber merged commit f036ea0 into main Nov 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant