{"action":"opened","number":1185,"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls/1185","id":172315935,"html_url":"https://github.com/GoogleCloudPlatform/forseti-security/pull/1185","diff_url":"https://github.com/GoogleCloudPlatform/forseti-security/pull/1185.diff","patch_url":"https://github.com/GoogleCloudPlatform/forseti-security/pull/1185.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/issues/1185","number":1185,"state":"open","locked":false,"title":"Ensure 'full_name' has an even number of segments","user":{"login":"arbeit","id":1688051,"avatar_url":"https://avatars2.githubusercontent.com/u/1688051?v=4","gravatar_id":"","url":"https://api.github.com/users/arbeit","html_url":"https://github.com/arbeit","followers_url":"https://api.github.com/users/arbeit/followers","following_url":"https://api.github.com/users/arbeit/following{/other_user}","gists_url":"https://api.github.com/users/arbeit/gists{/gist_id}","starred_url":"https://api.github.com/users/arbeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbeit/subscriptions","organizations_url":"https://api.github.com/users/arbeit/orgs","repos_url":"https://api.github.com/users/arbeit/repos","events_url":"https://api.github.com/users/arbeit/events{/privacy}","received_events_url":"https://api.github.com/users/arbeit/received_events","type":"User","site_admin":false},"body":"The construction of a 'full_name' for 'iam_policy' resources (and\r\npossibly others) is broken since 3 segments are appended to the\r\n'full_name' of the parent resulting e.g. in\r\n\r\n    organization/111222333/iam_policy/organization/111222333/\r\n\r\nThis breaks other code (e.g. get_resources_from_full_name()) assuming\r\nthat a full_name consists of pairs of segments i.e.\r\n\r\n    organization/111222333/iam_policy/111222333/\r\n\r\nFixes issue #1174.\r\n","created_at":"2018-03-01T18:26:22Z","updated_at":"2018-03-01T18:26:22Z","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/GoogleCloudPlatform/forseti-security/pulls/1185/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls/1185/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/issues/1185/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/statuses/a3d154ad403ce2fc53a1053bae5e71628435266a","head":{"label":"arbeit:policy-fullname-1174","ref":"policy-fullname-1174","sha":"a3d154ad403ce2fc53a1053bae5e71628435266a","user":{"login":"arbeit","id":1688051,"avatar_url":"https://avatars2.githubusercontent.com/u/1688051?v=4","gravatar_id":"","url":"https://api.github.com/users/arbeit","html_url":"https://github.com/arbeit","followers_url":"https://api.github.com/users/arbeit/followers","following_url":"https://api.github.com/users/arbeit/following{/other_user}","gists_url":"https://api.github.com/users/arbeit/gists{/gist_id}","starred_url":"https://api.github.com/users/arbeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbeit/subscriptions","organizations_url":"https://api.github.com/users/arbeit/orgs","repos_url":"https://api.github.com/users/arbeit/repos","events_url":"https://api.github.com/users/arbeit/events{/privacy}","received_events_url":"https://api.github.com/users/arbeit/received_events","type":"User","site_admin":false},"repo":{"id":100593681,"name":"forseti-security","full_name":"arbeit/forseti-security","owner":{"login":"arbeit","id":1688051,"avatar_url":"https://avatars2.githubusercontent.com/u/1688051?v=4","gravatar_id":"","url":"https://api.github.com/users/arbeit","html_url":"https://github.com/arbeit","followers_url":"https://api.github.com/users/arbeit/followers","following_url":"https://api.github.com/users/arbeit/following{/other_user}","gists_url":"https://api.github.com/users/arbeit/gists{/gist_id}","starred_url":"https://api.github.com/users/arbeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbeit/subscriptions","organizations_url":"https://api.github.com/users/arbeit/orgs","repos_url":"https://api.github.com/users/arbeit/repos","events_url":"https://api.github.com/users/arbeit/events{/privacy}","received_events_url":"https://api.github.com/users/arbeit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arbeit/forseti-security","description":null,"fork":true,"url":"https://api.github.com/repos/arbeit/forseti-security","forks_url":"https://api.github.com/repos/arbeit/forseti-security/forks","keys_url":"https://api.github.com/repos/arbeit/forseti-security/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arbeit/forseti-security/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arbeit/forseti-security/teams","hooks_url":"https://api.github.com/repos/arbeit/forseti-security/hooks","issue_events_url":"https://api.github.com/repos/arbeit/forseti-security/issues/events{/number}","events_url":"https://api.github.com/repos/arbeit/forseti-security/events","assignees_url":"https://api.github.com/repos/arbeit/forseti-security/assignees{/user}","branches_url":"https://api.github.com/repos/arbeit/forseti-security/branches{/branch}","tags_url":"https://api.github.com/repos/arbeit/forseti-security/tags","blobs_url":"https://api.github.com/repos/arbeit/forseti-security/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arbeit/forseti-security/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arbeit/forseti-security/git/refs{/sha}","trees_url":"https://api.github.com/repos/arbeit/forseti-security/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arbeit/forseti-security/statuses/{sha}","languages_url":"https://api.github.com/repos/arbeit/forseti-security/languages","stargazers_url":"https://api.github.com/repos/arbeit/forseti-security/stargazers","contributors_url":"https://api.github.com/repos/arbeit/forseti-security/contributors","subscribers_url":"https://api.github.com/repos/arbeit/forseti-security/subscribers","subscription_url":"https://api.github.com/repos/arbeit/forseti-security/subscription","commits_url":"https://api.github.com/repos/arbeit/forseti-security/commits{/sha}","git_commits_url":"https://api.github.com/repos/arbeit/forseti-security/git/commits{/sha}","comments_url":"https://api.github.com/repos/arbeit/forseti-security/comments{/number}","issue_comment_url":"https://api.github.com/repos/arbeit/forseti-security/issues/comments{/number}","contents_url":"https://api.github.com/repos/arbeit/forseti-security/contents/{+path}","compare_url":"https://api.github.com/repos/arbeit/forseti-security/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arbeit/forseti-security/merges","archive_url":"https://api.github.com/repos/arbeit/forseti-security/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arbeit/forseti-security/downloads","issues_url":"https://api.github.com/repos/arbeit/forseti-security/issues{/number}","pulls_url":"https://api.github.com/repos/arbeit/forseti-security/pulls{/number}","milestones_url":"https://api.github.com/repos/arbeit/forseti-security/milestones{/number}","notifications_url":"https://api.github.com/repos/arbeit/forseti-security/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arbeit/forseti-security/labels{/name}","releases_url":"https://api.github.com/repos/arbeit/forseti-security/releases{/id}","deployments_url":"https://api.github.com/repos/arbeit/forseti-security/deployments","created_at":"2017-08-17T10:54:52Z","updated_at":"2017-08-17T10:54:55Z","pushed_at":"2018-03-01T18:24:32Z","git_url":"git://github.com/arbeit/forseti-security.git","ssh_url":"git@github.com:arbeit/forseti-security.git","clone_url":"https://github.com/arbeit/forseti-security.git","svn_url":"https://github.com/arbeit/forseti-security","homepage":"http://forsetisecurity.org","size":21564,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"GoogleCloudPlatform:2.0-dev","ref":"2.0-dev","sha":"17bb7546e8c3ff0eb1aeb3bb5eb1f6f4f2c9c7dd","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":82210080,"name":"forseti-security","full_name":"GoogleCloudPlatform/forseti-security","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars0.githubusercontent.com/u/2810941?v=4","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/forseti-security","description":"Forseti Security","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/deployments","created_at":"2017-02-16T18:01:26Z","updated_at":"2018-03-01T17:50:47Z","pushed_at":"2018-03-01T18:18:25Z","git_url":"git://github.com/GoogleCloudPlatform/forseti-security.git","ssh_url":"git@github.com:GoogleCloudPlatform/forseti-security.git","clone_url":"https://github.com/GoogleCloudPlatform/forseti-security.git","svn_url":"https://github.com/GoogleCloudPlatform/forseti-security","homepage":"https://forsetisecurity.org","size":22890,"stargazers_count":251,"watchers_count":251,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":77,"mirror_url":null,"archived":false,"open_issues_count":165,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":77,"open_issues":165,"watchers":251,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls/1185"},"html":{"href":"https://github.com/GoogleCloudPlatform/forseti-security/pull/1185"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/issues/1185"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/issues/1185/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls/1185/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/pulls/1185/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/forseti-security/statuses/a3d154ad403ce2fc53a1053bae5e71628435266a"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":7,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"arbeit"}}