Repository navigation
fix: resolve SonarQube findings in workflows, Dockerfile and UI - #38
Merged
Merged
Conversation
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Linked issue
None.
What this changes
Fixes the open SonarQube Cloud findings that are real and cheap to resolve:
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-toolchainnow getstoolchain: stableexplicitly, since it can no longer read it from the ref.github-actionsecosystem so the pinned SHAs are kept current.voxcpmuser (uid 10001) instead of root. The Hugging Face / model cache now lives under/home/voxcpm/.cache.aria-labels, the "Auto-Transcript" and "Text" captions become real<label for>elements (same look viadisplay: block).test -xbecomes[[ -x ]].Decisions
actions/*stay on major tags.pip installof 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.<div>: the native file input covers it and handles click and keyboard.Validation
docker build --build-arg INSTALL_EXTRAS=anddocker run: container runs asuid=10001(voxcpm),voxcpm2-apistarts and shuts down cleanly (without thevoxcpmextra).bash -non the build script is clean.