{"comment":{"url":"https://api.github.com/repos/mozilla/balrog/comments/16393229","html_url":"https://github.com/mozilla/balrog/commit/712587fb255d6b60bb6c539b66dd3852c1af1530#commitcomment-16393229","id":16393229,"user":{"login":"TaskClusterRobot","id":14795478,"avatar_url":"https://avatars.githubusercontent.com/u/14795478?v=3","gravatar_id":"","url":"https://api.github.com/users/TaskClusterRobot","html_url":"https://github.com/TaskClusterRobot","followers_url":"https://api.github.com/users/TaskClusterRobot/followers","following_url":"https://api.github.com/users/TaskClusterRobot/following{/other_user}","gists_url":"https://api.github.com/users/TaskClusterRobot/gists{/gist_id}","starred_url":"https://api.github.com/users/TaskClusterRobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaskClusterRobot/subscriptions","organizations_url":"https://api.github.com/users/TaskClusterRobot/orgs","repos_url":"https://api.github.com/users/TaskClusterRobot/repos","events_url":"https://api.github.com/users/TaskClusterRobot/events{/privacy}","received_events_url":"https://api.github.com/users/TaskClusterRobot/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"712587fb255d6b60bb6c539b66dd3852c1af1530","created_at":"2016-02-29T16:18:07Z","updated_at":"2016-02-29T16:18:07Z","body":"TaskCluster, You didn't give the task-graph scopes allowing it define tasks on the queue. ```[\n    {\n        \"message\": \"You do not have sufficient scopes. This request requires you\\nto have one of the following sets of scopes:\\n[\\n  [\\n    \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\"\\n  ],\\n  [\\n    \\\"queue:create-task:aws-provisioner-v1/taskcluster-images\\\"\\n  ],\\n  [\\n    \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\",\\n    \\\"queue:task-group-id:task-graph-scheduler/X5aEuVezQP24pnqVcb5LMQ\\\"\\n  ]\\n]\\n\\nYou only have the scopes:\\n[\\n  \\\"assume:repo:github.com/mozilla/balrog:pull-request\\\",\\n  \\\"queue:create-task:aws-provisioner-v1/github-worker\\\",\\n  \\\"secrets:get:garbage/*\\\",\\n  \\\"secrets:get:repo:github.com/mozilla/balrog:*\\\",\\n  \\\"secrets:set:garbage/*\\\"\\n]\\n\\nIn other words you are missing scopes from one of the options:\\n * Option 0:\\n    - \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\"\\n * Option 1:\\n    - \\\"queue:create-task:aws-provisioner-v1/taskcluster-images\\\"\\n * Option 2:\\n    - \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\", and\\n    - \\\"queue:task-group-id:task-graph-scheduler/X5aEuVezQP24pnqVcb5LMQ\\\"\\n----\\nerrorCode:  InsufficientScopes\\nstatusCode: 403\\nrequestInfo:\\n  method:   defineTask\\n  params:   {\\\"taskId\\\":\\\"JTu8LjQ8RAyN6dpWlEn4aw\\\"}\\n  payload:  {\\n  \\\"provisionerId\\\": \\\"aws-provisioner-v1\\\",\\n  \\\"workerType\\\": \\\"taskcluster-images\\\",\\n  \\\"payload\\\": {\\n    \\\"maxRunTime\\\": 3600,\\n    \\\"image\\\": \\\"taskcluster/image_builder\\\",\\n    \\\"command\\\": [\\n      \\\"/bin/bash\\\",\\n      \\\"-c\\\",\\n      \\\"git clone $GITHUB_HEAD_REPO_URL && cd balrog && git checkout $GITHUB_HEAD_BRANCH && tox && scripts/push-dockerimage.sh\\\"\\n    ],\\n    \\\"env\\\": {\\n      \\\"GITHUB_EVENT\\\": \\\"push\\\",\\n      \\\"GITHUB_BRANCH\\\": \\\"production-dockerfile\\\",\\n      \\\"GITHUB_BASE_BRANCH\\\": \\\"production-dockerfile\\\",\\n      \\\"GITHUB_HEAD_REPO_URL\\\": \\\"https://github.com/mozilla/balrog.git\\\",\\n      \\\"GITHUB_HEAD_USER\\\": \\\"bhearsum\\\",\\n      \\\"GITHUB_HEAD_SHA\\\": \\\"712587fb255d6b60bb6c539b66dd3852c1af1530\\\",\\n      \\\"GITHUB_HEAD_BRANCH\\\": \\\"production-dockerfile\\\",\\n      \\\"GITHUB_HEAD_USER_EMAIL\\\": \\\"bhearsum@noreply.github.com\\\"\\n    }\\n  },\\n  \\\"extra\\\": {\\n    \\\"github\\\": {\\n      \\\"env\\\": true,\\n      \\\"events\\\": [\\n        \\\"push\\\"\\n      ]\\n    }\\n  },\\n  \\\"metadata\\\": {\\n    \\\"name\\\": \\\"Balrog Push\\\",\\n    \\\"description\\\": \\\"Push\\\",\\n    \\\"owner\\\": \\\"bhearsum@noreply.github.com\\\",\\n    \\\"source\\\": \\\"https://github.com/mozilla/balrog.git\\\"\\n  },\\n  \\\"created\\\": \\\"2016-02-29T16:18:06.978Z\\\",\\n  \\\"deadline\\\": \\\"2016-03-01T16:18:06.978Z\\\",\\n  \\\"schedulerId\\\": \\\"task-graph-scheduler\\\",\\n  \\\"taskGroupId\\\": \\\"X5aEuVezQP24pnqVcb5LMQ\\\",\\n  \\\"routes\\\": [],\\n  \\\"priority\\\": \\\"normal\\\",\\n  \\\"retries\\\": 5,\\n  \\\"scopes\\\": [],\\n  \\\"tags\\\": {},\\n  \\\"expires\\\": \\\"2017-03-01T16:18:06.978Z\\\"\\n}\\n  time:     2016-02-29T16:18:07.072Z\\ndetails:\\n{\\n  \\\"scopesets\\\": [\\n    [\\n      \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\"\\n    ],\\n    [\\n      \\\"queue:create-task:aws-provisioner-v1/taskcluster-images\\\"\\n    ],\\n    [\\n      \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\",\\n      \\\"queue:task-group-id:task-graph-scheduler/X5aEuVezQP24pnqVcb5LMQ\\\"\\n    ]\\n  ],\\n  \\\"scopes\\\": [\\n    \\\"assume:repo:github.com/mozilla/balrog:pull-request\\\",\\n    \\\"queue:create-task:aws-provisioner-v1/github-worker\\\",\\n    \\\"secrets:get:garbage/*\\\",\\n    \\\"secrets:get:repo:github.com/mozilla/balrog:*\\\",\\n    \\\"secrets:set:garbage/*\\\"\\n  ]\\n}\",\n        \"error\": {\n            \"code\": \"InsufficientScopes\",\n            \"message\": \"You do not have sufficient scopes. This request requires you\\nto have one of the following sets of scopes:\\n[\\n  [\\n    \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\"\\n  ],\\n  [\\n    \\\"queue:create-task:aws-provisioner-v1/taskcluster-images\\\"\\n  ],\\n  [\\n    \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\",\\n    \\\"queue:task-group-id:task-graph-scheduler/X5aEuVezQP24pnqVcb5LMQ\\\"\\n  ]\\n]\\n\\nYou only have the scopes:\\n[\\n  \\\"assume:repo:github.com/mozilla/balrog:pull-request\\\",\\n  \\\"queue:create-task:aws-provisioner-v1/github-worker\\\",\\n  \\\"secrets:get:garbage/*\\\",\\n  \\\"secrets:get:repo:github.com/mozilla/balrog:*\\\",\\n  \\\"secrets:set:garbage/*\\\"\\n]\\n\\nIn other words you are missing scopes from one of the options:\\n * Option 0:\\n    - \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\"\\n * Option 1:\\n    - \\\"queue:create-task:aws-provisioner-v1/taskcluster-images\\\"\\n * Option 2:\\n    - \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\", and\\n    - \\\"queue:task-group-id:task-graph-scheduler/X5aEuVezQP24pnqVcb5LMQ\\\"\\n----\\nerrorCode:  InsufficientScopes\\nstatusCode: 403\\nrequestInfo:\\n  method:   defineTask\\n  params:   {\\\"taskId\\\":\\\"JTu8LjQ8RAyN6dpWlEn4aw\\\"}\\n  payload:  {\\n  \\\"provisionerId\\\": \\\"aws-provisioner-v1\\\",\\n  \\\"workerType\\\": \\\"taskcluster-images\\\",\\n  \\\"payload\\\": {\\n    \\\"maxRunTime\\\": 3600,\\n    \\\"image\\\": \\\"taskcluster/image_builder\\\",\\n    \\\"command\\\": [\\n      \\\"/bin/bash\\\",\\n      \\\"-c\\\",\\n      \\\"git clone $GITHUB_HEAD_REPO_URL && cd balrog && git checkout $GITHUB_HEAD_BRANCH && tox && scripts/push-dockerimage.sh\\\"\\n    ],\\n    \\\"env\\\": {\\n      \\\"GITHUB_EVENT\\\": \\\"push\\\",\\n      \\\"GITHUB_BRANCH\\\": \\\"production-dockerfile\\\",\\n      \\\"GITHUB_BASE_BRANCH\\\": \\\"production-dockerfile\\\",\\n      \\\"GITHUB_HEAD_REPO_URL\\\": \\\"https://github.com/mozilla/balrog.git\\\",\\n      \\\"GITHUB_HEAD_USER\\\": \\\"bhearsum\\\",\\n      \\\"GITHUB_HEAD_SHA\\\": \\\"712587fb255d6b60bb6c539b66dd3852c1af1530\\\",\\n      \\\"GITHUB_HEAD_BRANCH\\\": \\\"production-dockerfile\\\",\\n      \\\"GITHUB_HEAD_USER_EMAIL\\\": \\\"bhearsum@noreply.github.com\\\"\\n    }\\n  },\\n  \\\"extra\\\": {\\n    \\\"github\\\": {\\n      \\\"env\\\": true,\\n      \\\"events\\\": [\\n        \\\"push\\\"\\n      ]\\n    }\\n  },\\n  \\\"metadata\\\": {\\n    \\\"name\\\": \\\"Balrog Push\\\",\\n    \\\"description\\\": \\\"Push\\\",\\n    \\\"owner\\\": \\\"bhearsum@noreply.github.com\\\",\\n    \\\"source\\\": \\\"https://github.com/mozilla/balrog.git\\\"\\n  },\\n  \\\"created\\\": \\\"2016-02-29T16:18:06.978Z\\\",\\n  \\\"deadline\\\": \\\"2016-03-01T16:18:06.978Z\\\",\\n  \\\"schedulerId\\\": \\\"task-graph-scheduler\\\",\\n  \\\"taskGroupId\\\": \\\"X5aEuVezQP24pnqVcb5LMQ\\\",\\n  \\\"routes\\\": [],\\n  \\\"priority\\\": \\\"normal\\\",\\n  \\\"retries\\\": 5,\\n  \\\"scopes\\\": [],\\n  \\\"tags\\\": {},\\n  \\\"expires\\\": \\\"2017-03-01T16:18:06.978Z\\\"\\n}\\n  time:     2016-02-29T16:18:07.072Z\\ndetails:\\n{\\n  \\\"scopesets\\\": [\\n    [\\n      \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\"\\n    ],\\n    [\\n      \\\"queue:create-task:aws-provisioner-v1/taskcluster-images\\\"\\n    ],\\n    [\\n      \\\"queue:define-task:aws-provisioner-v1/taskcluster-images\\\",\\n      \\\"queue:task-group-id:task-graph-scheduler/X5aEuVezQP24pnqVcb5LMQ\\\"\\n    ]\\n  ],\\n  \\\"scopes\\\": [\\n    \\\"assume:repo:github.com/mozilla/balrog:pull-request\\\",\\n    \\\"queue:create-task:aws-provisioner-v1/github-worker\\\",\\n    \\\"secrets:get:garbage/*\\\",\\n    \\\"secrets:get:repo:github.com/mozilla/balrog:*\\\",\\n    \\\"secrets:set:garbage/*\\\"\\n  ]\\n}\",\n            \"requestInfo\": {\n                \"method\": \"defineTask\",\n                \"params\": {\n                    \"taskId\": \"JTu8LjQ8RAyN6dpWlEn4aw\"\n                },\n                \"payload\": {\n                    \"provisionerId\": \"aws-provisioner-v1\",\n                    \"workerType\": \"taskcluster-images\",\n                    \"payload\": {\n                        \"maxRunTime\": 3600,\n                        \"image\": \"taskcluster/image_builder\",\n                        \"command\": [\n                            \"/bin/bash\",\n                            \"-c\",\n                            \"git clone $GITHUB_HEAD_REPO_URL && cd balrog && git checkout $GITHUB_HEAD_BRANCH && tox && scripts/push-dockerimage.sh\"\n                        ],\n                        \"env\": {\n                            \"GITHUB_EVENT\": \"push\",\n                            \"GITHUB_BRANCH\": \"production-dockerfile\",\n                            \"GITHUB_BASE_BRANCH\": \"production-dockerfile\",\n                            \"GITHUB_HEAD_REPO_URL\": \"https://github.com/mozilla/balrog.git\",\n                            \"GITHUB_HEAD_USER\": \"bhearsum\",\n                            \"GITHUB_HEAD_SHA\": \"712587fb255d6b60bb6c539b66dd3852c1af1530\",\n                            \"GITHUB_HEAD_BRANCH\": \"production-dockerfile\",\n                            \"GITHUB_HEAD_USER_EMAIL\": \"bhearsum@noreply.github.com\"\n                        }\n                    },\n                    \"extra\": {\n                        \"github\": {\n                            \"env\": true,\n                            \"events\": [\n                                \"push\"\n                            ]\n                        }\n                    },\n                    \"metadata\": {\n                        \"name\": \"Balrog Push\",\n                        \"description\": \"Push\",\n                        \"owner\": \"bhearsum@noreply.github.com\",\n                        \"source\": \"https://github.com/mozilla/balrog.git\"\n                    },\n                    \"created\": \"2016-02-29T16:18:06.978Z\",\n                    \"deadline\": \"2016-03-01T16:18:06.978Z\",\n                    \"schedulerId\": \"task-graph-scheduler\",\n                    \"taskGroupId\": \"X5aEuVezQP24pnqVcb5LMQ\",\n                    \"routes\": [],\n                    \"priority\": \"normal\",\n                    \"retries\": 5,\n                    \"scopes\": [],\n                    \"tags\": {},\n                    \"expires\": \"2017-03-01T16:18:06.978Z\"\n                },\n                \"time\": \"2016-02-29T16:18:07.072Z\"\n            },\n            \"details\": {\n                \"scopesets\": [\n                    [\n                        \"queue:define-task:aws-provisioner-v1/taskcluster-images\"\n                    ],\n                    [\n                        \"queue:create-task:aws-provisioner-v1/taskcluster-images\"\n                    ],\n                    [\n                        \"queue:define-task:aws-provisioner-v1/taskcluster-images\",\n                        \"queue:task-group-id:task-graph-scheduler/X5aEuVezQP24pnqVcb5LMQ\"\n                    ]\n                ],\n                \"scopes\": [\n                    \"assume:repo:github.com/mozilla/balrog:pull-request\",\n                    \"queue:create-task:aws-provisioner-v1/github-worker\",\n                    \"secrets:get:garbage/*\",\n                    \"secrets:get:repo:github.com/mozilla/balrog:*\",\n                    \"secrets:set:garbage/*\"\n                ]\n            }\n        }\n    }\n]```"}}