Add types for package.json via @schemastore/package
This commit is contained in:
parent
1b508953b4
commit
be8f7b01a2
27 changed files with 380 additions and 56 deletions
4
lib/api-client.js
generated
4
lib/api-client.js
generated
|
|
@ -33,8 +33,6 @@ const console_log_level_1 = __importDefault(require("console-log-level"));
|
|||
const actions_util_1 = require("./actions-util");
|
||||
const util = __importStar(require("./util"));
|
||||
const util_1 = require("./util");
|
||||
// eslint-disable-next-line import/no-commonjs
|
||||
const pkg = require("../package.json");
|
||||
var DisallowedAPIVersionReason;
|
||||
(function (DisallowedAPIVersionReason) {
|
||||
DisallowedAPIVersionReason[DisallowedAPIVersionReason["ACTION_TOO_OLD"] = 0] = "ACTION_TOO_OLD";
|
||||
|
|
@ -45,7 +43,7 @@ function createApiClientWithDetails(apiDetails, { allowExternal = false } = {})
|
|||
const retryingOctokit = githubUtils.GitHub.plugin(retry.retry);
|
||||
return new retryingOctokit(githubUtils.getOctokitOptions(auth, {
|
||||
baseUrl: apiDetails.apiURL,
|
||||
userAgent: `CodeQL-Action/${pkg.version}`,
|
||||
userAgent: `CodeQL-Action/${(0, actions_util_1.getActionVersion)()}`,
|
||||
log: (0, console_log_level_1.default)({ level: "debug" }),
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue