Skip to content

Commit 80c4f31

Browse files
authored
Add commit hash to finding location. (#7)
Part of PLAT-1576
1 parent 0c8b14a commit 80c4f31

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/tests/mocks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export const scanTextResponse = {
4949
"codepointRange": {
5050
"start": 25,
5151
"end": 41
52-
}
52+
},
53+
"commitHash": ""
5354
},
5455
"matchedDetectionRuleUUIDs": [],
5556
"matchedDetectionRules": [

src/types/scanText.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ export namespace ScanText {
2626
location: {
2727
byteRange: FindingRange
2828
codepointRange: FindingRange
29+
commitHash: string
2930
};
3031
redactedLocation?: {
3132
byteRange: FindingRange
3233
codepointRange: FindingRange
34+
commitHash: string
3335
}
3436
matchedDetectionRuleUUIDs: any[]
3537
matchedDetectionRules: string[]

0 commit comments

Comments
 (0)