{"action":"opened","number":185,"pull_request":{"url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/185","id":115273572,"html_url":"https://github.com/zendesk/zendesk_apps_tools/pull/185","diff_url":"https://github.com/zendesk/zendesk_apps_tools/pull/185.diff","patch_url":"https://github.com/zendesk/zendesk_apps_tools/pull/185.patch","issue_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/185","number":185,"state":"open","locked":false,"title":"Travis: Add Sourceclear security scan to CI","user":{"login":"imohammedzen","id":23624531,"avatar_url":"https://avatars3.githubusercontent.com/u/23624531?v=3","gravatar_id":"","url":"https://api.github.com/users/imohammedzen","html_url":"https://github.com/imohammedzen","followers_url":"https://api.github.com/users/imohammedzen/followers","following_url":"https://api.github.com/users/imohammedzen/following{/other_user}","gists_url":"https://api.github.com/users/imohammedzen/gists{/gist_id}","starred_url":"https://api.github.com/users/imohammedzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imohammedzen/subscriptions","organizations_url":"https://api.github.com/users/imohammedzen/orgs","repos_url":"https://api.github.com/users/imohammedzen/repos","events_url":"https://api.github.com/users/imohammedzen/events{/privacy}","received_events_url":"https://api.github.com/users/imohammedzen/received_events","type":"User","site_admin":false},"body":"### Context\r\nSource Clear helps us to find vulnerabilities in third party components ( open source libraries) which we consume in our code base. Once we identify issues, we can manage them using Source Clear SaaS portal.\r\n\r\nThis uses the CI interface of srcclr and piping to bash is considered after evaluating multiple options so its safe.  \r\n\r\n### Approach\r\n\r\nThis PR modifies .travis.yml to do the following\r\n1. Runs sourceclear under after_success task of travis. \r\n2. Downloads source clear shell script from download.sourceclear.com \r\n3. Runs sourceclear on the codebase. \r\n\r\n### Dependencies\r\n1. Downloads and Installs srcclr tool from https://download.srcclr.com/ci.sh\r\n2. Uses a secret token (SRCCLR_API_TOKEN) via travis environment settings. If not, exits gracefully.\r\n\r\n### References\r\nhttps://www.sourceclear.com/docs/what-is-sourceclear/\r\nhttps://www.sourceclear.com/docs/command-line-interface/\r\n\r\n/cc @scott-reed  @zenav @zendesk/vegemite \r\n\r\n### Checklist and Tests\r\nTravis script change only and No production code is touched. \r\n\r\n### Risks\r\nLow: might take extra few seconds to run the scan. srcclr job might fail if source clear site is not reachable. \r\n","created_at":"2017-04-11T09:10:01Z","updated_at":"2017-04-11T09:10:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/185/commits","review_comments_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/185/comments","review_comment_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/185/comments","statuses_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/statuses/2e9174c6b598eaedfd080011756947224bbfdb73","head":{"label":"zendesk:imran/sourceclear","ref":"imran/sourceclear","sha":"2e9174c6b598eaedfd080011756947224bbfdb73","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars0.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":6392706,"name":"zendesk_apps_tools","full_name":"zendesk/zendesk_apps_tools","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars0.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_apps_tools","description":null,"fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_apps_tools","forks_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/deployments","created_at":"2012-10-25T18:57:26Z","updated_at":"2017-02-02T09:42:51Z","pushed_at":"2017-04-11T08:59:09Z","git_url":"git://github.com/zendesk/zendesk_apps_tools.git","ssh_url":"git@github.com:zendesk/zendesk_apps_tools.git","clone_url":"https://github.com/zendesk/zendesk_apps_tools.git","svn_url":"https://github.com/zendesk/zendesk_apps_tools","homepage":null,"size":875,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":16,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"1f6d51c3e2f436bddaecea5e9538c8f5891cec24","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars0.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":6392706,"name":"zendesk_apps_tools","full_name":"zendesk/zendesk_apps_tools","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars0.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_apps_tools","description":null,"fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_apps_tools","forks_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/releases{/id}","deployments_url":"https://api.github.com/repos/zendesk/zendesk_apps_tools/deployments","created_at":"2012-10-25T18:57:26Z","updated_at":"2017-02-02T09:42:51Z","pushed_at":"2017-04-11T08:59:09Z","git_url":"git://github.com/zendesk/zendesk_apps_tools.git","ssh_url":"git@github.com:zendesk/zendesk_apps_tools.git","clone_url":"https://github.com/zendesk/zendesk_apps_tools.git","svn_url":"https://github.com/zendesk/zendesk_apps_tools","homepage":null,"size":875,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/185"},"html":{"href":"https://github.com/zendesk/zendesk_apps_tools/pull/185"},"issue":{"href":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/185"},"comments":{"href":"https://api.github.com/repos/zendesk/zendesk_apps_tools/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/zendesk_apps_tools/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/zendesk_apps_tools/statuses/2e9174c6b598eaedfd080011756947224bbfdb73"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":11,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"imohammedzen"}}