diff --git a/api/router/file_router.go b/api/router/file_router.go index c3c1cb482..441fd555f 100644 --- a/api/router/file_router.go +++ b/api/router/file_router.go @@ -380,8 +380,8 @@ func (r *FileRouter) List(c *fiber.Ctx) error { return errorpkg.NewInvalidQueryParamError("query") } opts := service.FileListOptions{ - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, } diff --git a/api/router/group_router.go b/api/router/group_router.go index 9017925c7..ecb96afd1 100644 --- a/api/router/group_router.go +++ b/api/router/group_router.go @@ -147,8 +147,8 @@ func (r *GroupRouter) List(c *fiber.Ctx) error { res, err := r.groupSvc.List(service.GroupListOptions{ Query: query, OrganizationID: c.Query("organization_id"), - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c)) diff --git a/api/router/insights_router.go b/api/router/insights_router.go index 591808790..e4cb0eb2b 100644 --- a/api/router/insights_router.go +++ b/api/router/insights_router.go @@ -200,8 +200,8 @@ func (r *InsightsRouter) ListEntities(c *fiber.Ctx) error { } res, err := r.insightsSvc.ListEntities(c.Params("id"), service.InsightsListEntitiesOptions{ Query: query, - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c)) diff --git a/api/router/invitation_router.go b/api/router/invitation_router.go index 055b9bd02..b370a1fb3 100644 --- a/api/router/invitation_router.go +++ b/api/router/invitation_router.go @@ -119,8 +119,8 @@ func (r *InvitationRouter) GetIncoming(c *fiber.Ctx) error { return errorpkg.NewInvalidQueryParamError("sort_order") } res, err := r.invitationSvc.GetIncoming(service.InvitationListOptions{ - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c)) @@ -199,8 +199,8 @@ func (r *InvitationRouter) GetOutgoing(c *fiber.Ctx) error { return errorpkg.NewInvalidQueryParamError("sort_order") } res, err := r.invitationSvc.GetOutgoing(orgID, service.InvitationListOptions{ - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c)) diff --git a/api/router/organization_router.go b/api/router/organization_router.go index 93433e4b4..b91723512 100644 --- a/api/router/organization_router.go +++ b/api/router/organization_router.go @@ -204,8 +204,8 @@ func (r *OrganizationRouter) List(c *fiber.Ctx) error { } res, err := r.orgSvc.List(service.OrganizationListOptions{ Query: query, - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c)) diff --git a/api/router/snapshot_router.go b/api/router/snapshot_router.go index e215a0654..ea315922b 100644 --- a/api/router/snapshot_router.go +++ b/api/router/snapshot_router.go @@ -96,8 +96,8 @@ func (r *SnapshotRouter) List(c *fiber.Ctx) error { return errorpkg.NewInvalidQueryParamError("sort_order") } res, err := r.snapshotSvc.List(fileID, service.SnapshotListOptions{ - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c)) diff --git a/api/router/task_router.go b/api/router/task_router.go index 9767933ea..36e573972 100644 --- a/api/router/task_router.go +++ b/api/router/task_router.go @@ -123,8 +123,8 @@ func (r *TaskRouter) List(c *fiber.Ctx) error { } res, err := r.taskSvc.List(service.TaskListOptions{ Query: query, - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c)) diff --git a/api/router/user_router.go b/api/router/user_router.go index 5364a1bd2..abf01a2af 100644 --- a/api/router/user_router.go +++ b/api/router/user_router.go @@ -102,8 +102,8 @@ func (r *UserRouter) List(c *fiber.Ctx) error { ExcludeGroupMembers: excludeGroupMembers, SortBy: sortBy, SortOrder: sortOrder, - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 }, userID) if err != nil { return err diff --git a/api/router/workspace_router.go b/api/router/workspace_router.go index 667616524..72357bce7 100644 --- a/api/router/workspace_router.go +++ b/api/router/workspace_router.go @@ -143,8 +143,8 @@ func (r *WorkspaceRouter) List(c *fiber.Ctx) error { } res, err := r.workspaceSvc.List(service.WorkspaceListOptions{ Query: query, - Page: uint(page), - Size: uint(size), + Page: uint(page), // #nosec G103 + Size: uint(size), // #nosec G103 SortBy: sortBy, SortOrder: sortOrder, }, GetUserID(c))