Tool designed to add tags in bulk to Snyk projects
Project description
Snyk Tags Tool
Snyk Tags is a CLI tool that uses the Snyk Project API to assign tags in bulk to Snyk projects based on the type
Snyk Tags will update all projects of a type within a specific Snyk Group with either an SCA, SAST, IaC or Container tag to help filter projects by Snyk product.
Currently it does not support custom tags or only applying the tags to a single Organisation.
Once this is run, go into the UI and click on the tags filter in the projects page (left-hand menu). Select the Type tag and the product as the key. All your Snyk projects from a specific product will be shown via this filter.
Installation and requirements
Requirements
Requires Python version above 3.6
Installation
To install the simplest way is to use pip:
pip install snyk-tags
Alternatively you can clone the repo and then run the following commands:
poetry install # To install dependencies
python -m snyk-tags # To run snyk-tags
Usage
Usage: snyk-tags [OPTIONS] COMMAND [ARGS]
COMMAND:
- apply:
snyk-tags apply --help
- container:
snyk-tags apply container
- iac:
snyk-tags apply iac
- sast:
snyk-tags apply sast
- sca:
snyk-tags apply sca
- container:
OPTIONS:
- [-v, --version]:
snyk tags -v
- [--containertype]:
snyk-tags apply container --containertype=deb
- Define the type of Snyk Container projects to tag
- [--scatype]:
snyk-tags apply sca --scatype=maven
- Define the type of Snyk Open Source projects to tag
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for snyk_tags-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e34ca3d78a501011fadca4e51118fe1011e65f5799ee98833c743735b477df3 |
|
MD5 | 5b9cf2827efcca99da44876e65176169 |
|
BLAKE2b-256 | 0f12ca80e2b10c56792378de6e0f6789041b7446ace2d9b3c1c74d5347c0c867 |