It is recommended to incorporate Datree's policy check in your CI process. This way, every time the CI is triggered, it will also run datree test to verify the Kubernetes files are always configured according to your standards. Before adding Datree to your CI, please make sure you have completed these two tasks:

✅ Configured your centralized policy

✅ Copy of your account token number

Best practice for setting account token in the CI

Set the account token as an environment variable (DATREE_TOKEN) in the CI itself

Datree CLI should be able to integrate with every CI, but we have already tested it on several common CI provides:

Working examples of each one of those CI's can be found on this public repository.