Skip to content

Upload Bom: Whats the Token in Response for? #2199

Answered by nscuro
JoergBruenner asked this question in Q&A
Discussion options

You must be logged in to vote

It can be used to poll whether DT is still processing the BOM, using the /api/v1/bom/token/<token> endpoint.

Because BOM processing and analysis are asynchronous processes, DT can't return results immediately after the BOM has been uploaded.

Once the above endpoint returns false, it's safe to query the findings and policy violations APIs for results. As long as it returns true, clients may periodically poll the endpoint again until it returns false. This is useful in CI, where analysis results are required in order to make decisions on whether or not to fail the build etc.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JoergBruenner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants