-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Enhance security recommendations for trusted publishers #1703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leobalter I've added some comments - Feel free to ignore. 😉
content/packages-and-modules/securing-your-code/trusted-publishers.mdx
Outdated
Show resolved
Hide resolved
2. Select **"Require two-factor authentication and disallow tokens"** | ||
3. Save your changes | ||
|
||
This configuration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this section is needed, I like the one below better (and think it's enough)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it
content/packages-and-modules/securing-your-code/trusted-publishers.mdx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the security recommendations in the npm trusted publishers documentation by adding explicit guidance on restricting traditional token access when using OIDC-based publishing.
- Adds a dedicated section recommending disallowing non-OIDC tokens for maximum security
- Provides step-by-step instructions for configuring the "disallow tokens" setting
- Includes migration guidance for transitioning from token-based to trusted publishing
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
content/packages-and-modules/securing-your-code/trusted-publishers.mdx
Outdated
Show resolved
Hide resolved
…hers.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…hers.mdx Co-authored-by: Peter Stöckli <p-@github.com>
…hers.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
bf1d07c
to
d898c61
Compare
fixed lint issues and rebased the branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from my side
Improve OIDC docs recommending disallowing non-OIDC tokens.
References