Skip to content

Github SAST Scan duplicate findings due to hashcode issue #13681

@Logicmn

Description

@Logicmn

Bug description
Github SAST Scan uses line as field its hashcode. These alerts in GitHub change lines often, causing duplicate findings to be created for the same alert when re-uploading a scan.

"Github SAST Scan": ["vuln_id_from_tool", "severity", "file_path", "line"]

Link to code.

Steps to reproduce
Steps to reproduce the behavior:

  1. Import a test with findings using Github SAST Scan scan type
  2. Change the line number on one of the findings
  3. Re-upload the test/scan
  4. Observe duplicate finding

Expected behavior
The line field should not factor into the hash code, and the alert should only be uploaded once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions