12 lines
327 B
TypeScript
12 lines
327 B
TypeScript
import * as core from "@actions/core";
|
|
import * as github from "@actions/github";
|
|
import consoleLogLevel from "console-log-level";
|
|
|
|
export const getApiClient = function() {
|
|
return new github.GitHub(
|
|
core.getInput('token'),
|
|
{
|
|
userAgent: "CodeQL Action",
|
|
log: consoleLogLevel({ level: "debug" })
|
|
});
|
|
};
|