mirror of
https://github.com/github/codeql-action.git
synced 2026-11-10 06:54:40 +00:00
Refactor: Add determineCheckoutPath function for analyze action
This commit is contained in:
13
lib/entry-points.js
generated
13
lib/entry-points.js
generated
@@ -153801,6 +153801,9 @@ var CodeQLAnalysisError = class extends Error {
|
||||
message;
|
||||
error;
|
||||
};
|
||||
function determineCheckoutPath(action) {
|
||||
return action.actions.getRequiredInput("checkout_path");
|
||||
}
|
||||
async function setupPythonExtractor(logger) {
|
||||
const codeqlPython = process.env["CODEQL_PYTHON"];
|
||||
if (codeqlPython === void 0 || codeqlPython.length === 0) {
|
||||
@@ -156544,11 +156547,9 @@ async function runAutobuildIfLegacyGoWorkflow(config, logger) {
|
||||
);
|
||||
await runAutobuild(config, "go" /* go */, logger);
|
||||
}
|
||||
async function run({
|
||||
startedAt,
|
||||
logger,
|
||||
actions
|
||||
}) {
|
||||
async function run(action) {
|
||||
const startedAt = action.startedAt;
|
||||
const logger = action.logger;
|
||||
let uploadResults = void 0;
|
||||
let runStats = void 0;
|
||||
let config = void 0;
|
||||
@@ -156614,7 +156615,7 @@ async function run({
|
||||
getOptionalInput("ram") || process.env["CODEQL_RAM"],
|
||||
logger
|
||||
);
|
||||
const checkoutPath = actions.getRequiredInput("checkout_path");
|
||||
const checkoutPath = determineCheckoutPath(action);
|
||||
const diffRangePackDir = await setupDiffInformedQueryRun(
|
||||
logger,
|
||||
checkoutPath
|
||||
|
||||
Reference in New Issue
Block a user