fix: Use rest client for reporter

This commit is contained in:
pinkforest
2023-03-27 21:46:22 +11:00
parent bc91a32ed8
commit 27d7cd3d63
+1 -1
View File
@@ -141,7 +141,7 @@ export async function reportCheck(
warnings: Array<interfaces.Warning>, warnings: Array<interfaces.Warning>,
): Promise<void> { ): Promise<void> {
const client = github.getOctokit(token, {userAgent: USER_AGENT}); 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 stats = getStats(vulnerabilities, warnings);
const summary = getSummary(stats); const summary = getSummary(stats);