Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Create a CircleCI orb that runs the Datree CLI #404

Closed
hadar-co opened this issue Jan 30, 2022 · 7 comments
Closed

Create a CircleCI orb that runs the Datree CLI #404

hadar-co opened this issue Jan 30, 2022 · 7 comments
Assignees
Labels
enhancement New feature or request plugins up for grabs Looking for a contributor to take this task
Projects

Comments

@hadar-co
Copy link
Contributor

As part of our effort to support various plugins, we would like to create a CircleCI orb that will enable users to run the Datree CLI as part of their workflow/s.

Writing a CircleCI orb:

  • Requires knowledge of yaml.
  • Does not require knowledge of the Datree codebase.

To get started with creating a circleci orb, see the circleci orb documentation.
For all Datree-related resources, see the Datree documentation.

Specification and requirements:

  • The orb should support setting a Datree CLI token.
  • The orb should include an example workflow that uses it.
  • The orb should run “datree test” on a specific user-specified file/directory (see relevant Datree documentation).
  • The orb should support all of the “datree test” CLI arguments, as described in the documentation.
  • The orb should fail the workflow if any of the files failed Datree’s policy check.
  • Once finished, publish the orb to the orb registry.
@hadar-co hadar-co added enhancement New feature or request up for grabs Looking for a contributor to take this task plugins labels Jan 30, 2022
@github-actions github-actions bot added this to To Do in Datree Jan 30, 2022
@hadar-co hadar-co assigned hadar-co and unassigned hadar-co Feb 6, 2022
@bhavyastar
Copy link

bhavyastar commented Feb 6, 2022

Hello sir, @hadar-co I want to work on this issue. Will you guide me towards this issue?

@hadar-co
Copy link
Contributor Author

hadar-co commented Feb 6, 2022

@bhavyastar Sure :)
following our conversation, please read up on CircleCI orbs and let me know if you need any assistance

@noaabarki
Copy link
Contributor

Hi @bhavyastar! Just wanted to ping you regarding this issue. Do you need any guidance? Feel free to reach out :)

@hadar-co
Copy link
Contributor Author

assigning to @naorpeled

@naorpeled
Copy link
Contributor

😎

@naorpeled
Copy link
Contributor

The orb is ready to be used :)
https://github.com/naorpeled/datree-circleci-orb

@hadar-co
Copy link
Contributor Author

Awesome! Thanks @naorpeled :)

@eyarz eyarz closed this as completed Jun 22, 2022
Datree automation moved this from To Do to Done Jun 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request plugins up for grabs Looking for a contributor to take this task
Projects
Development

No branches or pull requests

5 participants