Skip to content

Commit 8018261

Browse files
authored
Update trusted publishers documentation
Clarify GitHub Actions workflow behavior for npm publish.
1 parent 9f80a48 commit 8018261

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/packages-and-modules/securing-your-code/trusted-publishers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ If your package has private dependencies and `npm install` or `npm ci` is failin
278278

279279
For packages in private repositories, provenance will not be generated even though you're using trusted publishing. This is a [known limitation](https://github.blog/changelog/2023-07-25-publishing-with-npm-provenance-from-private-source-repositories-is-no-longer-supported/) that applies regardless of whether your package itself is public or private.
280280

281-
When using GitHub Actions, some users run the actual `npm publish` command via `workflow_call` — i.e., a workflow calls another workflow that contains the `npm publish` command. As a result, workflow-name validation is performed against the calling (parent) workflow that was executed, not the called (callee) workflow.
281+
Some GitHub Actions workflows use `workflow_call` to invoke other workflows that run `npm publish`, or use `workflow_dispatch` for manual publishing. When this happens, validation checks the calling workflow's name instead of the workflow that actually contains the publish command, which can cause configuration mismatches.
282282

283283
## Limitations and future improvements
284284

0 commit comments

Comments
 (0)