From 39dddb8ae7ff59c7416189aac27a8980abd89bd0 Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Mon, 5 May 2025 08:57:57 -0600 Subject: [PATCH] Remove direct use of octokit/request-error (#632) --- sources/package-lock.json | 1 - sources/package.json | 1 - sources/src/dependency-graph.ts | 5 ++--- sources/src/job-summary.ts | 5 ++--- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/sources/package-lock.json b/sources/package-lock.json index 9ea82d4a..1704311f 100644 --- a/sources/package-lock.json +++ b/sources/package-lock.json @@ -18,7 +18,6 @@ "@actions/glob": "0.5.0", "@actions/http-client": "2.2.3", "@actions/tool-cache": "2.0.2", - "@octokit/request-error": "5.1.1", "@octokit/webhooks-types": "7.6.1", "cheerio": "1.0.0", "semver": "7.7.1", diff --git a/sources/package.json b/sources/package.json index 2c775319..e4cc19a3 100644 --- a/sources/package.json +++ b/sources/package.json @@ -40,7 +40,6 @@ "@actions/glob": "0.5.0", "@actions/http-client": "2.2.3", "@actions/tool-cache": "2.0.2", - "@octokit/request-error": "5.1.1", "@octokit/webhooks-types": "7.6.1", "cheerio": "1.0.0", "semver": "7.7.1", diff --git a/sources/src/dependency-graph.ts b/sources/src/dependency-graph.ts index fc9bceff..464f186c 100644 --- a/sources/src/dependency-graph.ts +++ b/sources/src/dependency-graph.ts @@ -3,7 +3,6 @@ import * as github from '@actions/github' import * as glob from '@actions/glob' import {DefaultArtifactClient} from '@actions/artifact' import {GitHub} from '@actions/github/lib/utils' -import {RequestError} from '@octokit/request-error' import type {PullRequestEvent} from '@octokit/webhooks-types' import * as path from 'path' @@ -191,7 +190,7 @@ async function submitDependencyGraphs(dependencyGraphFiles: string[]): Promise