Skip to content

Conversation

@kviset
Copy link

@kviset kviset commented Jul 10, 2025

Added the ability to track the status of VEX processing:

Usage example:

token, err := client.VEX.Upload(context.TODO(),vexReq)
if err != nil {
       log.Fatal(err)
}
wait, err := client.Event.IsBeingProcessed(context.TODO(), dtrack.EventToken(token))
for {
        if wait {
                log.Info("VEX Processing")
                time.Sleep(time.Duration(5 * time.Second))
                wait, err = client.Event.IsBeingProcessed(context.TODO(), dtrack.EventToken(token))
        } else {
                log.Info("VEX Processing SUCCESS")
                break
        }
}

@kviset kviset requested a review from nscuro as a code owner July 10, 2025 16:27
@owasp-dt-bot
Copy link

owasp-dt-bot commented Jul 10, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

Signed-off-by: Konstantin Velichko <[email protected]>
@kviset kviset force-pushed the improve-vex-upload branch from f1ccb48 to ce8e182 Compare July 10, 2025 16:35
@nscuro nscuro added the enhancement New feature or request label Jul 10, 2025
@nscuro nscuro merged commit 9eef6be into DependencyTrack:main Sep 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants