-
Notifications
You must be signed in to change notification settings - Fork 398
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
Improve codecov #1373
Improve codecov #1373
Conversation
2024-07-30 11:47:11: =========TEST START========== |
LGTM |
|
||
predicates := types.LoadAuthPolicyPredicates(ctx) | ||
|
||
rules := make([]*authcommon.StrategyDetail, 0, args.Limit) |
Check failure
Code scanning / CodeQL
Slice memory allocation with excessive size value High
user-provided value
This memory allocation depends on a
user-provided value
This memory allocation depends on a
user-provided value
This memory allocation depends on a
user-provided value
This memory allocation depends on a
user-provided value
This memory allocation depends on a
user-provided value
This memory allocation depends on a
user-provided value
This memory allocation depends on a
user-provided value
@@ -381,23 +359,23 @@ | |||
} | |||
|
|||
principalRole, _ := strconv.ParseInt(principalType, 10, 64) | |||
if err := model.CheckPrincipalType(int(principalRole)); err != nil { | |||
if err := authcommon.CheckPrincipalType(int(principalRole)); err != nil { |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.ParseInt
err error | ||
) | ||
|
||
// 找这个用户所关联的用户组 | ||
if model.PrincipalType(principalRole) == model.PrincipalUser { | ||
if authcommon.PrincipalType(principalRole) == authcommon.PrincipalUser { |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.ParseInt
@@ -407,7 +385,7 @@ | |||
} | |||
} | |||
|
|||
pResources, err := svr.storage.GetStrategyResources(principalId, model.PrincipalType(principalRole)) | |||
pResources, err := svr.storage.GetStrategyResources(principalId, authcommon.PrincipalType(principalRole)) |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
Please provide issue(s) of this PR:
Fixes #
To help us figure out who should review this PR, please put an X in all the areas that this PR affects.
Please check any characteristics that apply to this pull request.