From 89f6b809f06f9a0f61ef061e60912aca42317864 Mon Sep 17 00:00:00 2001 From: Blake <56769700+blakedeckard@users.noreply.github.com> Date: Fri, 20 Nov 2026 01:38:52 -0600 Subject: [PATCH 1/2] Update npm install command with min-release-age option --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6b947434..cd2f82b1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -103,7 +103,7 @@ jobs: await exec.exec('npm', ['pkg', 'delete', 'packageManager'], opts); await exec.exec('npm', ['pkg', 'delete', 'directories.test'], opts); await exec.exec('npm', ['pkg', 'delete', 'devDependencies'], opts); - await exec.exec('npm', ['install', '--package-lock-only', '--ignore-scripts', '--audit=false', '--fund=false'], opts); + await exec.exec('npm', ['install', '--package-lock-only', '--min-release-age=2', '--ignore-scripts', '--audit=false', '--fund=false'], opts); await exec.exec('npm', ['shrinkwrap'], opts); await exec.exec('npm', ['publish', '--provenance', '--access', 'public'], opts); }); From b8fcff439559287b7ae72ae1a52d1003dc11b576 Mon Sep 17 00:00:00 2001 From: Blake <56769700+blakedeckard@users.noreply.github.com> Date: Fri, 20 Nov 2026 01:48:00 -0600 Subject: [PATCH 2/2] harden npm install command options in publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cd2f82b1..1b2ac003 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -103,7 +103,7 @@ jobs: await exec.exec('npm', ['pkg', 'delete', 'packageManager'], opts); await exec.exec('npm', ['pkg', 'delete', 'directories.test'], opts); await exec.exec('npm', ['pkg', 'delete', 'devDependencies'], opts); - await exec.exec('npm', ['install', '--package-lock-only', '--min-release-age=2', '--ignore-scripts', '--audit=false', '--fund=false'], opts); + await exec.exec('npm', ['install', '--package-lock-only', '--min-release-age=2', '--allow-git=none', '--allow-remote=none', '--ignore-scripts', '--audit=false', '--fund=false'], opts); await exec.exec('npm', ['shrinkwrap'], opts); await exec.exec('npm', ['publish', '--provenance', '--access', 'public'], opts); });