Skip to content

feat: add permissions support to trust commands#9248

Merged
reggi merged 3 commits into
latestfrom
reggi/trust-permissions
May 20, 2026
Merged

feat: add permissions support to trust commands#9248
reggi merged 3 commits into
latestfrom
reggi/trust-permissions

Conversation

@reggi
Copy link
Copy Markdown
Contributor

@reggi reggi commented Apr 16, 2026

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

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 <223556219+Copilot@users.noreply.github.com>
@reggi reggi requested a review from a team as a code owner April 16, 2026 19:15
Comment thread lib/trust-cmd.js
Comment thread lib/trust-cmd.js Outdated
Comment thread lib/trust-cmd.js Outdated
Comment thread lib/trust-cmd.js Outdated
Comment thread lib/commands/trust/circleci.js Outdated
- 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 <223556219+Copilot@users.noreply.github.com>
@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
Document the --allow-publish and --allow-stage-publish flags
that are required when creating trust configurations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@reggi reggi merged commit cf94dbe into latest May 20, 2026
25 checks passed
@reggi reggi deleted the reggi/trust-permissions branch May 20, 2026 16:20
@github-actions
Copy link
Copy Markdown
Contributor

🎉 Backport to release/v11 created: #9376

reggi added a commit that referenced this pull request May 20, 2026
Backport of #9248 to `release/v11`.

Co-authored-by: Tea Reggi <reggi@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants