mirror of
https://github.com/github/codeql-action.git
synced 2026-05-11 08:10:29 +00:00
debug: add debug logging to see what API endpoint proxima stamp uses
This commit is contained in:
Generated
+4
@@ -44,6 +44,7 @@ const githubUtils = __importStar(require("@actions/github/lib/utils"));
|
||||
const retry = __importStar(require("@octokit/plugin-retry"));
|
||||
const console_log_level_1 = __importDefault(require("console-log-level"));
|
||||
const actions_util_1 = require("./actions-util");
|
||||
const logging_1 = require("./logging");
|
||||
const repository_1 = require("./repository");
|
||||
const util_1 = require("./util");
|
||||
const GITHUB_ENTERPRISE_VERSION_HEADER = "x-github-enterprise-version";
|
||||
@@ -106,6 +107,9 @@ async function getGitHubVersion() {
|
||||
if (cachedGitHubVersion === undefined) {
|
||||
cachedGitHubVersion = await getGitHubVersionFromApi(getApiClient(), getApiDetails());
|
||||
}
|
||||
(0, logging_1.getRunnerLogger)(true).info(JSON.stringify(cachedGitHubVersion));
|
||||
(0, logging_1.getRunnerLogger)(true).info(getApiDetails().url);
|
||||
(0, logging_1.getRunnerLogger)(true).info(getApiDetails().apiURL);
|
||||
return cachedGitHubVersion;
|
||||
}
|
||||
/**
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -4,6 +4,7 @@ import * as retry from "@octokit/plugin-retry";
|
||||
import consoleLogLevel from "console-log-level";
|
||||
|
||||
import { getActionVersion, getRequiredInput } from "./actions-util";
|
||||
import { getRunnerLogger } from "./logging";
|
||||
import { parseRepositoryNwo } from "./repository";
|
||||
import {
|
||||
ConfigurationError,
|
||||
@@ -116,6 +117,9 @@ export async function getGitHubVersion(): Promise<GitHubVersion> {
|
||||
getApiDetails(),
|
||||
);
|
||||
}
|
||||
getRunnerLogger(true).info(JSON.stringify(cachedGitHubVersion));
|
||||
getRunnerLogger(true).info(getApiDetails().url);
|
||||
getRunnerLogger(true).info(getApiDetails().apiURL);
|
||||
return cachedGitHubVersion;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user