Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ccdca2

Browse files
authored
Add line about workflow_call (#1721)
Describe how `workflow_call` works within trusted publishing.
1 parent 5864a32 commit 1ccdca2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ 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+
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.
282+
281283
## Limitations and future improvements
282284

283285
Trusted publishing currently supports only cloud-hosted runners. Support for self-hosted runners is intended for a future release. Each package can only have one trusted publisher configured at a time, though you can update this configuration as needed.

0 commit comments

Comments
 (0)