Skip to content

feat: add permissions support to trust commands#9376

Merged
reggi merged 1 commit into
release/v11from
backport/v11/9248
May 20, 2026
Merged

feat: add permissions support to trust commands#9376
reggi merged 1 commit into
release/v11from
backport/v11/9248

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Backport of #9248 to release/v11.

## 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

- #9201

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit cf94dbe)
@reggi reggi merged commit 1433740 into release/v11 May 20, 2026
17 checks passed
@reggi reggi deleted the backport/v11/9248 branch May 20, 2026 17:00
@github-actions github-actions Bot mentioned this pull request May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant