Rescan a Report using the API - Sonatype Lifecycle & Repository Firewall - Sonatype Community

Rescan a Report using the API

post by geoff.aldridge on May 20, 2020

Hey Folks,

Is there a way to rescan a report using the API, just the same as clicking the ‘Re-evaluate Report’ button.

The use case I have is automatically creating waivers using the API and then rescanning the report to get rid of the Waived items off it. We’re also seeing a lot of waivers coming back when rescanning our apps so I want to put in an automated process to get rid of these as well.

Cheers,

Geoff.

1.7k views 1 link

post by jwhitehouse on May 22, 2020

Hi Geoff. The report/scan API doesn’t have a endpoint to re-evaluate. There’s a clever way to do this with the promote scan api ( link) where you promote from and to the same stage that you want to re-evaluate.

I’ve tagged this to incorporate into API ideas.

post by geoff.aldridge on May 24, 2020

Thanks, I was wondering if that would work as a workaround.

Cheers,

Geoff.