From a1980784de3397bb0ae047a357871ec28d15395a Mon Sep 17 00:00:00 2001 From: daz Date: Tue, 19 Dec 2023 13:55:20 -0700 Subject: [PATCH] Improve reporting for dependency-graph failure The previous message was assuming a permissions issue, and was not including the underlying error message in the response. --- src/dependency-graph.ts | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/dependency-graph.ts b/src/dependency-graph.ts index fda1aa4..4f61881 100644 --- a/src/dependency-graph.ts +++ b/src/dependency-graph.ts @@ -78,12 +78,7 @@ async function submitDependencyGraphs(dependencyGraphFiles: string[]): Promise { const octokit = getOctokit() const jsonContent = fs.readFileSync(jsonFile, 'utf8')