-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_tool_outputs.sh
19 lines (14 loc) · 1.66 KB
/
create_tool_outputs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#this is the count variable change this to change how many elements are removed for each attribute that is a per package element ie version or name and dep is removed based off of this number
#we also remove the other NTIA elemets
num=5
#if you wish to run sbom-scorecard
#python3 ./03_evaluate/02_protocol/sbsc_score_test.py -i ./02_generate/04_product/trivy_g/SPDX2.2 -o ./03_evaluate/04_product/ -f spdx -c $num
#python3 ./03_evaluate/02_protocol/sbsc_score_test.py -i ./02_generate/04_product/trivy_g/CDX1.5 -o ./03_evaluate/04_product/ -f cdx -da true -c $num
#python3 ./03_evaluate/02_protocol/sbsc_score_test.py -i ./02_generate/04_product/syft/SPDX2.2 -o ./03_evaluate/04_product/ -f spdx -da true -c $num
#python3 ./03_evaluate/02_protocol/sbsc_score_test.py -i ./02_generate/04_product/syft/CDX1.5 -o ./03_evaluate/04_product/ -f cdx -da true -c $num
#when running this section of code if it "stalls out" run each line one at a time and wait between each it help some python memory thing i think (I am able to get away with running the first 3 waiting then the last 1)
python3 ./03_evaluate/02_protocol/sbom_quality_tester.py -i ./02_generate/04_product/trivy_g/CDX1.5 -o ./03_evaluate/04_product/ -f cdx -c $num
python3 ./03_evaluate/02_protocol/sbom_quality_tester.py -i ./02_generate/04_product/trivy_g/SPDX2.2 -o ./03_evaluate/04_product/ -f spdx -da true -c $num
python3 ./03_evaluate/02_protocol/sbom_quality_tester.py -i ./02_generate/04_product/syft/CDX1.5 -o ./03_evaluate/04_product/ -f cdx -da true -c $num
python3 ./03_evaluate/02_protocol/sbom_quality_tester.py -i ./02_generate/04_product/syft/SPDX2.2 -o ./03_evaluate/04_product/ -f spdx -da true -c $num