-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
work in progress on findings match improvements
- Loading branch information
1 parent
f048efa
commit 4b9656d
Showing
2 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from veracode_api_py import Applications, Findings | ||
|
||
findings = Findings().get_findings('0d782d22-a35f-4520-a07c-197facd98e01') | ||
otherfindings = Findings().get_findings('878e431e-3a1d-4e18-ae21-af59011e743c') | ||
Findings().match(origin_finding=otherfindings[0],potential_matches=findings,approved_matches_only=False) | ||
|
||
match_findings = Findings()._create_match_format_policy(findings,'STATIC') | ||
match_other_findings = Findings()._create_match_format_policy(otherfindings,'STATIC') | ||
|
||
match_findings_s = [{'cwe': pf['cwe'], | ||
'source_file': pf['source_file'], | ||
'line': pf['line']} for pf in match_findings] | ||
|
||
match_other_findings_s = [{'cwe': pf['cwe'], | ||
'source_file': pf['source_file'], | ||
'line': pf['line']} for pf in match_other_findings] | ||
|
||
print(match_findings_s) | ||
print(match_other_findings_s) |
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