Thanks to Jake Champion for sharing this great tip!
Projects that have been archived in Github but that have already been imported into Snyk will continue to notify you of vulnerabilities. Some users may want to remove Archived projects from your Snyk Organization in bulk to prevent unwanted notifications or too much bloat in your Organization.
Currently, Snyk does not have a feature to do this in an automated fashion, but you can leverage Chrome's developer tools to get a list of all Imported (in Snyk) and Archived (in Github) projects as follows:
- Navigate to your Org, and click on Add Project > Github
- Expand the relevant Github Repo(s) and launch developer tools (Command + Option + J on Mac)
- Click Console and paste:
Array.from(document.querySelectorAll('label [d="M3.5 7.52h17V20.1a1 1 0 0 1-1 1h-15a1 1 0 0 1-1-1V7.52zm6.5 4.53h4a1 1 0 0 0 1-1 1 1 0 0 0-1-1.01h-4a1 1 0 0 0 0 2.01zM21 3a1 1 0 0 1 1 1v2.02a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4A1 1 0 0 1 3 3h18z"]')).filter(a => a.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.querySelectorAll('[d="M9.3 19.7L3 13.4l1.9-2L9.3 16 20.1 5.1l1.9 2z"]').length).map(a=>a.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.querySelector('span').innerText)
4. Press Enter
You'll be presented with a list of Orgs that are Imported and Archived: