{"action":"created","comment":{"url":"https://api.github.com/repos/zaproxy/zaproxy/pulls/comments/121457468","pull_request_review_id":43487216,"id":121457468,"diff_hunk":"@@ -254,6 +254,18 @@ def zap_ajax_spider(zap, target, max_time):\n     logging.debug('Ajax Spider complete')\n \n \n+def zap_active_scan(zap, target, policy):\n+    logging.debug('Active Scan ' + target + ' with policy ' + policy)\n+    ascan_scan_id = zap.ascan.scan(target, recurse=True, scanpolicyname=policy)\n+    time.sleep(5)\n+\n+    while(int(zap.ascan.status(ascan_scan_id)) < 100):\n+        logging.debug('Active Scan progress %: ' + zap.ascan.status(ascan_scan_id))\n+        time.sleep(5)\n+    logging.debug('Active Scan complete')\n+    logging.debug(zap.ascan.scan_progress(ascan_scan_id))","path":"build/docker/zap_common.py","position":13,"original_position":13,"commit_id":"b366d6d90de4138e795c3c18ea47a9c22c269f95","original_commit_id":"b366d6d90de4138e795c3c18ea47a9c22c269f95","user":{"login":"psiinon","id":1081115,"avatar_url":"https://avatars3.githubusercontent.com/u/1081115?v=3","gravatar_id":"","url":"https://api.github.com/users/psiinon","html_url":"https://github.com/psiinon","followers_url":"https://api.github.com/users/psiinon/followers","following_url":"https://api.github.com/users/psiinon/following{/other_user}","gists_url":"https://api.github.com/users/psiinon/gists{/gist_id}","starred_url":"https://api.github.com/users/psiinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psiinon/subscriptions","organizations_url":"https://api.github.com/users/psiinon/orgs","repos_url":"https://api.github.com/users/psiinon/repos","events_url":"https://api.github.com/users/psiinon/events{/privacy}","received_events_url":"https://api.github.com/users/psiinon/received_events","type":"User","site_admin":false},"body":"@kingthorin both lines (263 and 264) are indented the same amount and so are both in the while loop. So I _think_ its as its supposed to be...","created_at":"2017-06-12T16:12:32Z","updated_at":"2017-06-12T16:12:32Z","html_url":"https://github.com/zaproxy/zaproxy/pull/3646#discussion_r121457468","pull_request_url":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646","_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zaproxy/pulls/comments/121457468"},"html":{"href":"https://github.com/zaproxy/zaproxy/pull/3646#discussion_r121457468"},"pull_request":{"href":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646"}}},"pull_request":{"url":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646","id":125119613,"html_url":"https://github.com/zaproxy/zaproxy/pull/3646","diff_url":"https://github.com/zaproxy/zaproxy/pull/3646.diff","patch_url":"https://github.com/zaproxy/zaproxy/pull/3646.patch","issue_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/3646","number":3646,"state":"open","locked":false,"title":"zap-full-scan.py - first version","user":{"login":"psiinon","id":1081115,"avatar_url":"https://avatars3.githubusercontent.com/u/1081115?v=3","gravatar_id":"","url":"https://api.github.com/users/psiinon","html_url":"https://github.com/psiinon","followers_url":"https://api.github.com/users/psiinon/followers","following_url":"https://api.github.com/users/psiinon/following{/other_user}","gists_url":"https://api.github.com/users/psiinon/gists{/gist_id}","starred_url":"https://api.github.com/users/psiinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psiinon/subscriptions","organizations_url":"https://api.github.com/users/psiinon/orgs","repos_url":"https://api.github.com/users/psiinon/repos","events_url":"https://api.github.com/users/psiinon/events{/privacy}","received_events_url":"https://api.github.com/users/psiinon/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-12T11:58:57Z","updated_at":"2017-06-12T16:12:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b39ca7591443a34443c9db5caee8d26a03f9065","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646/commits","review_comments_url":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646/comments","review_comment_url":"https://api.github.com/repos/zaproxy/zaproxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/3646/comments","statuses_url":"https://api.github.com/repos/zaproxy/zaproxy/statuses/b366d6d90de4138e795c3c18ea47a9c22c269f95","head":{"label":"psiinon:api-scan","ref":"api-scan","sha":"b366d6d90de4138e795c3c18ea47a9c22c269f95","user":{"login":"psiinon","id":1081115,"avatar_url":"https://avatars3.githubusercontent.com/u/1081115?v=3","gravatar_id":"","url":"https://api.github.com/users/psiinon","html_url":"https://github.com/psiinon","followers_url":"https://api.github.com/users/psiinon/followers","following_url":"https://api.github.com/users/psiinon/following{/other_user}","gists_url":"https://api.github.com/users/psiinon/gists{/gist_id}","starred_url":"https://api.github.com/users/psiinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psiinon/subscriptions","organizations_url":"https://api.github.com/users/psiinon/orgs","repos_url":"https://api.github.com/users/psiinon/repos","events_url":"https://api.github.com/users/psiinon/events{/privacy}","received_events_url":"https://api.github.com/users/psiinon/received_events","type":"User","site_admin":false},"repo":{"id":37541145,"name":"zaproxy","full_name":"psiinon/zaproxy","owner":{"login":"psiinon","id":1081115,"avatar_url":"https://avatars3.githubusercontent.com/u/1081115?v=3","gravatar_id":"","url":"https://api.github.com/users/psiinon","html_url":"https://github.com/psiinon","followers_url":"https://api.github.com/users/psiinon/followers","following_url":"https://api.github.com/users/psiinon/following{/other_user}","gists_url":"https://api.github.com/users/psiinon/gists{/gist_id}","starred_url":"https://api.github.com/users/psiinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psiinon/subscriptions","organizations_url":"https://api.github.com/users/psiinon/orgs","repos_url":"https://api.github.com/users/psiinon/repos","events_url":"https://api.github.com/users/psiinon/events{/privacy}","received_events_url":"https://api.github.com/users/psiinon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psiinon/zaproxy","description":"The OWASP ZAP core project","fork":true,"url":"https://api.github.com/repos/psiinon/zaproxy","forks_url":"https://api.github.com/repos/psiinon/zaproxy/forks","keys_url":"https://api.github.com/repos/psiinon/zaproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psiinon/zaproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psiinon/zaproxy/teams","hooks_url":"https://api.github.com/repos/psiinon/zaproxy/hooks","issue_events_url":"https://api.github.com/repos/psiinon/zaproxy/issues/events{/number}","events_url":"https://api.github.com/repos/psiinon/zaproxy/events","assignees_url":"https://api.github.com/repos/psiinon/zaproxy/assignees{/user}","branches_url":"https://api.github.com/repos/psiinon/zaproxy/branches{/branch}","tags_url":"https://api.github.com/repos/psiinon/zaproxy/tags","blobs_url":"https://api.github.com/repos/psiinon/zaproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psiinon/zaproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psiinon/zaproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/psiinon/zaproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psiinon/zaproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/psiinon/zaproxy/languages","stargazers_url":"https://api.github.com/repos/psiinon/zaproxy/stargazers","contributors_url":"https://api.github.com/repos/psiinon/zaproxy/contributors","subscribers_url":"https://api.github.com/repos/psiinon/zaproxy/subscribers","subscription_url":"https://api.github.com/repos/psiinon/zaproxy/subscription","commits_url":"https://api.github.com/repos/psiinon/zaproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/psiinon/zaproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/psiinon/zaproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/psiinon/zaproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/psiinon/zaproxy/contents/{+path}","compare_url":"https://api.github.com/repos/psiinon/zaproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psiinon/zaproxy/merges","archive_url":"https://api.github.com/repos/psiinon/zaproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psiinon/zaproxy/downloads","issues_url":"https://api.github.com/repos/psiinon/zaproxy/issues{/number}","pulls_url":"https://api.github.com/repos/psiinon/zaproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/psiinon/zaproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/psiinon/zaproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psiinon/zaproxy/labels{/name}","releases_url":"https://api.github.com/repos/psiinon/zaproxy/releases{/id}","deployments_url":"https://api.github.com/repos/psiinon/zaproxy/deployments","created_at":"2015-06-16T16:09:29Z","updated_at":"2017-05-22T20:45:51Z","pushed_at":"2017-06-12T15:26:00Z","git_url":"git://github.com/psiinon/zaproxy.git","ssh_url":"git@github.com:psiinon/zaproxy.git","clone_url":"https://github.com/psiinon/zaproxy.git","svn_url":"https://github.com/psiinon/zaproxy","homepage":null,"size":169078,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"develop"}},"base":{"label":"zaproxy:develop","ref":"develop","sha":"38ac389cd22cd7c1a32fcf058fa4438330a2c0eb","user":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars1.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"repo":{"id":36817565,"name":"zaproxy","full_name":"zaproxy/zaproxy","owner":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars1.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zaproxy/zaproxy","description":"The OWASP ZAP core project","fork":false,"url":"https://api.github.com/repos/zaproxy/zaproxy","forks_url":"https://api.github.com/repos/zaproxy/zaproxy/forks","keys_url":"https://api.github.com/repos/zaproxy/zaproxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zaproxy/zaproxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zaproxy/zaproxy/teams","hooks_url":"https://api.github.com/repos/zaproxy/zaproxy/hooks","issue_events_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/events{/number}","events_url":"https://api.github.com/repos/zaproxy/zaproxy/events","assignees_url":"https://api.github.com/repos/zaproxy/zaproxy/assignees{/user}","branches_url":"https://api.github.com/repos/zaproxy/zaproxy/branches{/branch}","tags_url":"https://api.github.com/repos/zaproxy/zaproxy/tags","blobs_url":"https://api.github.com/repos/zaproxy/zaproxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zaproxy/zaproxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zaproxy/zaproxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/zaproxy/zaproxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zaproxy/zaproxy/statuses/{sha}","languages_url":"https://api.github.com/repos/zaproxy/zaproxy/languages","stargazers_url":"https://api.github.com/repos/zaproxy/zaproxy/stargazers","contributors_url":"https://api.github.com/repos/zaproxy/zaproxy/contributors","subscribers_url":"https://api.github.com/repos/zaproxy/zaproxy/subscribers","subscription_url":"https://api.github.com/repos/zaproxy/zaproxy/subscription","commits_url":"https://api.github.com/repos/zaproxy/zaproxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/zaproxy/zaproxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/zaproxy/zaproxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/zaproxy/zaproxy/contents/{+path}","compare_url":"https://api.github.com/repos/zaproxy/zaproxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zaproxy/zaproxy/merges","archive_url":"https://api.github.com/repos/zaproxy/zaproxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zaproxy/zaproxy/downloads","issues_url":"https://api.github.com/repos/zaproxy/zaproxy/issues{/number}","pulls_url":"https://api.github.com/repos/zaproxy/zaproxy/pulls{/number}","milestones_url":"https://api.github.com/repos/zaproxy/zaproxy/milestones{/number}","notifications_url":"https://api.github.com/repos/zaproxy/zaproxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zaproxy/zaproxy/labels{/name}","releases_url":"https://api.github.com/repos/zaproxy/zaproxy/releases{/id}","deployments_url":"https://api.github.com/repos/zaproxy/zaproxy/deployments","created_at":"2015-06-03T16:55:01Z","updated_at":"2017-06-12T15:32:33Z","pushed_at":"2017-06-12T15:26:02Z","git_url":"git://github.com/zaproxy/zaproxy.git","ssh_url":"git@github.com:zaproxy/zaproxy.git","clone_url":"https://github.com/zaproxy/zaproxy.git","svn_url":"https://github.com/zaproxy/zaproxy","homepage":null,"size":169141,"stargazers_count":2553,"watchers_count":2553,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":518,"mirror_url":null,"open_issues_count":565,"forks":518,"open_issues":565,"watchers":2553,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646"},"html":{"href":"https://github.com/zaproxy/zaproxy/pull/3646"},"issue":{"href":"https://api.github.com/repos/zaproxy/zaproxy/issues/3646"},"comments":{"href":"https://api.github.com/repos/zaproxy/zaproxy/issues/3646/comments"},"review_comments":{"href":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646/comments"},"review_comment":{"href":"https://api.github.com/repos/zaproxy/zaproxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zaproxy/zaproxy/pulls/3646/commits"},"statuses":{"href":"https://api.github.com/repos/zaproxy/zaproxy/statuses/b366d6d90de4138e795c3c18ea47a9c22c269f95"}}}}
{"actor":{"display_login":"psiinon"}}