Skip to content

Multiple secrets are alerted as one secret #59

@prashpb

Description

@prashpb

Hi @domanchi @KevinHock @OiCMudkips
in a file, if multiple secrets are detected which are same, then only the last one is alerted.
for ex in a file as below

def some_fun:
password = "kjckjdc"
hello = asdjashd
def some_fun2:
password = "kjckjdc"
secret = "ruidj"
def some_fun3:
password = "kjckjdc"

In the above scenario, only 2 secrets are alerted one for keyword "secret" and one for "password"
even though the password keyword occurs multiple time.

Actual scenario is there are many files when number of functions have same secrets copied again and again, in that file, the scan is detecting only the last function, secret and line number and ignoring all other which are occurring before.

Could you please suggest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions