This commit is contained in:
DeveloperDurp 2024-05-05 09:43:42 -05:00
parent 668906398d
commit db6054d437
6 changed files with 53 additions and 2 deletions

9
scripts/scanner/grype.sh Normal file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
#%%MULTILINE_YAML_START
#grype scan sboms
for i in syft/*.sbom.json;
do filename=${i%*.sbom.json};
filename=${filename##/};
grype syft/$i -o json --file syft/$filename.cve.json;
done

View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
#%%MULTILINE_YAML_START
#Syft scan for go
if [ -f "go.mod" ]; then
syft go.mod -o cyclonedx-json=syft/${CI_PROJECT_NAME}.sbom.json
fi

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
#%%MULTILINE_YAML_START
#mkdir for syft files
mkdir $CI_PROJECT_DIR/syft