Adds deployment access management features to the CLI#245
Draft
ejacquier wants to merge 22 commits intofeature/charm-lib-refactoringfrom
Draft
Adds deployment access management features to the CLI#245ejacquier wants to merge 22 commits intofeature/charm-lib-refactoringfrom
ejacquier wants to merge 22 commits intofeature/charm-lib-refactoringfrom
Conversation
…ccess display to cre whoami command
…ss check to workflow deploy command
… submitting the request to zendesk
…2/deploy-request-refactor
…2/deploy-request-refactor
…2/deploy-request-refactor
|
🚀 Preview Build Artifacts You can download the preview builds for this PR from the following URL: https://github.com/smartcontractkit/cre-cli/actions/runs/21761292603 Note: These are preview builds and are not signed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds deployment access management features to the CLI, allowing users to check their access status and request deployment access directly from the command line.
cre account accesscommand to check status and request deployment accesscre whoamioutputcre workflow deploywithout accessNote: This PR is based on charm lib refactor branch - see PR
Changes
New Command:
cre account accessCRE_ZENDESK_USERNAMEandCRE_ZENDESK_PASSWORDenv vars for credentialsUpdated Commands
cre whoami: Now displaysDeploy Access: EnabledorDeploy Access: Not enabled (run 'cre account access' to request)cre workflow deploy: Checks access before deploying; prompts to request access if not enabledcre workflow simulate: Shows deploy access hint after successful simulation for gated usersRefactoring
internal/accessrequest/package with shared logic for access requestsGetDeploymentAccessStatus()method toCredentialsstruct for reusable access checkingCheckIsUngatedOrganization()to use the new methodHelp Updates
cre accountdescription to "Manage account and request deploy access"