New Github API support for verifying CVE counts.
Some checks failed
Deploy Frontend / deploy (push) Failing after 33s

This commit is contained in:
Bailey Taylor
2025-10-08 10:40:24 +08:00
parent dcaab71244
commit 7cbe4e4b7b

View File

@@ -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}