This script applies 1 or more project tag to a Snyk monitored Code Analysis project.
📝 Set your environment variable SNYK_TOKEN
Option/Argument | Description | Example |
---|---|---|
--project-tags | Project Tags | key1=value1 |
--help | Shows this message and exit | |
json_filepath | Snyk Code output JSON filepath | ./mycodejson.json |
pip install -r requirements.txt
To create tags key1:value1, key2:value2 to a project, use command:
python snyk-sast-tag.py "<snyk_code_output_json_filepath>" --project-tags="key1=value1,key2=value2"
Download the OS specific self-executable from Releases page and run it.
./snyk-sast-tag-Linux "<snyk_code_output_json_filepath>" --project-tags="key1=value1,key2=value2"