feat: add actions modules versions commands - #1609
Open
developerkunal wants to merge 1 commit into
Open
Conversation
Add the 'auth0 actions modules versions' command group for managing an
action module's immutable published versions:
- list: list a module's versions
- show: display the code, dependencies, and secrets of a version
- rollback: restore a past version into the module's draft
- publish: snapshot the current draft as a new version
Backed by the /actions/modules/{id}/versions endpoint and the module
rollback endpoint.
developerkunal
marked this pull request as ready for review
August 10, 2026 13:12
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.
🔧 Changes
Adds the
auth0 actions modules versionscommand group for managing an action module's immutable published versions. Every published version is a snapshot of the module's code, dependencies, and secrets at publish time.New commands:
auth0 actions modules versions list [id]— list a module's versions, with--number,--json,--json-compact, and--csvoutput.auth0 actions modules versions show [id] [version-id]— display the code, dependencies, and secrets captured by a specific version.auth0 actions modules versions rollback [id] [version-id]— copy a past version's code, dependencies, and secrets back into the module's draft. This replaces the draft only; it does not create a new version. Supports--forceto skip confirmation.auth0 actions modules versions publish [id]— snapshot the module's current draft as a new immutable version. This is equivalent to the--publishflag oncreate/update, but lets you publish a draft on its own.Behavior notes:
publishreads the module first and skips a redundant publish when the draft already matches the latest version, showing the current module instead.rollbackandpublishre-read the module after the write so the output reflects the restored draft or the newly published version.ActionModuleAPIV3withRollbackandActionModuleVersionAPIV3withListandGetover the go-auth0 v3 SDK, with regenerated mocks.📚 References
DXCDT-2172
Stacked on #1606 (base branch
DXCDT-2171/actions-modules-tree).🔬 Testing
test/integration/action-modules-versions-test-cases.yamlexercise publish, the already-published message, list, list in JSON, show, show in JSON, and rollback. Verified locally against a live tenant via commander (7/7 passing).📝 Checklist