-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
formatters: fix random vulnerability hash on Windows (#779)
Previously when running the Horusec on Windows we was getting a different vulnerability hash for each analysis, this problem was happening because we weren't removing the .horusec folder from the file path before generating the hash, and since the .horusec folder contains a uuid, on every analysis we was getting a new uuid and consequently a new vulnerability hash. The commit fix this issue using a better approach to remove the .horusec folder from filepath, using the relative path from file using the .horusec folder as base path. This commit also change the testcase to catch this bug. This bug was founded on #777 Signed-off-by: Matheus Alcantara <[email protected]>
- Loading branch information
1 parent
f1b2258
commit de514e9
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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