(search_name, hash, username, description, reason, url)
Creates a new Maniphest task with the securitybot tag so that the bot can
    reach out to the relevant people.
Creates a new Maniphest task with the securitybot tag so that the bot can
    reach out to the relevant people.
Creates a new Maniphest task with the securitybot tag so that the bot can reach out to the relevant people .
def create_securitybot_task(search_name, hash, username, description, reason, url):
    '''
    Creates a new Maniphest task with the securitybot tag so that the bot can
    reach out to the relevant people.
    '''
    logging.info('Creating new task about {} for {}'.format(description,
                                                            username))

    # Check for collision
    rows = SQLEngine.execute('SELECT title FROM alerts WHERE hash=UNHEX(%s)', (hash,))
    if rows:
        raise CollisionException(
'''We found a collision with {0} for {1}.
Most likely the Splunk alert with configured incorrectly.
However, if this is a geniune collision, then you have a paper to write. Good luck.
'''.format(rows, hash))

    # Insert that into the database as a new alert
    create_new_alert(search_name, username, description, reason, url, hash)
def create_securitybot_task ( search_name , hash , username , description , reason , url ) : logging . info ( 'Creating new task about {} for {}' . format ( description , username ) ) # Check for collision rows = SQLEngine . execute ( 'SELECT title FROM alerts WHERE hash=UNHEX(%s)' , ( hash , ) ) if rows : raise CollisionException ( '''We found a collision with {0} for {1}.
Most likely the Splunk alert with configured incorrectly.
However, if this is a geniune collision, then you have a paper to write. Good luck.
''' . format ( rows , hash ) ) # Insert that into the database as a new alert create_new_alert ( search_name , username , description , reason , url , hash )