fix new ci, 6
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Wolfgang Hottgenroth 2025-02-04 16:02:52 +01:00
parent 574e2886f5
commit 71773968c9
Signed by: wn
GPG Key ID: 18FDFA577A8871AD

View File

@ -7,8 +7,6 @@ steps:
- go mod tidy
- go build -a -installsuffix nocgo -o udi main.go
- cp udi ../..
- ls -l /woodpecker
- ls -l /woodpecker/go
scan:
image: quay.io/wollud1969/woodpecker-helper:0.5.1
@ -22,8 +20,9 @@ steps:
DTRACK_API_URL:
from_secret: dtrack_api_url
commands:
- export GOPATH=/woodpecker/go
- export GOPATH=/woodpecker/go # the export is required, otherwise trivy will not consider the variable
- HOME=/home/`id -nu`
- TAG="${CI_COMMIT_TAG:-$CI_COMMIT_SHA}
- |
trivy fs \
--server $TRIVY_URL \
@ -39,7 +38,7 @@ steps:
-H "X-Api-Key: $DTRACK_API_KEY" \
-F "autoCreate=true" \
-F "projectName=$CI_REPO" \
-F "projectVersion=$CI_COMMIT_SHA" \
-F "projectVersion=$TAG" \
-F "bom=@/tmp/sbom.xml"\
"$DTRACK_API_URL/api/v1/bom"
when: