diff --git a/dist/index.js b/dist/index.js index 0f6a803d..712117a2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10281,7 +10281,7 @@ function getAlert(name, version, directory, client, context) { const alerts = yield client.graphql(` { repository(owner: "${context.repo.owner}", name: "${context.repo.repo}") { - vulnerabilityAlerts(first: 100) { + vulnerabilityAlerts(first: 100, states: [OPEN]) { nodes { vulnerableManifestFilename vulnerableManifestPath diff --git a/package-lock.json b/package-lock.json index 55d58eee..063c49d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35,7 +35,7 @@ "yargs": "^17.7.2" }, "engines": { - "node": ">=20.0.0", + "node": ">=20.5.0", "npm": ">=10.0.0" } }, diff --git a/src/dependabot/verified_commits.ts b/src/dependabot/verified_commits.ts index 5cb33b8c..5d54880e 100644 --- a/src/dependabot/verified_commits.ts +++ b/src/dependabot/verified_commits.ts @@ -60,7 +60,7 @@ export async function getAlert (name: string, version: string, directory: string const alerts: any = await client.graphql(` { repository(owner: "${context.repo.owner}", name: "${context.repo.repo}") { - vulnerabilityAlerts(first: 100) { + vulnerabilityAlerts(first: 100, states: [OPEN]) { nodes { vulnerableManifestFilename vulnerableManifestPath