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

Not showing guideline from local custom policy #3594

Closed
jota3c opened this issue Sep 30, 2022 · 0 comments · Fixed by #3600
Closed

Not showing guideline from local custom policy #3594

jota3c opened this issue Sep 30, 2022 · 0 comments · Fixed by #3600
Labels

Comments

@jota3c
Copy link

jota3c commented Sep 30, 2022

Describe the issue
No guidelines and priority on results of custom policies when loaded using using --external-checks-dir.
Using the same policy added on bridgecrew.cloud works showing the guideline/priority on cli output.

Additional context
To reproduce :

metadata:
  name: "Check that all resources are tagged"
  guidelines: "guide link here"
  category: "general"
  severity: "low"
scope:
  provider: azure
definition:
  cond_type: "attribute"
  resource_types:
    - "all"
  attribute: "tags"
  operator: "exists"

checkov --version
2.1.242

checkov -d . --external-checks-dir checkov-test-policies/  --bc-api-key "xxx" --output junitxml --soft-fail 

Results :

                <testcase name="[NONE][] Check that all resources are tagged" classname="/main.tf.module.teste.azurerm_..." file="/main.tf">
                        <failure type="failure" message="Check that all resources are tagged">
Resource: module.teste.azurerm_...
File: /main.tf: 5-23
Guideline: None

Removing the local policy and adding on bridgecrew.cloud/policies :

                <testcase name="[LOW][removed-account-here] Check that all resources are tagged" classname="/main.tf.module.teste.azurerm_..." file="/main.tf">
                        <failure type="failure" message="Check that all resources are tagged">
Resource: module.teste.azurerm_...
File: /main.tf: 5-23
Guideline: guide link here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant