{"action":"opened","number":48,"pull_request":{"url":"https://api.github.com/repos/Yelp/detect-secrets/pulls/48","id":199021745,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5MDIxNzQ1","html_url":"https://github.com/Yelp/detect-secrets/pull/48","diff_url":"https://github.com/Yelp/detect-secrets/pull/48.diff","patch_url":"https://github.com/Yelp/detect-secrets/pull/48.patch","issue_url":"https://api.github.com/repos/Yelp/detect-secrets/issues/48","number":48,"state":"open","locked":false,"title":"audit bug fix: handles short files better","user":{"login":"domanchi","id":10440566,"node_id":"MDQ6VXNlcjEwNDQwNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/10440566?v=4","gravatar_id":"","url":"https://api.github.com/users/domanchi","html_url":"https://github.com/domanchi","followers_url":"https://api.github.com/users/domanchi/followers","following_url":"https://api.github.com/users/domanchi/following{/other_user}","gists_url":"https://api.github.com/users/domanchi/gists{/gist_id}","starred_url":"https://api.github.com/users/domanchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domanchi/subscriptions","organizations_url":"https://api.github.com/users/domanchi/orgs","repos_url":"https://api.github.com/users/domanchi/repos","events_url":"https://api.github.com/users/domanchi/events{/privacy}","received_events_url":"https://api.github.com/users/domanchi/received_events","type":"User","site_admin":false},"body":"Our default `lines_of_context` when printing the interactive auditor is 5. However, when there isn't five lines to print, we can find ourselves in a strange case: the auditor doesn't know how to handle it so it either:\r\n\r\na) throws an IndexError exception (if `abs(-lines_of_context -1 ) > len(output)`), OR\r\nb) displays a `ERROR: Secret not found on specified line number!`\r\n\r\nSo let's handle this better.","created_at":"2018-07-03T16:37:45Z","updated_at":"2018-07-03T16:37:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/detect-secrets/pulls/48/commits","review_comments_url":"https://api.github.com/repos/Yelp/detect-secrets/pulls/48/comments","review_comment_url":"https://api.github.com/repos/Yelp/detect-secrets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/detect-secrets/issues/48/comments","statuses_url":"https://api.github.com/repos/Yelp/detect-secrets/statuses/969e570e0f8e4aeda1036d771c30da376d2a28ed","head":{"label":"Yelp:bug-fix-off-by-one-error","ref":"bug-fix-off-by-one-error","sha":"969e570e0f8e4aeda1036d771c30da376d2a28ed","user":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":113111650,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMxMTE2NTA=","name":"detect-secrets","full_name":"Yelp/detect-secrets","owner":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/detect-secrets","description":"An enterprise friendly way of detecting and preventing secrets in code.","fork":false,"url":"https://api.github.com/repos/Yelp/detect-secrets","forks_url":"https://api.github.com/repos/Yelp/detect-secrets/forks","keys_url":"https://api.github.com/repos/Yelp/detect-secrets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/detect-secrets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/detect-secrets/teams","hooks_url":"https://api.github.com/repos/Yelp/detect-secrets/hooks","issue_events_url":"https://api.github.com/repos/Yelp/detect-secrets/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/detect-secrets/events","assignees_url":"https://api.github.com/repos/Yelp/detect-secrets/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/detect-secrets/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/detect-secrets/tags","blobs_url":"https://api.github.com/repos/Yelp/detect-secrets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/detect-secrets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/detect-secrets/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/detect-secrets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/detect-secrets/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/detect-secrets/languages","stargazers_url":"https://api.github.com/repos/Yelp/detect-secrets/stargazers","contributors_url":"https://api.github.com/repos/Yelp/detect-secrets/contributors","subscribers_url":"https://api.github.com/repos/Yelp/detect-secrets/subscribers","subscription_url":"https://api.github.com/repos/Yelp/detect-secrets/subscription","commits_url":"https://api.github.com/repos/Yelp/detect-secrets/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/detect-secrets/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/detect-secrets/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/detect-secrets/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/detect-secrets/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/detect-secrets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/detect-secrets/merges","archive_url":"https://api.github.com/repos/Yelp/detect-secrets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/detect-secrets/downloads","issues_url":"https://api.github.com/repos/Yelp/detect-secrets/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/detect-secrets/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/detect-secrets/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/detect-secrets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/detect-secrets/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/detect-secrets/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/detect-secrets/deployments","created_at":"2017-12-05T00:38:38Z","updated_at":"2018-07-03T01:42:54Z","pushed_at":"2018-07-03T16:34:32Z","git_url":"git://github.com/Yelp/detect-secrets.git","ssh_url":"git@github.com:Yelp/detect-secrets.git","clone_url":"https://github.com/Yelp/detect-secrets.git","svn_url":"https://github.com/Yelp/detect-secrets","homepage":"","size":314,"stargazers_count":437,"watchers_count":437,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":34,"open_issues":2,"watchers":437,"default_branch":"master"}},"base":{"label":"Yelp:master","ref":"master","sha":"480f43291fd07285d39caa28e4d20a96f8a9943a","user":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":113111650,"node_id":"MDEwOlJlcG9zaXRvcnkxMTMxMTE2NTA=","name":"detect-secrets","full_name":"Yelp/detect-secrets","owner":{"login":"Yelp","id":49071,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MDcx","avatar_url":"https://avatars1.githubusercontent.com/u/49071?v=4","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/detect-secrets","description":"An enterprise friendly way of detecting and preventing secrets in code.","fork":false,"url":"https://api.github.com/repos/Yelp/detect-secrets","forks_url":"https://api.github.com/repos/Yelp/detect-secrets/forks","keys_url":"https://api.github.com/repos/Yelp/detect-secrets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/detect-secrets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/detect-secrets/teams","hooks_url":"https://api.github.com/repos/Yelp/detect-secrets/hooks","issue_events_url":"https://api.github.com/repos/Yelp/detect-secrets/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/detect-secrets/events","assignees_url":"https://api.github.com/repos/Yelp/detect-secrets/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/detect-secrets/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/detect-secrets/tags","blobs_url":"https://api.github.com/repos/Yelp/detect-secrets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/detect-secrets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/detect-secrets/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/detect-secrets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/detect-secrets/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/detect-secrets/languages","stargazers_url":"https://api.github.com/repos/Yelp/detect-secrets/stargazers","contributors_url":"https://api.github.com/repos/Yelp/detect-secrets/contributors","subscribers_url":"https://api.github.com/repos/Yelp/detect-secrets/subscribers","subscription_url":"https://api.github.com/repos/Yelp/detect-secrets/subscription","commits_url":"https://api.github.com/repos/Yelp/detect-secrets/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/detect-secrets/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/detect-secrets/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/detect-secrets/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/detect-secrets/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/detect-secrets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/detect-secrets/merges","archive_url":"https://api.github.com/repos/Yelp/detect-secrets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/detect-secrets/downloads","issues_url":"https://api.github.com/repos/Yelp/detect-secrets/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/detect-secrets/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/detect-secrets/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/detect-secrets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/detect-secrets/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/detect-secrets/releases{/id}","deployments_url":"https://api.github.com/repos/Yelp/detect-secrets/deployments","created_at":"2017-12-05T00:38:38Z","updated_at":"2018-07-03T01:42:54Z","pushed_at":"2018-07-03T16:34:32Z","git_url":"git://github.com/Yelp/detect-secrets.git","ssh_url":"git@github.com:Yelp/detect-secrets.git","clone_url":"https://github.com/Yelp/detect-secrets.git","svn_url":"https://github.com/Yelp/detect-secrets","homepage":"","size":314,"stargazers_count":437,"watchers_count":437,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":34,"open_issues":2,"watchers":437,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/detect-secrets/pulls/48"},"html":{"href":"https://github.com/Yelp/detect-secrets/pull/48"},"issue":{"href":"https://api.github.com/repos/Yelp/detect-secrets/issues/48"},"comments":{"href":"https://api.github.com/repos/Yelp/detect-secrets/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/detect-secrets/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/detect-secrets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/detect-secrets/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/detect-secrets/statuses/969e570e0f8e4aeda1036d771c30da376d2a28ed"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":136,"deletions":12,"changed_files":7}}
{"actor":{"display_login":"domanchi"}}