-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
The command I run
. "${Env:RUNNER_TEMP}\sbom-tool.exe" generate -b $MSIXBundleOutput -bc .\ -pn 'AppControl Manager' -ps 'Violet Hansen' -pv $MSIXVersion -nsb 'https://github.com/HotCakeX/Harden-Windows-Security' -V Verbose -gt true -li true -pm true -D true -lto 80
This is one of the workflows where i run that command.
Errors i get which show how the tool is failing when the path contains spaces:
2025-08-29T14:04:51.4800783Z ##[warning]`cargo metadata` failed while processing "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\Cargo.toml". with error: "error: unexpected argument 'Manager\\Cargo.toml' found\n\nUsage: cargo.exe metadata [OPTIONS]\n\nFor more information, try '--help'.\n"
2025-08-29T14:04:51.4839645Z ##[warning]Falling back to cargo.lock processing using "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\Cargo.lock"
2025-08-29T14:04:51.5612294Z ##[information]Discovered Cargo.toml: "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\dism_capabilities\\Cargo.toml"
2025-08-29T14:04:51.6568160Z ##[warning]`cargo metadata` failed while processing "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\dism_capabilities\\Cargo.toml". with error: "error: unexpected argument 'Manager\\eXclude\\dism_capabilities\\Cargo.toml' found\n\nUsage: cargo.exe metadata [OPTIONS]\n\nFor more information, try '--help'.\n"
2025-08-29T14:04:51.6572227Z ##[warning]Fallback failed, could not find Cargo.lock file for "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\dism_capabilities\\Cargo.toml", skipping processing
2025-08-29T14:04:51.6574146Z ##[information]Discovered Cargo.toml: "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\exploit_mitigations\\Cargo.toml"
2025-08-29T14:04:51.8186319Z ##[warning]`cargo metadata` failed while processing "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\exploit_mitigations\\Cargo.toml". with error: "error: unexpected argument 'Manager\\eXclude\\exploit_mitigations\\Cargo.toml' found\n\nUsage: cargo.exe metadata [OPTIONS]\n\nFor more information, try '--help'.\n"
2025-08-29T14:04:51.8190265Z ##[warning]Fallback failed, could not find Cargo.lock file for "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\exploit_mitigations\\Cargo.toml", skipping processing
2025-08-29T14:04:51.8193441Z ##[information]Discovered Cargo.toml: "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\group_policy\\Cargo.toml"
2025-08-29T14:04:51.9118279Z ##[warning]`cargo metadata` failed while processing "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\group_policy\\Cargo.toml". with error: "error: unexpected argument 'Manager\\eXclude\\group_policy\\Cargo.toml' found\n\nUsage: cargo.exe metadata [OPTIONS]\n\nFor more information, try '--help'.\n"
2025-08-29T14:04:51.9123667Z ##[warning]Fallback failed, could not find Cargo.lock file for "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\group_policy\\Cargo.toml", skipping processing
2025-08-29T14:04:51.9126362Z ##[information]Discovered Cargo.toml: "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\ResourceValidator\\Cargo.toml"
2025-08-29T14:04:53.5426804Z ##[warning]`cargo metadata` failed while processing "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\ResourceValidator\\Cargo.toml". with error: "error: unexpected argument 'Manager\\eXclude\\ResourceValidator\\Cargo.toml' found\n\nUsage: cargo.exe metadata [OPTIONS]\n\nFor more information, try '--help'.\n"
2025-08-29T14:04:53.5432125Z ##[warning]Fallback failed, could not find Cargo.lock file for "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\ResourceValidator\\Cargo.toml", skipping processing
2025-08-29T14:04:53.5435228Z ##[information]Discovered Cargo.toml: "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\Rust Interop Library\\Cargo.toml"
2025-08-29T14:04:54.4845074Z ##[warning]`cargo metadata` failed while processing "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\Rust Interop Library\\Cargo.toml". with error: "error: unexpected argument 'Manager\\eXclude\\Rust' found\n\nUsage: cargo.exe metadata [OPTIONS]\n\nFor more information, try '--help'.\n"
2025-08-29T14:04:54.4850964Z ##[warning]Fallback failed, could not find Cargo.lock file for "D:\\a\\Harden-Windows-Security\\Harden-Windows-Security\\AppControl Manager\\eXclude\\Rust Interop Library\\Cargo.toml", skipping processing
Metadata
Metadata
Assignees
Labels
No labels