diff --git a/dist/index.js b/dist/index.js index 854a9ab..0b7d415 100644 --- a/dist/index.js +++ b/dist/index.js @@ -74413,14 +74413,14 @@ async function createArchives(distPath, archiveTargetPath) { resolve(fileMetadata(zipPath)); }); archive.pipe(output); - archive.directory(distPath, false); // TODO: make sure this doesn't include dirs that start with ., same with below + archive.directory(distPath, false); archive.finalize(); }); const createTarPromise = new Promise((resolve, reject) => { tar .c({ file: tarPath, - C: distPath, // Change to the source directory for relative paths (TODO) + C: distPath, gzip: true }, ['.']) // eslint-disable-next-line github/no-then @@ -74608,7 +74608,7 @@ async function uploadLayer(layer, file, registryURL, checkBlobEndpoint, uploadBl headers: { Authorization: `Bearer ${b64Token}`, 'Content-Type': 'application/octet-stream', - 'Accept-Encoding': 'gzip', // TODO: What about for the config layer? + 'Accept-Encoding': 'gzip', 'Content-Length': layer.size.toString() }, validateStatus: () => { @@ -74801,7 +74801,6 @@ function createActionPackageManifest(tarFile, zipFile, repository, repoId, owner return manifest; } exports.createActionPackageManifest = createActionPackageManifest; -// TODO: is this ok hardcoded? function createConfigLayer() { const configLayer = { mediaType: 'application/vnd.github.actions.package.config.v1+json', diff --git a/src/fs-helper.ts b/src/fs-helper.ts index 651171d..4da395e 100644 --- a/src/fs-helper.ts +++ b/src/fs-helper.ts @@ -48,7 +48,7 @@ export async function createArchives( }) archive.pipe(output) - archive.directory(distPath, false) // TODO: make sure this doesn't include dirs that start with ., same with below + archive.directory(distPath, false) archive.finalize() }) @@ -57,7 +57,7 @@ export async function createArchives( .c( { file: tarPath, - C: distPath, // Change to the source directory for relative paths (TODO) + C: distPath, gzip: true }, ['.'] diff --git a/src/ghcr-client.ts b/src/ghcr-client.ts index d200424..6e61de1 100644 --- a/src/ghcr-client.ts +++ b/src/ghcr-client.ts @@ -163,7 +163,7 @@ async function uploadLayer( headers: { Authorization: `Bearer ${b64Token}`, 'Content-Type': 'application/octet-stream', - 'Accept-Encoding': 'gzip', // TODO: What about for the config layer? + 'Accept-Encoding': 'gzip', 'Content-Length': layer.size.toString() }, validateStatus: () => { diff --git a/src/oci-container.ts b/src/oci-container.ts index 1bcf7bf..de8482e 100644 --- a/src/oci-container.ts +++ b/src/oci-container.ts @@ -53,7 +53,6 @@ export function createActionPackageManifest( return manifest } -// TODO: is this ok hardcoded? function createConfigLayer(): Layer { const configLayer: Layer = { mediaType: 'application/vnd.github.actions.package.config.v1+json',