GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add permissions support to trust commands by reggi · Pull Request #9248 · npm/cli

Conversation

@reggi

@reggi reggi commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds permission flags to trust create operations. Users must now specify at least one of --allow-publish or --allow-stage-publish (alias: --allow-staged-publish) when creating trust configurations.

Changes

  • Add --allow-publish and --allow-stage-publish flags to all trust provider commands (GitHub, GitLab, CircleCI)
  • Require at least one permission flag when creating trust configurations
  • Include permissions in the request body and display output
  • Add PERMISSIONS constants for permission values
  • Update tests and completion snapshots for new flags

Related

  • feat: npm stage #9201

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@reggi
feat: add permissions support to trust commands
f10f4bc
Add --allow-publish and --allow-stage-publish flags to trust create
operations. At least one permission flag is now required when
establishing trust configurations.

- Add PERMISSIONS constants for permission values
- Add --allow-staged-publish as alias for --allow-stage-publish
- Include permissions in request body and display output
- Update tests and completion snapshots for new flags

Co-authored-by: Copilot <[email protected]>
@reggi
reggi requested a review from a team as a code owner April 16, 2026 19:15
wraithgar
wraithgar reviewed Apr 16, 2026
View reviewed changes
Comment thread lib/trust-cmd.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

wraithgar
wraithgar reviewed Apr 16, 2026
View reviewed changes
Comment thread lib/trust-cmd.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@wraithgar wraithgar added the backport:v11 label Apr 16, 2026
karenjli
karenjli reviewed Apr 16, 2026
View reviewed changes
Comment thread lib/trust-cmd.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

owlstronaut
owlstronaut reviewed Apr 29, 2026
View reviewed changes
Comment thread lib/trust-cmd.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread lib/commands/trust/circleci.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

owlstronaut
owlstronaut suggested changes May 18, 2026
View reviewed changes
@reggi
fix: address PR review comments for trust permissions
0b3981e
- Remove redundant alias fallback for allow-stage-publish flag
- Shorten permission error message to match declarative style
- Remove unused PERMISSIONS export
- Add permission flags to usage strings for all providers
- Update test regex to match new error message

Co-authored-by: Copilot <[email protected]>
@reggi
reggi requested a review from a team as a code owner May 19, 2026 16:47
@reggi
reggi requested review from karenjli and owlstronaut May 19, 2026 16:47
@reggi
docs: add permissions section to npm-trust documentation
0d0ded8
Document the --allow-publish and --allow-stage-publish flags
that are required when creating trust configurations.

Co-authored-by: Copilot <[email protected]>
owlstronaut
owlstronaut approved these changes May 19, 2026
View reviewed changes
nishantms
nishantms approved these changes May 20, 2026
View reviewed changes
@reggi
reggi merged commit cf94dbe into latest May 20, 2026
25 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@reggi
reggi deleted the reggi/trust-permissions branch May 20, 2026 16:20
@github-actions github-actions Bot mentioned this pull request May 20, 2026
feat: add permissions support to trust commands #9376
Merged
@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

🎉 Backport to release/v11 created: #9376

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request May 15, 2026
chore: release 12.0.0-pre.0.0 #9229
Merged
reggi added a commit that referenced this pull request May 20, 2026
@github-actions @reggi
feat: add permissions support to trust commands (#9376)
1433740
Backport of #9248 to `release/v11`.

Co-authored-by: Tea Reggi <[email protected]>
Co-authored-by: Copilot <[email protected]>
This was referenced Jun 5, 2026
fix(trust-configure): require npm >= 11.15 and pass --allow-publish CristianoCiuti/reponova-langs#22
Merged
fix(trust-configure): remove non-existent --allow-publish flag CristianoCiuti/reponova-langs#21
Merged
@npm-cli-bot npm-cli-bot mentioned this pull request Jun 23, 2026
deps: upgrade npm to 12.0.0-pre.1 nodejs/node#64096
Closed
@coderabbitai coderabbitai Bot mentioned this pull request Aug 26, 2026
feat(ci): OIDC Modules Publish single-workflow Phase 1 choysum-dev/choysum#299
Merged
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nishantms nishantms nishantms approved these changes
@karenjli karenjli Awaiting requested review from karenjli
+2 more reviewers
@wraithgar wraithgar wraithgar left review comments
@owlstronaut owlstronaut owlstronaut approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

backport:v11

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@reggi @wraithgar @owlstronaut @karenjli @nishantms
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.