Skip to content

snyk-ps/snyk-sast-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snyk logo

snyk-sast-tag

Description

This script applies 1 or more project tag to a Snyk monitored Code Analysis project.

Note

📝 Set your environment variable SNYK_TOKEN

Command-line Parameters

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

Quick-start

pip install -r requirements.txt

Build and Run Example

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"

Use

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"