diff --git a/scripts/plugin-publication-artifact.mjs b/scripts/plugin-publication-artifact.mjs index e5d362d72cfa..99f1d06e59ca 100644 --- a/scripts/plugin-publication-artifact.mjs +++ b/scripts/plugin-publication-artifact.mjs @@ -37,7 +37,7 @@ const TAR_USTAR_MAGIC = Buffer.from("ustar\0", "ascii"); const TAR_USTAR_VERSION = Buffer.from("00", "ascii"); const MAX_ARCHIVE_BYTES = 256 * 1024 * 1024; const MAX_EXPANDED_BYTES = 512 * 1024 * 1024; -const MAX_MANIFEST_BYTES = 2 * 1024 * 1024; +const MAX_MANIFEST_BYTES = 4 * 1024 * 1024; const MAX_PLUGIN_MANIFEST_BYTES = 2 * 1024 * 1024; const MAX_TAR_ENTRIES = 10_000; const MAX_TAR_PATH_BYTES = 4 * 1024 * 1024; diff --git a/test/scripts/plugin-publication-artifact.test.ts b/test/scripts/plugin-publication-artifact.test.ts index 9aaf68784601..e2335be2a4a9 100644 --- a/test/scripts/plugin-publication-artifact.test.ts +++ b/test/scripts/plugin-publication-artifact.test.ts @@ -1090,7 +1090,7 @@ describe("plugin publication artifact", () => { it("caps publication JSON and tarball members before ZIP expansion", () => { const fixture = createFixture(); const manifest = readFileSync(fixture.created.manifestPath); - const oversizedManifest = Buffer.alloc(2 * 1024 * 1024 + 1, 0x20); + const oversizedManifest = Buffer.alloc(4 * 1024 * 1024 + 1, 0x20); replaceArtifactZip(fixture, [ { bytes: fixture.tarball, name: TARBALL_NAME },