mirror of
https://github.com/github/codeql-action.git
synced 2026-05-12 17:00:15 +00:00
Run file command
This commit is contained in:
Generated
+3
@@ -139,6 +139,9 @@ async function extractTarZst(tar, tarVersion, logger) {
|
||||
logger.debug(`Extracting to ${dest}.${tar instanceof stream.Readable
|
||||
? ` Input stream has high water mark ${tar.readableHighWaterMark}.`
|
||||
: ""}`);
|
||||
if (typeof tar === "string") {
|
||||
await (0, actions_util_1.runTool)("file", [tar]);
|
||||
}
|
||||
try {
|
||||
// Initialize args
|
||||
const args = ["-x", "--zstd", "-v"];
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+5
-1
@@ -8,7 +8,7 @@ import * as toolcache from "@actions/tool-cache";
|
||||
import { safeWhich } from "@chrisgavin/safe-which";
|
||||
import { v4 as uuidV4 } from "uuid";
|
||||
|
||||
import { CommandInvocationError, getTemporaryDirectory } from "./actions-util";
|
||||
import { CommandInvocationError, getTemporaryDirectory, runTool } from "./actions-util";
|
||||
import { Logger } from "./logging";
|
||||
import { assertNever, cleanUpGlob } from "./util";
|
||||
|
||||
@@ -150,6 +150,10 @@ export async function extractTarZst(
|
||||
}`,
|
||||
);
|
||||
|
||||
if (typeof tar === "string") {
|
||||
await runTool("file", [tar]);
|
||||
}
|
||||
|
||||
try {
|
||||
// Initialize args
|
||||
const args = ["-x", "--zstd", "-v"];
|
||||
|
||||
Reference in New Issue
Block a user