{"action":"created","comment":{"url":"https://api.github.com/repos/google/oss-fuzz/pulls/comments/93525654","pull_request_review_id":14055691,"id":93525654,"diff_hunk":"@@ -42,4 +42,12 @@ echo \"CXXFLAGS=$CXXFLAGS\"\n \n echo \"---------------------------------------------------------------\"\n \n-bash -x $SRC/build.sh\n+BUILD_CMD=\"bash -x $SRC/build.sh\"\n+if [ -z \"${SWITCH_UID+}\" ]; then\n+  adduser -u $SWITCH_UID --disabled-password --no-create-home --gecos '' ossfuzz\n+  chown -R ossfuzz /src\n+  chown ossfuzz /out","path":"infra/base-images/base-libfuzzer/compile","position":9,"original_position":9,"commit_id":"5ea9924ec781c7da2935f7214a5cc756f935d5ea","original_commit_id":"d95709339f22fdc7a631612cca44c92d8ff76515","user":{"login":"mikea","id":3236,"avatar_url":"https://avatars.githubusercontent.com/u/3236?v=3","gravatar_id":"","url":"https://api.github.com/users/mikea","html_url":"https://github.com/mikea","followers_url":"https://api.github.com/users/mikea/followers","following_url":"https://api.github.com/users/mikea/following{/other_user}","gists_url":"https://api.github.com/users/mikea/gists{/gist_id}","starred_url":"https://api.github.com/users/mikea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikea/subscriptions","organizations_url":"https://api.github.com/users/mikea/orgs","repos_url":"https://api.github.com/users/mikea/repos","events_url":"https://api.github.com/users/mikea/events{/privacy}","received_events_url":"https://api.github.com/users/mikea/received_events","type":"User","site_admin":false},"body":"done","created_at":"2016-12-21T21:45:42Z","updated_at":"2016-12-21T22:01:49Z","html_url":"https://github.com/google/oss-fuzz/pull/211#discussion_r93525654","pull_request_url":"https://api.github.com/repos/google/oss-fuzz/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/comments/93525654"},"html":{"href":"https://github.com/google/oss-fuzz/pull/211#discussion_r93525654"},"pull_request":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/google/oss-fuzz/pulls/211","id":98839857,"html_url":"https://github.com/google/oss-fuzz/pull/211","diff_url":"https://github.com/google/oss-fuzz/pull/211.diff","patch_url":"https://github.com/google/oss-fuzz/pull/211.patch","issue_url":"https://api.github.com/repos/google/oss-fuzz/issues/211","number":211,"state":"open","locked":false,"title":"[infra] use $SWITCH_UID if it is defined (fixes #30)","user":{"login":"mikea","id":3236,"avatar_url":"https://avatars.githubusercontent.com/u/3236?v=3","gravatar_id":"","url":"https://api.github.com/users/mikea","html_url":"https://github.com/mikea","followers_url":"https://api.github.com/users/mikea/followers","following_url":"https://api.github.com/users/mikea/following{/other_user}","gists_url":"https://api.github.com/users/mikea/gists{/gist_id}","starred_url":"https://api.github.com/users/mikea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikea/subscriptions","organizations_url":"https://api.github.com/users/mikea/orgs","repos_url":"https://api.github.com/users/mikea/repos","events_url":"https://api.github.com/users/mikea/events{/privacy}","received_events_url":"https://api.github.com/users/mikea/received_events","type":"User","site_admin":false},"body":"If #SWITCH_UID is defined, then compile script will create a user\r\nwith a given UID and switch to it prior to calling project's build.sh.","created_at":"2016-12-20T22:43:39Z","updated_at":"2016-12-21T22:01:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c235de44e1ecc59b1cdc9bc58feb291896fe9ae3","assignee":{"login":"oliverchang","id":759062,"avatar_url":"https://avatars.githubusercontent.com/u/759062?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverchang","html_url":"https://github.com/oliverchang","followers_url":"https://api.github.com/users/oliverchang/followers","following_url":"https://api.github.com/users/oliverchang/following{/other_user}","gists_url":"https://api.github.com/users/oliverchang/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverchang/subscriptions","organizations_url":"https://api.github.com/users/oliverchang/orgs","repos_url":"https://api.github.com/users/oliverchang/repos","events_url":"https://api.github.com/users/oliverchang/events{/privacy}","received_events_url":"https://api.github.com/users/oliverchang/received_events","type":"User","site_admin":false},"assignees":[{"login":"oliverchang","id":759062,"avatar_url":"https://avatars.githubusercontent.com/u/759062?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverchang","html_url":"https://github.com/oliverchang","followers_url":"https://api.github.com/users/oliverchang/followers","following_url":"https://api.github.com/users/oliverchang/following{/other_user}","gists_url":"https://api.github.com/users/oliverchang/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverchang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverchang/subscriptions","organizations_url":"https://api.github.com/users/oliverchang/orgs","repos_url":"https://api.github.com/users/oliverchang/repos","events_url":"https://api.github.com/users/oliverchang/events{/privacy}","received_events_url":"https://api.github.com/users/oliverchang/received_events","type":"User","site_admin":false},{"login":"inferno-chromium","id":8731250,"avatar_url":"https://avatars.githubusercontent.com/u/8731250?v=3","gravatar_id":"","url":"https://api.github.com/users/inferno-chromium","html_url":"https://github.com/inferno-chromium","followers_url":"https://api.github.com/users/inferno-chromium/followers","following_url":"https://api.github.com/users/inferno-chromium/following{/other_user}","gists_url":"https://api.github.com/users/inferno-chromium/gists{/gist_id}","starred_url":"https://api.github.com/users/inferno-chromium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inferno-chromium/subscriptions","organizations_url":"https://api.github.com/users/inferno-chromium/orgs","repos_url":"https://api.github.com/users/inferno-chromium/repos","events_url":"https://api.github.com/users/inferno-chromium/events{/privacy}","received_events_url":"https://api.github.com/users/inferno-chromium/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/google/oss-fuzz/pulls/211/commits","review_comments_url":"https://api.github.com/repos/google/oss-fuzz/pulls/211/comments","review_comment_url":"https://api.github.com/repos/google/oss-fuzz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/oss-fuzz/issues/211/comments","statuses_url":"https://api.github.com/repos/google/oss-fuzz/statuses/d6a3e551327077fa028b3bef72774779605bb9ce","head":{"label":"google:uid","ref":"uid","sha":"d6a3e551327077fa028b3bef72774779605bb9ce","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":63809205,"name":"oss-fuzz","full_name":"google/oss-fuzz","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/oss-fuzz","description":"OSS-Fuzz - continuous fuzzing of open source software","fork":false,"url":"https://api.github.com/repos/google/oss-fuzz","forks_url":"https://api.github.com/repos/google/oss-fuzz/forks","keys_url":"https://api.github.com/repos/google/oss-fuzz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/oss-fuzz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/oss-fuzz/teams","hooks_url":"https://api.github.com/repos/google/oss-fuzz/hooks","issue_events_url":"https://api.github.com/repos/google/oss-fuzz/issues/events{/number}","events_url":"https://api.github.com/repos/google/oss-fuzz/events","assignees_url":"https://api.github.com/repos/google/oss-fuzz/assignees{/user}","branches_url":"https://api.github.com/repos/google/oss-fuzz/branches{/branch}","tags_url":"https://api.github.com/repos/google/oss-fuzz/tags","blobs_url":"https://api.github.com/repos/google/oss-fuzz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/oss-fuzz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/oss-fuzz/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/oss-fuzz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/oss-fuzz/statuses/{sha}","languages_url":"https://api.github.com/repos/google/oss-fuzz/languages","stargazers_url":"https://api.github.com/repos/google/oss-fuzz/stargazers","contributors_url":"https://api.github.com/repos/google/oss-fuzz/contributors","subscribers_url":"https://api.github.com/repos/google/oss-fuzz/subscribers","subscription_url":"https://api.github.com/repos/google/oss-fuzz/subscription","commits_url":"https://api.github.com/repos/google/oss-fuzz/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/oss-fuzz/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/oss-fuzz/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/oss-fuzz/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/oss-fuzz/contents/{+path}","compare_url":"https://api.github.com/repos/google/oss-fuzz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/oss-fuzz/merges","archive_url":"https://api.github.com/repos/google/oss-fuzz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/oss-fuzz/downloads","issues_url":"https://api.github.com/repos/google/oss-fuzz/issues{/number}","pulls_url":"https://api.github.com/repos/google/oss-fuzz/pulls{/number}","milestones_url":"https://api.github.com/repos/google/oss-fuzz/milestones{/number}","notifications_url":"https://api.github.com/repos/google/oss-fuzz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/oss-fuzz/labels{/name}","releases_url":"https://api.github.com/repos/google/oss-fuzz/releases{/id}","deployments_url":"https://api.github.com/repos/google/oss-fuzz/deployments","created_at":"2016-07-20T19:39:50Z","updated_at":"2016-12-21T19:23:40Z","pushed_at":"2016-12-21T22:01:48Z","git_url":"git://github.com/google/oss-fuzz.git","ssh_url":"git@github.com:google/oss-fuzz.git","clone_url":"https://github.com/google/oss-fuzz.git","svn_url":"https://github.com/google/oss-fuzz","homepage":"","size":2623,"stargazers_count":951,"watchers_count":951,"language":"Shell","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":141,"mirror_url":null,"open_issues_count":32,"forks":141,"open_issues":32,"watchers":951,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"b57371a098f40634950b9a939ab3e58144a62a95","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":63809205,"name":"oss-fuzz","full_name":"google/oss-fuzz","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/oss-fuzz","description":"OSS-Fuzz - continuous fuzzing of open source software","fork":false,"url":"https://api.github.com/repos/google/oss-fuzz","forks_url":"https://api.github.com/repos/google/oss-fuzz/forks","keys_url":"https://api.github.com/repos/google/oss-fuzz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/oss-fuzz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/oss-fuzz/teams","hooks_url":"https://api.github.com/repos/google/oss-fuzz/hooks","issue_events_url":"https://api.github.com/repos/google/oss-fuzz/issues/events{/number}","events_url":"https://api.github.com/repos/google/oss-fuzz/events","assignees_url":"https://api.github.com/repos/google/oss-fuzz/assignees{/user}","branches_url":"https://api.github.com/repos/google/oss-fuzz/branches{/branch}","tags_url":"https://api.github.com/repos/google/oss-fuzz/tags","blobs_url":"https://api.github.com/repos/google/oss-fuzz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/oss-fuzz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/oss-fuzz/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/oss-fuzz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/oss-fuzz/statuses/{sha}","languages_url":"https://api.github.com/repos/google/oss-fuzz/languages","stargazers_url":"https://api.github.com/repos/google/oss-fuzz/stargazers","contributors_url":"https://api.github.com/repos/google/oss-fuzz/contributors","subscribers_url":"https://api.github.com/repos/google/oss-fuzz/subscribers","subscription_url":"https://api.github.com/repos/google/oss-fuzz/subscription","commits_url":"https://api.github.com/repos/google/oss-fuzz/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/oss-fuzz/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/oss-fuzz/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/oss-fuzz/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/oss-fuzz/contents/{+path}","compare_url":"https://api.github.com/repos/google/oss-fuzz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/oss-fuzz/merges","archive_url":"https://api.github.com/repos/google/oss-fuzz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/oss-fuzz/downloads","issues_url":"https://api.github.com/repos/google/oss-fuzz/issues{/number}","pulls_url":"https://api.github.com/repos/google/oss-fuzz/pulls{/number}","milestones_url":"https://api.github.com/repos/google/oss-fuzz/milestones{/number}","notifications_url":"https://api.github.com/repos/google/oss-fuzz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/oss-fuzz/labels{/name}","releases_url":"https://api.github.com/repos/google/oss-fuzz/releases{/id}","deployments_url":"https://api.github.com/repos/google/oss-fuzz/deployments","created_at":"2016-07-20T19:39:50Z","updated_at":"2016-12-21T19:23:40Z","pushed_at":"2016-12-21T22:01:48Z","git_url":"git://github.com/google/oss-fuzz.git","ssh_url":"git@github.com:google/oss-fuzz.git","clone_url":"https://github.com/google/oss-fuzz.git","svn_url":"https://github.com/google/oss-fuzz","homepage":"","size":2623,"stargazers_count":951,"watchers_count":951,"language":"Shell","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":141,"mirror_url":null,"open_issues_count":32,"forks":141,"open_issues":32,"watchers":951,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/211"},"html":{"href":"https://github.com/google/oss-fuzz/pull/211"},"issue":{"href":"https://api.github.com/repos/google/oss-fuzz/issues/211"},"comments":{"href":"https://api.github.com/repos/google/oss-fuzz/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/oss-fuzz/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/google/oss-fuzz/statuses/d6a3e551327077fa028b3bef72774779605bb9ce"}}}}
{"actor":{"display_login":"mikea"}}