Repository navigation
fix: remediate Agentdust Sonar findings - #96
Merged
Merged
Conversation
Keep release tooling safe under user supplied paths and make process identity checks easier to audit.
Keep release artifact reads inside the workspace and preserve threat ID validation semantics.
Handle platform-specific device number types without lossy casts or platform lint failures.
Keep Linux device IDs direct while converting signed platform device types safely.
The locked version is flagged for invalid AsyncFd I/O safety, so use the patched 1.53.3 release.
Keep requirement identifiers ASCII-only while using concise digit classes, and remove the unused return value and assertion order inconsistency.
Keep the allowed ID separators and ASCII-only identifiers explicit without a high complexity regular expression.
Name the identifier check before combining it with the none case.
Keep Agentdust analysis active in CI and on pull requests.
Avoid backtracking while accepting the same comma and horizontal space separators.
Keep repository secrets unavailable to code from external forks.
Sonar flags the residual-risk bullet regex for backtracking. Direct parsing keeps the accepted whitespace behavior without regex backtracking.
The locked cryptography dependency is affected by secret dependent branches. Use the patched release so dependency checks reject the vulnerable version no longer.
Keep the fuzz workspace on the patched constant-time implementation so its locked dependency audit can pass.
The package guard limits input binaries to trusted workspace paths, so the WSL build needs to use the checkout target directory.
Sonar needs Python coverage data and separate test scope to evaluate only production changes.
The packaging tests launch scripts as child processes, so their changed lines need subprocess coverage for Sonar.
The new path guards and fixture capture flow need tests for both accepted and refused inputs.
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.
Summary
Confines release input paths to approved roots. Refactors filesystem scanning, listener verification, automatic cleanup, Codex setup, and the journal stress helper to reduce analysis complexity while preserving existing safety checks. Updates shell conditions, regular expressions, path constants, and assertions flagged by SonarCloud.
Validation
cargo fmt --all -- --checkpassed.cargo check --workspace --all-targets --lockedpassed.Python syntax compilation and
bash -npassed.The test suite was not run.