Skip to content

fix(sarif): store finding fingerprint in fingerprints to prevent code scanning warning - #466

Open
Tyagiquamar wants to merge 1 commit into
boostsecurityio:mainfrom
Tyagiquamar:fix/387-sarif-fingerprint
Open

Tyagiquamar wants to merge 1 commit into
boostsecurityio:mainfrom
Tyagiquamar:fix/387-sarif-fingerprint

Conversation

@Tyagiquamar

Copy link
Copy Markdown
Contributor

Motivation

… scanning line hash warning

In SARIF 2.1.0 and GitHub Code Scanning, partialFingerprints.primaryLocationLineHash
is reserved for a hash of the code line containing the finding location. When
uploading to GitHub Code Scanning via upload-sarif, GitHub computes its own line hash
and warns when an inconsistent value is found under primaryLocationLineHash.

Store the finding fingerprint in result.fingerprints (under findingFingerprint)
instead of using the reserved primaryLocationLineHash key in partialFingerprints,
allowing GitHub Code Scanning to automatically generate the location line hash without warnings.

Fixes boostsecurityio#387.
@Tyagiquamar
Tyagiquamar requested a review from a team as a code owner October 22, 2026 12:06

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant