Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/lib/api-client.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (22 sloc)
921 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
var __importStar = (this && this.__importStar) || function (mod) { | |
if (mod && mod.__esModule) return mod; | |
var result = {}; | |
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | |
result["default"] = mod; | |
return result; | |
}; | |
var __importDefault = (this && this.__importDefault) || function (mod) { | |
return (mod && mod.__esModule) ? mod : { "default": mod }; | |
}; | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
const core = __importStar(require("@actions/core")); | |
const github = __importStar(require("@actions/github")); | |
const console_log_level_1 = __importDefault(require("console-log-level")); | |
exports.getApiClient = function () { | |
return new github.GitHub(core.getInput('token'), { | |
userAgent: "CodeQL Action", | |
log: console_log_level_1.default({ level: "debug" }) | |
}); | |
}; | |
//# sourceMappingURL=api-client.js.map |