Codefresh
tip
When working with Codefresh workflows, the best way to incorporate Datree is to use our official Codefresh plugin.
TO-DO list for setting-up Datree in your CI
- Get your account token
- Set DATREE_TOKEN as a shared secret variable
- Add datree to your CI script
CI config example
version: "1.0"
stages:
- "clone"
- "datree-policy-check"
steps:
clone:
title: "Cloning repository"
type: "git-clone"
repo: "myOrg/myRepo"
revision: "${{CF_BRANCH}}"
git: "github"
stage: "clone"
datree-policy-check:
title: Run Datree policy check
type: datree/datree-policy-check
stage: "datree-policy-check"
arguments:
DATREE_TOKEN: "${{DATREE_TOKEN}}"
INPUT_PATH: 'fileName.yaml'