Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reanalyze button for projects #2128

Merged
merged 3 commits into from Nov 10, 2022

Conversation

valentijnscholten
Copy link
Contributor

@valentijnscholten valentijnscholten commented Nov 6, 2022

This PR adds /api/v1/findings/project/{uuid}/analyze to trigger a reanalysis of a project's components.

This will perform an asynchronous analyis, returning a token to check for completion.
The vulnerability analysis is identical to the scheduled vulnerability analysis, so any cached results that haven't expired will be used.

Front-end part with button on Project view is linked below.

Fixes #2116

Questions:

  • Does it have enough value if it's using the cache?

Signed-off-by: Valentijn Scholten valentijnscholten@gmail.com

Signed-off-by: Valentijn Scholten <valentijnscholten@gmail.com>
Signed-off-by: Valentijn Scholten <valentijnscholten@gmail.com>
Co-authored-by: Niklas <nscuro@protonmail.com>
Signed-off-by: Valentijn Scholten <valentijnscholten@gmail.com>
Copy link
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nscuro nscuro merged commit e15d94a into DependencyTrack:master Nov 10, 2022
@valentijnscholten valentijnscholten deleted the reanalyze-button branch November 14, 2022 17:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an "Analyze now" button to Projects
2 participants