bridgecrewio / yor

Extensible auto-tagger for your IaC files. The ultimate way to link entities in the cloud back to the codified resource which created it.
https://www.yor.io
Apache License 2.0
808 stars 123 forks source link

How to persist changes when running Yor in docker container #550

Open dishikang123 opened 1 month ago

dishikang123 commented 1 month ago

I am testing Yor by running it in a docker container as part of a Jenkins pipeline. The pipeline clones the repository from GitHub and Yor was able to successfully add the tags. Question is how would I persist the changes back to the repository?

dishikang123 commented 1 month ago

Hi, Yes, I have tried committing the changes and was unsuccessful due to how my ci/cd pipeline is setup. I think the concept make sense but not practical as other deployment options.

On Thu, Aug 1, 2024, 5:10 PM Kwame Mintah @.***> wrote:

@dishikang123 https://github.com/dishikang123, need a bit of clarification.

If you're using docker to run yor, I am assuming you're cloning the source code into the container and then running yor within the container? Is it possible to commit the changes and push after completion.

Alternatively, if you just want to run yor and not commit - but want to keep the files, you would have to do a docker cp https://docs.docker.com/reference/cli/docker/container/cp/ and save it within the working directory.

— Reply to this email directly, view it on GitHub https://github.com/bridgecrewio/yor/issues/550#issuecomment-2263999694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJV774PSI2QLQ6SJDFIMZVLZPKP5XAVCNFSM6AAAAABLBLPLB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRTHE4TSNRZGQ . You are receiving this because you were mentioned.Message ID: @.***>