-
I have read part of SARIF https://docs.oasis-open.org/sarif/sarif/v2.1.0/cs01/sarif-v2.1.0-cs01.html, particularly partialFingerprints property.
Can anyone tell me how primaryLocationLineHash be generated. What algorithm ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @ZH3FENG, can you please elaborate on why you want to know how |
Beta Was this translation helpful? Give feedback.
-
An implementation of the algorithm used by CodeQL can be found at https://github.com/github/codeql-action/blob/216127f34aa309c5876c25b8ea6bda90f4f559fe/src/fingerprints.ts#L30-L41 |
Beta Was this translation helpful? Give feedback.
Hi @ZH3FENG, can you please elaborate on why you want to know how
primaryLocationLineHash
is generated? As I see it, this is just some unique hash value produced by CodeQL to help determine whether two results are logically identical.