mirror of
https://github.com/github/codeql-action.git
synced 2026-12-01 03:12:29 +08:00
Use ZipArchive instead of archive("zip")
This commit is contained in:
2 files changed
+8894
-4258
No files matched your search
Generated
+8892
-4256
File diff suppressed because it is too large.
Load diff
@@ -4,7 +4,7 @@ import * as path from "path";
|
||||
import * as artifact from "@actions/artifact";
|
||||
import * as artifactLegacy from "@actions/artifact-legacy";
|
||||
import * as core from "@actions/core";
|
||||
import archiver from "archiver";
|
||||
import { ZipArchive } from "archiver";
|
||||
|
||||
import { getOptionalInput, getTemporaryDirectory } from "./actions-util";
|
||||
import { dbIsFinalized } from "./analyze";
|
||||
@@ -397,7 +397,7 @@ async function createPartialDatabaseBundle(
|
||||
await fs.promises.rm(databaseBundlePath, { force: true });
|
||||
}
|
||||
const output = fs.createWriteStream(databaseBundlePath);
|
||||
const zip = archiver("zip");
|
||||
const zip = new ZipArchive();
|
||||
|
||||
zip.on("error", (err) => {
|
||||
throw err;
|
||||
|
||||
Reference in new issue
Block a user