New Github API support for verifying CVE counts.
Some checks failed
Deploy Frontend / deploy (push) Failing after 33s
Some checks failed
Deploy Frontend / deploy (push) Failing after 33s
This commit is contained in:
@@ -225,6 +225,21 @@
|
||||
}
|
||||
};
|
||||
|
||||
const runCveVerification = async () => {
|
||||
try {
|
||||
setLoading(true);
|
||||
await api.post('/admin/scripts/verify-cve-count');
|
||||
setCveVisible(true);
|
||||
setToastMessage('🔍 CVE verification started - check logs for comparison results');
|
||||
setToastOpen(true);
|
||||
} catch (err: any) {
|
||||
setToastMessage("❌ Failed to start CVE verification: " + (err?.response?.data || err.message));
|
||||
setToastOpen(true);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const openDialog = async () => {
|
||||
await fetchClients();
|
||||
setDialogOpen(true);
|
||||
@@ -269,6 +284,16 @@
|
||||
{loading ? 'Starting Backfill...' : 'Backfill All CVEs (2002-Present)'}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant="contained"
|
||||
color="info"
|
||||
onClick={runCveVerification}
|
||||
disabled={loading}
|
||||
sx={{ mt: 2 }}
|
||||
>
|
||||
{loading ? 'Verifying...' : 'Verify CVE Count (GitHub API)'}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant="contained"
|
||||
onClick={runVulnCacheRefresh}
|
||||
|
||||
Reference in New Issue
Block a user