The auth_attempt_script_login login is performed so that among other things the issue that is created and attachments that are added are added using the user account that is reporting the issue.