mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-28 14:08:37 -08:00
ci(sonar): ignore S8707 path traversal in crates/validate developer scripts (#7994)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e74e627a38
commit
5796c665b9
1 file changed
+7
-1
@@ -11,7 +11,7 @@ sonar.python.coverage.reportPaths=python-coverage.xml
|
||||
# S4790 (weak hash): SHA-1 is a start-key and "SHA1/1K" checksum algorithm that ODF package
|
||||
# encryption (ODF 1.3 Part 2 §4.16) names, and older office suites wrote it. It is needed to open
|
||||
# those files, not chosen for new security: WordCraft writes a SHA-256 start key and checksum.
|
||||
sonar.issue.ignore.multicriteria=odt_sha1
|
||||
sonar.issue.ignore.multicriteria=odt_sha1,validate_py_paths
|
||||
sonar.issue.ignore.multicriteria.odt_sha1.ruleKey=rust:S4790
|
||||
sonar.issue.ignore.multicriteria.odt_sha1.resourceKey=crates/formats/src/odt/crypt.rs
|
||||
|
||||
@@ -22,3 +22,9 @@ sonar.issue.ignore.multicriteria.odt_sha1.resourceKey=crates/formats/src/odt/cry
|
||||
# os_window, control-key). process_identity.rs is Windows-only (the taskbar AUMID) and cannot run
|
||||
# on the Linux runner either.
|
||||
sonar.coverage.exclusions=packaging/**,apps/wordcraft/src/main.rs,apps/wordcraft-cli/src/main.rs,apps/wordcraft/src/process_identity.rs
|
||||
|
||||
# S8707 (path traversal): the crates/validate *.py scripts are developer tools run by hand to
|
||||
# regenerate checked-in files; reading and writing the paths given on their command line is
|
||||
# their purpose, and nothing passes them untrusted input.
|
||||
sonar.issue.ignore.multicriteria.validate_py_paths.ruleKey=pythonsecurity:S8707
|
||||
sonar.issue.ignore.multicriteria.validate_py_paths.resourceKey=crates/validate/**/*.py
|
||||
Reference in new issue
Block a user