{"action":"opened","issue":{"url":"https://api.github.com/repos/netlify/cli/issues/162","repository_url":"https://api.github.com/repos/netlify/cli","labels_url":"https://api.github.com/repos/netlify/cli/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/netlify/cli/issues/162/comments","events_url":"https://api.github.com/repos/netlify/cli/issues/162/events","html_url":"https://github.com/netlify/cli/issues/162","id":373229186,"node_id":"MDU6SXNzdWUzNzMyMjkxODY=","number":162,"title":"CI/CD commands result in constant token authorisation","user":{"login":"andrew-s","id":479306,"node_id":"MDQ6VXNlcjQ3OTMwNg==","avatar_url":"https://avatars2.githubusercontent.com/u/479306?v=4","gravatar_id":"","url":"https://api.github.com/users/andrew-s","html_url":"https://github.com/andrew-s","followers_url":"https://api.github.com/users/andrew-s/followers","following_url":"https://api.github.com/users/andrew-s/following{/other_user}","gists_url":"https://api.github.com/users/andrew-s/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-s/subscriptions","organizations_url":"https://api.github.com/users/andrew-s/orgs","repos_url":"https://api.github.com/users/andrew-s/repos","events_url":"https://api.github.com/users/andrew-s/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T22:27:58Z","updated_at":"2018-10-23T22:27:58Z","closed_at":null,"author_association":"NONE","body":"I think that this is a bug because the current setup seemed to work in an earlier version (slightly different docs) - currently I'm getting;\r\n\r\n```\r\n$ netlify deploy --prod --dir /builds/app/dist\r\nLogging into your Netlify account...\r\nOpening https://app.netlify.com/authorize?response_type=ticket&ticket=xxx\r\n---------------------------\r\nError: Unable to open browser automatically\r\n\r\nPlease open your browser & open the URL below to login:\r\nhttps://app.netlify.com/authorize?response_type=ticket&ticket=xxx\r\n---------------------------\r\n```\r\n\r\nSame thing happens if I do `netlify init` first. I have the following as environment variables;\r\n\r\n```\r\nNETLIFY_AUTH_TOKEN=xxx\r\nNETLIFY_SITE_ID=xxx\r\n```\r\n\r\nIf I do authorise it, it'll work just for that one session and then the next run of the pipeline will ask for authorisation again.\r\n\r\nWhat are the correct set of commands or any further required environment variables?\r\n\r\nOther information;\r\n\r\nDocker image: node:8.12.0 \r\nnetlify-cli@2.1.2\r\n\r\nThanks!"}}
{"actor":{"display_login":"andrew-s"}}