CircleCI-Archived / orb-starter-kit

A starter kit for new orb authors
https://circleci.com/orbs
MIT License
27 stars 23 forks source link

Running the orb-init.sh script failed to build with CircleCI, API token& Personal access token created. #34

Closed vm930 closed 4 years ago

vm930 commented 4 years ago

Describe the bug This happens after I've created a CircleCI account. Git installed and configured locally. A CircleCI Personal API Token was created, A GitHub Personal Access Token was created. however, built fail when running the orb-init.sh script.

To Reproduce Steps to reproduce the behavior:

  1. install circleCI
  2. run command ./orb-init.sh errors out:
    
    circleci cli already installed
    Error: Failed to query the GitHub API for updates.

This is most likely due to GitHub rate-limiting on unauthenticated requests.

To have the circleci-cli make authenticated requests please:

  1. Generate a token at https://github.com/settings/tokens
  2. Set the token by either adding it to your ~/.gitconfig or setting the GITHUB_TOKEN environment variable.

Instructions for generating a token can be found at: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/

We call the GitHub releases API to look for new releases. More information about that API can be found here: https://developer.github.com/v3/repos/releases/

: GET https://api.github.com/repos/CircleCI-Public/circleci-cli/releases: 401 Bad credentials [] setting token internally Error: Failed to query the GitHub API for updates.

This is most likely due to GitHub rate-limiting on unauthenticated requests.

To have the circleci-cli make authenticated requests please:

  1. Generate a token at https://github.com/settings/tokens
  2. Set the token by either adding it to your ~/.gitconfig or setting the GITHUB_TOKEN environment variable.

Instructions for generating a token can be found at: https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/

We call the GitHub releases API to look for new releases. More information about that API can be found here: https://developer.github.com/v3/repos/releases/

: GET https://api.github.com/repos/CircleCI-Public/circleci-cli/releases: 401 Bad credentials []

Testing authentication to GitHub.com Enter passphrase for key '/Users/vicky/.ssh/id_rsa':



**Expected behavior**
running successfully build my first orbs 
vm930 commented 4 years ago

@KyleTryon FYI. Thanks for walking me through the installation process, creating an issue for future reference.

KyleTryon commented 4 years ago

Thank you @vm930! The latest update to the Orb Starter kit no longer requires a personal access token so we should be able to safely close this. Thanks for testing out the orb starter kit! I hope the new updated version is able to help you in the future.