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