Skip to content
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

fix(checks): Use correct input for AVD-KSV-01010 #54

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Conversation

simar7
Copy link
Member

@simar7 simar7 commented Jan 13, 2024

Fixes the following issue

2024-01-13T14:25:34.160-0700    DEBUG   [misconf] 25:34.160914000 terraform.scanner.rego           Error occurred while parsing: Users/s/Library/Caches/trivy/policy/content/policies/kubernetes/policies/aquacommercial/configmap_with_sensitive.rego, Users/s/Library/Caches/trivy/policy/content/policies/kubernetes/policies/aquacommercial/configmap_with_sensitive.rego:96: rego_type_error: undefined ref: input.data[d]
        input.data[d]
              ^
              have: "data"
              want (one of): ["apiVersion" "kind" "metadata" "rules" "spec"]

```shell
2024-01-13T14:25:34.160-0700    DEBUG   [misconf] 25:34.160914000 terraform.scanner.rego           Error occurred while parsing: Users/s/Library/Caches/trivy/policy/content/policies/kubernetes/policies/aquacommercial/configmap_with_sensitive.rego, Users/s/Library/Caches/trivy/policy/content/policies/kubernetes/policies/aquacommercial/configmap_with_sensitive.rego:96: rego_type_error: undefined ref: input.data[d]
        input.data[d]
              ^
              have: "data"
              want (one of): ["apiVersion" "kind" "metadata" "rules" "spec"]
```
@simar7 simar7 self-assigned this Jan 13, 2024
Copy link
Contributor

@nikpivkin nikpivkin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simar7 simar7 merged commit 3f16e8a into main Jan 15, 2024
4 checks passed
@simar7 simar7 deleted the fix-avd-ksv-01010 branch January 15, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants