Skip to content

Commit

Permalink
fix: failed to eval rego misconfig policy (#2125)
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan authored Jun 9, 2024
1 parent b45ed1e commit de3ddf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/policy/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func LoadPoliciesData(policyPath []string) ([]string, error) {
policiesList := []string{}
fileList := []string{}
err := filepath.Walk(policyPath[0], func(path string, f os.FileInfo, err error) error {
if strings.Contains(path, "/kubernetes/") { // load only k8s policies
if strings.Contains(path, "policies/kubernetes/") { // load only k8s policies
fileList = append(fileList, path)
}
return nil
Expand Down

0 comments on commit de3ddf5

Please sign in to comment.