Skip to content

Add return event token when VEX upload - #48

Merged
nscuro merged 1 commit into
DependencyTrack:mainfrom
kviset:improve-vex-upload
Sep 11, 2025
Merged

Add return event token when VEX upload#48
nscuro merged 1 commit into
DependencyTrack:mainfrom
kviset:improve-vex-upload

Conversation

@kviset

@kviset kviset commented Jul 10, 2025

Copy link
Copy Markdown

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

owasp-dt-bot commented Jul 10, 2025

Copy link
Copy Markdown

🎉 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 <k.velichko@bi.zone>
@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