Skip to content

spr init using token #240

Description

@tekumara

spr init now authenticates using the spr OAuth app see #221

However this must be authorised for use with my organisation:

  🛑  Getting github repo info
  caused by:  GitHub
  caused by:  Although you appear to have the correct authorization credentials, the `mycorp`
              organization has enabled OAuth App access restrictions, meaning that data access to third-parties
              is limited. For more information on these restrictions, including how to enable this app, visit
              https://docs.github.com/articles/restricting-access-to-your-organization-s-data/
              Documentation URL: https://docs.github.com/rest/repos/repos#get-a-repository

Is it possible to provide my own token to spr init?

eg:

GITHUB_TOKEN=$(gh auth token) spr init

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions