securego / gosec

Go security checker
https://securego.io
Apache License 2.0
7.8k stars 610 forks source link

SARIF : format's specification conformity #603

Closed mmorel-35 closed 4 months ago

mmorel-35 commented 3 years ago

Github is using fingerprints in SARIF format. It helps avoiding duplicates.

Cf. https://docs.github.com/en/code-security/secure-coding/sarif-support-for-code-scanning#preventing-duplicate-alerts-using-fingerprints

The fingerprint shall be translated from TypeScript to Golang to be used to fulfill the partialFingerprints field in the SARIF format.

With the use of https://sarifweb.azurewebsites.net/Validation we can see the following remarks :

ccojocar commented 3 years ago

@mmorel-35 Can this issue be closed? Thanks

mmorel-35 commented 3 years ago

GH1001 can be removed but the others are still active, if you try the tool with one of your resultset you'll get the the same recommendation. Now, you can always say, I don't want to implement this rule or the other, it's up to you.

Jeeppler commented 2 years ago

@ccojocar This is more like an epic (scrum), rather than an issue. It might make more sense to have individual issues referencing this issue.

Jeeppler commented 2 years ago

SARIF2011 refers to the context region. This would be nice to have.

ccojocar commented 2 years ago

This is more like an epic (scrum), rather than an issue. It might make more sense to have individual issues referencing this issue.

Agree. Please just create issues which can be referenced in this issue just to keep track.

Jeeppler commented 2 years ago

It might help to add the label "epic" to this issue. At least, this is what SecHub does.