{"action":"created","issue":{"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1065","repository_url":"https://api.github.com/repos/postmarketOS/pmbootstrap","labels_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1065/labels{/name}","comments_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1065/comments","events_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1065/events","html_url":"https://github.com/postmarketOS/pmbootstrap/issues/1065","id":285267452,"number":1065,"title":"Don't allow pmbootstrap to run as root","user":{"login":"ollieparanoid","id":6033024,"avatar_url":"https://avatars1.githubusercontent.com/u/6033024?v=4","gravatar_id":"","url":"https://api.github.com/users/ollieparanoid","html_url":"https://github.com/ollieparanoid","followers_url":"https://api.github.com/users/ollieparanoid/followers","following_url":"https://api.github.com/users/ollieparanoid/following{/other_user}","gists_url":"https://api.github.com/users/ollieparanoid/gists{/gist_id}","starred_url":"https://api.github.com/users/ollieparanoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollieparanoid/subscriptions","organizations_url":"https://api.github.com/users/ollieparanoid/orgs","repos_url":"https://api.github.com/users/ollieparanoid/repos","events_url":"https://api.github.com/users/ollieparanoid/events{/privacy}","received_events_url":"https://api.github.com/users/ollieparanoid/received_events","type":"User","site_admin":false},"labels":[{"id":618670315,"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/labels/easy","name":"easy","color":"f9d0c4","default":false},{"id":651646593,"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/labels/pmbootstrap","name":"pmbootstrap","color":"c2e0c6","default":false},{"id":658046019,"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/labels/usability","name":"usability","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-31T16:59:59Z","updated_at":"2017-12-31T17:17:22Z","closed_at":null,"author_association":"OWNER","body":"We use sudo when we need to run commands as root. Two people have run pmbootstrap as root today and screwed up their work folder permissions that way, it would be better if we checked for this."},"comment":{"url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/comments/354615178","html_url":"https://github.com/postmarketOS/pmbootstrap/issues/1065#issuecomment-354615178","issue_url":"https://api.github.com/repos/postmarketOS/pmbootstrap/issues/1065","id":354615178,"user":{"login":"PabloCastellano","id":73274,"avatar_url":"https://avatars1.githubusercontent.com/u/73274?v=4","gravatar_id":"","url":"https://api.github.com/users/PabloCastellano","html_url":"https://github.com/PabloCastellano","followers_url":"https://api.github.com/users/PabloCastellano/followers","following_url":"https://api.github.com/users/PabloCastellano/following{/other_user}","gists_url":"https://api.github.com/users/PabloCastellano/gists{/gist_id}","starred_url":"https://api.github.com/users/PabloCastellano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PabloCastellano/subscriptions","organizations_url":"https://api.github.com/users/PabloCastellano/orgs","repos_url":"https://api.github.com/users/PabloCastellano/repos","events_url":"https://api.github.com/users/PabloCastellano/events{/privacy}","received_events_url":"https://api.github.com/users/PabloCastellano/received_events","type":"User","site_admin":false},"created_at":"2017-12-31T17:17:22Z","updated_at":"2017-12-31T17:17:22Z","author_association":"MEMBER","body":"What option do you think is better?\r\n\r\n1. Just don't allow running pmbootstrap as root\r\n1. Allow running pmbootstrap as root if some flag like `--allow-root` is specified\r\n\r\nI'd go for the second but would like to hear more opinions first"}}
{"actor":{"display_login":"PabloCastellano"}}