Open charles545587 opened 3 months ago
hey @charles545587 you can find an example here https://github.com/bridgecrewio/checkov/blob/main/docs/3.Custom%20Policies/Python%20Custom%20Policies.md#example under b
. just pass guideline="xyz"
to the super().__init__(...)
call.
I have added this to my code, it runs without error, but does not return the text provided, instead it continues to return a url link to doc.prismacloud.io
Describe the issue When creating custom checkov checks in YAML, you can add a guideline in the metadata. When trying to do the same in python it is not apparent how you can add a guideline. Can this either be added or documentation showing how to add this metadata.
Examples
In YAML.. there is a guideline in the metadata
metadata: name: "some name" id: "CKV_AWS_CUSTOM_1" category: "GENERAL_SECURITY" guideline: "some url"
In Python
Version (please complete the following information):
Additional context I am sure this is possible, I have tried adding a guideline variable but it does not return the url and seems to return a generic url