-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fine-grained access-tokens #12465
base: master
Are you sure you want to change the base?
Fine-grained access-tokens #12465
Conversation
if(! url.empty()) { | ||
for (auto & token : tokens) { | ||
auto first = url.find(token.first); | ||
if ( |
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.
Does this still work? If url
is e.g. https://github.com/...
, then it won't match with a token for github.com
anymore, right? You may need to use parseURL()
to get rid of the scheme part of the URL.
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.
Perhaps that is a misnomer. The "url" is made here: https://github.com/NixOS/nix/pull/12465/files#diff-be2f63dc22d73bd86ee70820979ee54ff2bb5cef76e3bbb53a673fddfd2a1b5cR211
Motivation
Support fine-grained tokens, multiple tokens per host.
Context
Supports:
Fixes: #8474