-
Notifications
You must be signed in to change notification settings - Fork 9
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] Adopt GitHub fine-graned token #8
[cli] Adopt GitHub fine-graned token #8
Conversation
Super! I'm out right now, will check in a few hours! |
@@ -6,23 +6,24 @@ import * as zx from 'zx'; | |||
import { insideDir } from '../utils/filesystem.js'; | |||
import { Submodule } from '../utils/submodules.js'; | |||
|
|||
const convertToAuthURL = (url: string, githubToken: string): string => { | |||
const convertToAuthURL = (url: string, githubToken: string, isFineGrained: boolean): string => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Would love to rewrite this by making the params into an single object soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@harumaxy Just released 1.0.7! Sorry to keep you waiting. 馃殌 |
Hello, I'm also using vercel and trying to include git submodule in build time.
This script is using classic Personal Access Token, but I wanna use new fine-graned PAT because I work for a company and it's more suitable for access management for organization private repo.
It seems to need some fix to URL to use fine-grained token. (like this)
So I added
--fg-token
flag, and fix code to addoauth2:
before token in Github URL if fine-grained token is given.I would appreciate if you could review 馃檹.