ci: render

Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/1279074171
This commit is contained in:
2024-05-05 15:44:52 +00:00
parent 7efb408637
commit ac9c66371f

View File

@@ -1,18 +1,38 @@
.generate_sbom:
image: registry.internal.durp.info/anchore/syft:${SYFT_VERSION}
image: registry.internal.durp.info/nixos/nix:latest
script:
# Begin of syft-install.sh
- |
#Syft install
nix-shell -p syft
# End of syft-install.sh
# Begin of syft-mkdir.sh
- |
#mkdir for syft files
mkdir $CI_PROJECT_DIR/syft
# End of syft-mkdir.sh
# Begin of syft-go.sh
- |
#Syft scan for go
if [ -f "go.mod" ]; then
syft go.mod -o cyclonedx-json=syft/${CI_PROJECT_NAME}.sbom.json
fi
# End of syft-go.sh
artifacts:
expire_in: 1 hour
paths:
- $CI_PROJECT_DIR/syft
.generate_cve:
image: registry.internal.durp.info/anchore/grype:${GRYPE_VERSION}
image: registry.internal.durp.info/nixos/nix:latest
script:
# Begin of grype-install.sh
- |
#Syft install
nix-shell -p grype
# End of grype-install.sh
# Begin of grype.sh
- |
#grype scan sboms