Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gh-clone-all auth error #24

Open
dideler opened this issue Dec 10, 2021 · 0 comments
Open

Fix gh-clone-all auth error #24

dideler opened this issue Dec 10, 2021 · 0 comments

Comments

@dideler
Copy link
Owner

dideler commented Dec 10, 2021

When the auth step fails, we don't handle it properly. Instead the scripts runs in a degraded state.

github.com
  X github.com: the token in GITHUB_TOKEN is missing required scope 'read:org'

fish: Unknown command: \{\n\ \ \ \ echo\ Must\ authenticate\ via\ GitHub\ CLI:\ gh\ auth\ login\ 1\>\&2\n\ \ \ \ exit\ 1\n\ \ \}
~/.config/fish/functions/gh-clone-all.fish (line 2): '{ ... }' is not supported for grouping commands. Please use 'begin; ...; end'
  gh auth status >/dev/null || {
    echo "Must authenticate via GitHub CLI: gh auth login" 1>&2
    exit 1
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant