From b7d31df725aba8754b44d01dc01a3e174dbf432a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= <143391866+icuart@users.noreply.github.com> Date: Thu, 9 Nov 2023 04:11:04 +0800 Subject: [PATCH] fix(publish): split github workflow ref --- workspaces/libnpmpublish/lib/provenance.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/libnpmpublish/lib/provenance.js b/workspaces/libnpmpublish/lib/provenance.js index 45fe963d5f36f..8cbaa8d6b2fd3 100644 --- a/workspaces/libnpmpublish/lib/provenance.js +++ b/workspaces/libnpmpublish/lib/provenance.js @@ -21,7 +21,7 @@ const generateProvenance = async (subject, opts) => { /* istanbul ignore next - not covering missing env var case */ const [workflowPath, workflowRef] = (env.GITHUB_WORKFLOW_REF || '') .replace(env.GITHUB_REPOSITORY + '/', '') - .split('@') + .split('@', 2) payload = { _type: INTOTO_STATEMENT_V1_TYPE, subject,