{"id":21664017,"url":"https://github.com/datreeio/drone-datree","last_synced_at":"2025-06-18T03:03:37.624Z","repository":{"id":102935661,"uuid":"473559286","full_name":"datreeio/drone-datree","owner":"datreeio","description":"Drone plugin that runs the Datree CLI","archived":false,"fork":false,"pushed_at":"2022-06-06T06:04:17.000Z","size":7,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T00:08:19.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datreeio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-03-24T10:33:47.000Z","updated_at":"2022-07-31T17:24:58.000Z","dependencies_parsed_at":"2023-03-13T15:12:11.054Z","dependency_job_id":null,"html_url":"https://github.com/datreeio/drone-datree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/datreeio/drone-datree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdrone-datree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdrone-datree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdrone-datree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdrone-datree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datreeio","download_url":"https://codeload.github.com/datreeio/drone-datree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datreeio%2Fdrone-datree/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260477915,"owners_count":23015063,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T10:30:35.733Z","updated_at":"2025-06-18T03:03:32.593Z","avatar_url":"https://github.com/datreeio.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nA Drone plugin that runs the Datree CLI.  \nUse this plugin to easily scan your k8s manifest files, Helm charts and Kustomizations for misconfigurations as part of your CI.\n\n## Setup\nGet started in 2 simple steps:  \n\n* Obtain your Datree account token by following the instructions described [here](https://hub.datree.io/account-token).\n* Configure your token by passing it directly to the 'token' setting, or by setting it as a secret variable in your drone dashboard (see examples below).\n\n## Usage\n\nThe following settings determine the plugin's behavior:  \n| Setting | Required | Description |\n| --- | ----------- | --- |\n| **token** | Yes | your Datree CLI token. |\n| **path** | Yes | A path to the file/s you wish to run your Datree test against. This can be a single file or a [Glob pattern](https://www.digitalocean.com/community/tools/glob) signifying a directory. |\n| **cliArguments** | No | The desired [Datree CLI arguments](https://hub.datree.io/cli-arguments) for the policy check. |\n| **isHelmChart** | No | Specify whether the given path is a Helm chart. If this option is unused, the path will be considered as a regular yaml file. |\n| **helmArguments** | No | The Helm arguments to be used, if the path is a Helm chart. |\n| **isKustomization** | No | Specify whether the given path is a directory containing a \"kustomization.yaml\" file. If this option is unused, the path will be considered as a regular yaml file. |\n| **kustomizeArguments** | No | The Kustomize arguments to be used, if the path is a Kustomization directory. |  \n\n*For more information and examples of using this plugin with Helm/Kustomize, see below*\n\n## Examples\nHere is an example pipeline that runs a Datree policy check on a file in the repository, on every push/pull request. This example uses a drone secret variable for the CLI token (can be configured via the drone dashboard):\n```yaml\nkind: pipeline\ntype: docker\nname: default\n\nplatform:\n  os: linux\n  arch: arm64\n\nsteps:\n- name: datree-policy-check  \n  image: datree/drone-datree\n  settings:\n    token:\n      from_secret: datree_token\n    path: \"someDirectory/someFile.yaml\"\n\n  when:\n    event:\n    - push\n    - pull_request\n```\n\n### Using Helm\nThis plugin enables performing policy checks on Helm charts, by utilizing the [Datree Helm plugin](https://github.com/datreeio/helm-datree).\nTo test a Helm chart, simply set \"isHelmChart\" to 'true', and add any Helm arguments you wish to use to the \"helmArguments\" setting, like so:\n```yaml\nkind: pipeline\ntype: docker\nname: default\n\nsteps:\n- name: datree-policy-check  \n  image: datree/drone-datree\n  settings:\n    token:\n      from_secret: datree_token\n    path: \"my/chart/directory\"\n    isHelmChart: true\n    helmArguments: \"--values values.yaml\"\n```\n\n### Using Kustomize\nThis plugin utilizes the Datree CLI's built-in Kustomize support. To use the plugin to test a kustomization, set \"isKustomization\" to 'true', and add any Kustomize arguments you wish to use to the \"kustomizeArguments\" setting, like so:\n```yaml\nkind: pipeline\ntype: docker\nname: default\n\nsteps:\n- name: datree-policy-check  \n  image: datree/drone-datree\n  settings:\n    token:\n      from_secret: datree_token\n    path: \"my/kustomization/directory\"\n    isKustomization: true\n    kustomizeArguments:\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatreeio%2Fdrone-datree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatreeio%2Fdrone-datree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatreeio%2Fdrone-datree/lists"}