Who can help me?
- I want to implement uploading SBOM-file xxxx.xml to Dependency Track in GitLab СI/СD pipeline
- Global idea (next step): at the start of the build (beginning of the pipeline), create a SBOM-file and upload it to Dependency Track, now I use a manually created SBOM-file.
With the following composition of gitlab-ci.yml:
DT_SCA:
stage: test
script:
- git clone https://gitlab.com/.../test.git
- cd test/
- curl
-X "PUT" "http://х.х.х.х:8080/api/v1/bom"
-H "X-API-Key:xxxx"
-H "Content-Type:multipart/form-data" /// option 2. -H "Content-Type:application/json'
-d @хххх.xml /// option 2. -d @хххх.json
I get a 500 error (Internal Server Error).
Tried different variations, always different errors.
At the same time, there is no official possibility of integration. Help me please.
Is there a ready solution? Thank you!