|
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 ? |
Replies: 2 comments 4 replies
|
Hi @ZH3FENG, can you please elaborate on why you want to know how |
|
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 |
Hi @ZH3FENG, can you please elaborate on why you want to know how
primaryLocationLineHashis generated? As I see it, this is just some unique hash value produced by CodeQL to help determine whether two results are logically identical.