This commit is contained in:
parent
c40805b4cb
commit
b99b47ca40
@ -3,6 +3,7 @@ steps:
|
||||
image: golang:1.22.5-alpine3.20
|
||||
commands:
|
||||
- cd src/udi
|
||||
- go mod tidy
|
||||
- go build -a -installsuffix nocgo -o udi main.go
|
||||
- cp udi ../..
|
||||
|
||||
@ -25,7 +26,7 @@ steps:
|
||||
--token $TRIVY_TOKEN \
|
||||
--format cyclonedx \
|
||||
--scanners license \
|
||||
--output sbom.xml \
|
||||
--output /tmp/sbom.xml \
|
||||
.
|
||||
- cat /tmp/sbom.xml
|
||||
- |
|
||||
@ -35,7 +36,7 @@ steps:
|
||||
-F "autoCreate=true" \
|
||||
-F "projectName=$CI_REPO" \
|
||||
-F "projectVersion=$CI_COMMIT_SHA" \
|
||||
-F "bom=@sbom.xml"\
|
||||
-F "bom=@/tmp/sbom.xml"\
|
||||
"$DTRACK_API_URL/api/v1/bom"
|
||||
when:
|
||||
- event: [push, tag]
|
||||
|
Loading…
x
Reference in New Issue
Block a user