The purpose of this script is to run through Snyk Orgs to deactivate and reactivate all projects within. This will help rebuild the webhooks for SCM integration(s).
-
Clone this repository locally
-
(Optional) Define your Snyk API token (You can find your token in your General Account Settings after you login to Snyk.)
export SNYK_TOKEN={API_TOKEN}- Install required pip packages
pip install -r requirements.txt- Run the main.py script - define all required org(s) in the --orgs argument
python3 main.py --orgs "org-slug-1 org-slug-2"