def fill_config()

in dusty/scanners/sast/gitleaks/scanner.py [0:0]


    def fill_config(data_obj):
        """ Make sample config """
        data_obj.insert(len(data_obj), "code", "/path/to/code", comment="scan target")
        data_obj.insert(
            len(data_obj), "squash_commits", False,
            comment="(optional) Make one commit with current code only"
        )
        data_obj.insert(
            len(data_obj), "show_offender_line", True,
            comment="(optional) Show lines with findings"
        )
        data_obj.insert(
            len(data_obj), "commit_line_limit", 15,
            comment="(optional) Limit number of commit lines in one finding. Default: 15"
        )
        data_obj.insert(
            len(data_obj), "redact_offenders", False,
            comment="(optional) Hide secrets in lines with findings"
        )
        data_obj.insert(
            len(data_obj), "hide_commit_author", False,
            comment="(optional) Hide information about commits and authors"
        )
        data_obj.insert(
            len(data_obj), "use_custom_rules", False,
            comment="(optional) Use custom detection rules"
        )
        data_obj.insert(
            len(data_obj), "custom_rules_path", "/path/to/rules",
            comment="(optional) Path to custom rules"
        )
        data_obj.insert(
            len(data_obj), "additional_text", "",
            comment="(optional) Additional text to add to description"
        )
        data_obj.insert(
            len(data_obj), "save_intermediates_to", "/data/intermediates/sast",
            comment="(optional) Save scan intermediates (raw results, logs, ...)"
        )