From 27d7cd3d636d6145f346136ace8f4448d8bd1a41 Mon Sep 17 00:00:00 2001 From: pinkforest <36498018+pinkforest@users.noreply.github.com> Date: Mon, 27 Mar 2023 21:46:22 +1100 Subject: [PATCH] fix: Use rest client for reporter --- src/reporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reporter.ts b/src/reporter.ts index c960339..d52f44d 100644 --- a/src/reporter.ts +++ b/src/reporter.ts @@ -141,7 +141,7 @@ export async function reportCheck( warnings: Array, ): Promise { const client = github.getOctokit(token, {userAgent: USER_AGENT}); - const reporter = new checks.CheckReporter(client, 'Security audit'); + const reporter = new checks.CheckReporter(client.rest, 'Security audit'); const stats = getStats(vulnerabilities, warnings); const summary = getSummary(stats);