mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
Fix typo in error description Bug fix where kubescape get policies from file Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com> Missing '.json' extension when getting Framework Paths Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com> Appropriate test case for FrameworksPaths Bug fix where kubescape fails to read from frameworks local paths Signed-off-by: Mehdi Moussaif <m.moussaif42@gmail.com>
Kubescape core package
// initialize kubescape
ks := core.NewKubescape()
// scan cluster
results, err := ks.Scan(&cautils.ScanInfo{})
// convert scan results to json
jsonRes, err := results.ToJson()