feat: add actions modules versions commands - #1609
Merged
Merged
Conversation
developerkunal
marked this pull request as ready for review
August 10, 2026 13:12
bkiran6398
previously approved these changes
Aug 14, 2026
developerkunal
force-pushed
the
DXCDT-2172/actions-modules-versions
branch
from
August 14, 2026 11:50
5dcf510 to
6642557
Compare
bkiran6398
previously approved these changes
Aug 14, 2026
developerkunal
force-pushed
the
DXCDT-2172/actions-modules-versions
branch
from
August 14, 2026 12:16
6642557 to
f1154e5
Compare
developerkunal
force-pushed
the
DXCDT-2172/actions-modules-versions
branch
2 times, most recently
from
August 14, 2026 12:21
f153b48 to
39dc759
Compare
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.
The versions suite shared the module fixture created by get-action-module-id.sh, which the actions modules suite deletes in its last test. Since the modules suite runs first, the cached ID file was left pointing at a deleted module and every versions command 404'd. Add get-action-module-versions-module-id.sh so the versions suite creates and caches a module of its own.
developerkunal
force-pushed
the
DXCDT-2172/actions-modules-versions
branch
from
August 14, 2026 12:44
39dc759 to
9b6362b
Compare
ramya18101
approved these changes
Aug 14, 2026
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