Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import targets for the ACR [Feature Request] #428

Open
bugwrangler opened this issue Feb 21, 2023 · 0 comments
Open

Import targets for the ACR [Feature Request] #428

bugwrangler opened this issue Feb 21, 2023 · 0 comments

Comments

@bugwrangler
Copy link

Describe the user need

I want Snyk to supply a target JSON list for the ACR or allow CSV Import instead JSON

As of now, I am using the following bash script to generate the list of images from the ACR. This generate the CSV

registry_name='sec'
destination='snyk-auto-import/output.csv'
az acr login --name $registry_name
touch $destination

repos="$(az acr repository list -n $registry_name --output tsv)"

for i in $repos; do
    images="$(az acr repository show-tags -n $registry_name --repository $i --output tsv --orderby time_desc)"
    for j in $images; do
        echo $i":"$j >> $destination;
    done;
done;

cat output.csv 

Describe expected behaviour

It would be nice if snyk can supply the target json similar SCM target - https://github.com/snyk-tech-services/snyk-api-import/blob/master/docs/import-data.md or allow the user to supply the CSV

Additional context

This feature can be available in the Integration UI, rather than running the additional script

@bugwrangler bugwrangler changed the title Import targets for the ACR Import targets for the ACR [Feature Request] Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant