#3861·kubescape

Refactor: Move getReadableID out of filesloaderutils

Author: Rucha0901Created Sep 17, 2026Updated Sep 17, 2026

Overview The helper function getReadableID(obj *objectsenvelopes.ScanObject) in core/pkg/resourcehandler/filesloaderutils.go is a generic helper that is buried in the resourcehandler package.

Solution Move this function to a shared utility package (core/cautils/scanobjectutils.go) and update its callers to use cautils.GetReadableID.