From 65352e5f8affb276d4cb039b1c5d3bd4e88ff651 Mon Sep 17 00:00:00 2001 From: Kris Coleman Date: Wed, 15 Jan 2025 15:59:17 -0500 Subject: [PATCH] fix: fixed the mapping between key and certificate inputs to their correct cli flags (#18) --- dist/index.js | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6f62aaf..309543f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -30592,7 +30592,7 @@ async function run() { if (mavenPOM) cmd.push(`--attestor-maven-pom-path=${mavenPOM}`); - if (certificate) cmd.push(`--certificate=${certificate}`); + if (certificate) cmd.push(`--signer-file-cert-path=${certificate}`); if (enableArchivista) cmd.push(`--enable-archivista=${enableArchivista}`); if (archivistaServer) cmd.push(`--archivista-server=${archivistaServer}`); if (fulcio) cmd.push(`--signer-fulcio-url=${fulcio}`); @@ -30609,7 +30609,7 @@ async function run() { }); } - if (key) cmd.push(`--key=${key}`); + if (key) cmd.push(`--signer-file-key-path=${key}`); if (productExcludeGlob) cmd.push(`--attestor-product-exclude-glob=${productExcludeGlob}`); if (productIncludeGlob) cmd.push(`--attestor-product-include-glob=${productIncludeGlob}`); if (spiffeSocket) cmd.push(`--spiffe-socket=${spiffeSocket}`); diff --git a/index.js b/index.js index acaad17..80185a8 100644 --- a/index.js +++ b/index.js @@ -119,7 +119,7 @@ async function run() { if (mavenPOM) cmd.push(`--attestor-maven-pom-path=${mavenPOM}`); - if (certificate) cmd.push(`--certificate=${certificate}`); + if (certificate) cmd.push(`--signer-file-cert-path=${certificate}`); if (enableArchivista) cmd.push(`--enable-archivista=${enableArchivista}`); if (archivistaServer) cmd.push(`--archivista-server=${archivistaServer}`); if (fulcio) cmd.push(`--signer-fulcio-url=${fulcio}`); @@ -136,7 +136,7 @@ async function run() { }); } - if (key) cmd.push(`--key=${key}`); + if (key) cmd.push(`--signer-file-key-path=${key}`); if (productExcludeGlob) cmd.push(`--attestor-product-exclude-glob=${productExcludeGlob}`); if (productIncludeGlob) cmd.push(`--attestor-product-include-glob=${productIncludeGlob}`); if (spiffeSocket) cmd.push(`--spiffe-socket=${spiffeSocket}`);