-
Notifications
You must be signed in to change notification settings - Fork 360
inject the account token from the pre-commit config to the docker image #265
Comments
Would you consider a PR to add in a repos:
- repo: https://github.com/datreeio/datree
rev: 0.14.49
hooks:
- id: datree-docker
args: ['--token abcd123456789'] If you're open to that approach I could mock something up to quickly test if this solution will work with the existing pre-commit-hooks.yaml file and the existing args being passed in using the |
Hi @kevholmes , The issue here is adding this behavior to the docker run functionality, allowing docker to have the local token in the pre-commit step. One of the solutions can be doing |
Hey @dimabru, Yeah, that's my issue with using the env var solution, there's not really any support for that with the |
I see. Can we achieve the same solution running This is not a constraint though, if adding a token flag is the best solution we can certainly do that and update docs for clarity |
I'll mock something up to see if we can get $TOKEN into the datree docker img that pre-commit runs. It's not something that I've run into in the documentation so it might be supported just undocumented. It makes sense to try and exhaust our potential solutions before adding more complexity to the app. |
Is your feature request related to a problem? Please describe.
when running Datree's pre-commit, there is no ("native") way to pass the account token to the docker image
Describe the solution you'd like
A way to inject the account token from the pre-commit config
Describe alternatives you've considered
pass the account token as env variable to the docker image
The text was updated successfully, but these errors were encountered: