File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ the token can interact with. Crate names can contain `*` to match one or more
69
69
characters.
70
70
71
71
For example, a crates scope of ` serde,serde-* ` allows the token to act on the
72
- ` serde ` crate or any crate starting with ` serde- ` , if the user is an owner of
73
- those crates.
72
+ ` serde ` crate or any present or future crates starting with ` serde- ` , if the
73
+ user is an owner of those crates.
74
74
75
75
The crates scope will allow access to all present and future crates matching
76
76
it. When an endpoint that doesn't interact with crates is called by a token
@@ -132,9 +132,9 @@ foo,foo-*
132
132
Any combination of those characters is allowed, but crates.io might define a
133
133
complexity limit for the generated regular expressions.
134
134
135
- Every time an endpoint acting on a crate is called the regex is desugared,
136
- compiled and used to match the crate name. If no match is found the request is
137
- denied .
135
+ The pattern will be evaluated during each API call, and if no match is found
136
+ the request will be denied. Because it's evaluated every time, a crates scope
137
+ will allow interacting with matching crates published after token creation .
138
138
139
139
The check for the crates scope is separate from crate ownership: having a scope
140
140
that technically permits to interact with a crate the user doesn't own will be
You can’t perform that action at this time.
0 commit comments