Skip to main content

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

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'