You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/packages-and-modules/securing-your-code/trusted-publishers.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Self-hosted runners are not currently supported but are planned for future relea
31
31
32
32
Navigate to your package settings on [npmjs.com](https://www.npmjs.com) and find the "__Trusted Publisher__" section. Under "__Select your publisher__", choose your CI/CD provider by clicking either the GitHub Actions or GitLab CI/CD button.
33
33
34
-
<!--TODO:AddscreenshotoftheTrustedPublishersectionwith"Select your publisher"labelandproviderbuttons-->
34
+
<Screenshotsrc="/packages-and-modules/securing-your-code/trusted-publisher.png"alt="Screenshot showing the Trusted Publisher section with Select your publisher label and provider buttons" />
35
35
36
36
#### For GitHub Actions
37
37
@@ -45,7 +45,7 @@ Configure the following fields:
45
45
- The workflow file must exist in `.github/workflows/` in your repository
46
46
-**Environment name** (optional): If using [GitHub environments](https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment) for deployment protection
<Screenshotsrc="/packages-and-modules/securing-your-code/trusted-publisher-gitlab.png"alt="Screenshot of GitLab CI/CD trusted publisher configuration form" />
61
61
62
62
<Note>
63
63
@@ -152,7 +152,7 @@ You can modify or remove your trusted publisher configuration at any time throug
152
152
153
153
When you publish using trusted publishing, npm automatically generates and publishes [provenance attestations](./generating-provenance-statements) for your package. This happens by default—you don't need to add the `--provenance` flag to your publish command.
<Screenshot src="/packages-and-modules/securing-your-code/trusted-publisher-provenance.png" alt="Screenshot showing provenance badge/information on a package page" />
156
156
157
157
Provenance provides cryptographic proof of where and how your package was built, allowing users to verify its authenticity. This automatic generation only applies when all of these conditions are met:
0 commit comments