Open
Conversation
- src/context/directory/handlers/actionModules.ts: add action modules parsing and dumping logic - src/context/directory/handlers/actions.ts: include modules in action mapping - src/context/directory/handlers/index.ts: register actionModules handler - src/context/yaml/handlers/actionModules.ts: add YAML support for action modules - src/context/yaml/handlers/actions.ts: include modules in action mapping for YAML - src/context/yaml/handlers/index.ts: register actionModules handler for YAML - src/tools/auth0/handlers/actionModules.ts: create ActionModulesHandler for API interactions - src/tools/auth0/handlers/actions.ts: log action data during update - src/tools/auth0/handlers/index.ts: import actionModules handler - src/tools/constants.ts: define ACTION_MODULES_DIRECTORY constant - src/types.ts: extend Asset type to include actionModules - test/utils.js: mock management client for action modules
- src/context/directory/handlers/actionModules.ts: add new fields for actions using module total, all changes published, and latest version number - src/context/directory/handlers/actions.ts: include module details in action mapping - src/context/yaml/handlers/actionModules.ts: add new fields for actions using module total, all changes published, and latest version number - src/tools/auth0/handlers/actionModules.ts: update field names for consistency - src/tools/auth0/handlers/actions.ts: enrich actions with module IDs and add modules schema
- src/context/directory/handlers/actions.ts: remove unnecessary line in mapToAction function - src/tools/auth0/handlers/actionModules.ts: format imports and improve readability in schema definition
- src/context/yaml/handlers/actionModules.ts: update condition to check for empty actionModules - test/context/directory/actions.test.js: add tests for dumping actions with modules - test/context/yaml/actions.test.js: add tests for dumping actions with modules - test/context/directory/actionModules.test.ts: new file for action modules tests - test/context/yaml/actionModules.test.ts: new file for YAML context action modules tests - test/tools/auth0/handlers/actionModules.tests.ts: new file for action modules handler tests
- package.json: update auth0 version to ^5.3.1 - package-lock.json: update auth0 version to 5.3.1 - src/tools/auth0/handlers/actionModules.ts: add all_changes_published field and implement publish logic - src/tools/auth0/handlers/actions.ts: paginate to get all versions of the module
- src/tools/auth0/handlers/actionModules.ts: remove 'value' from required secrets - src/tools/auth0/handlers/actionModules.ts: create updatableModule for updateModule method
…ons mock data - test/tools/auth0/handlers/actions.tests.js: refactor promise resolution for versions list
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1302 +/- ##
==========================================
- Coverage 80.37% 80.17% -0.20%
==========================================
Files 146 149 +3
Lines 5879 6048 +169
Branches 1208 1237 +29
==========================================
+ Hits 4725 4849 +124
- Misses 660 685 +25
- Partials 494 514 +20 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- examples/directory/action-modules/auth-helper/code.js: use actions.secrets.JWT_SECRET instead of process.env.JWT_SECRET - examples/yaml/action-modules/auth-helper/code.js: use actions.secrets.JWT_SECRET instead of process.env.JWT_SECRET
kushalshit27
commented
Feb 18, 2026
src/tools/auth0/handlers/actions.ts
Outdated
|
|
||
| let modules: ActionModule[] | null = null; | ||
| try { | ||
| modules = await paginate<ActionModule>(this.client.actions.modules.list, { |
Contributor
Author
There was a problem hiding this comment.
check with assets actions-modules
- Update assets destructuring to include actionModules - Modify module retrieval logic to prioritize actionModules if available
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
actionModulesasset type across the deploy pipeline so tenants can export/import reusable Action modules in both directory and YAML formats.actions[].modules) in schema validation, change detection, and export dumping so linked modules are preserved.Examples
Examples Yaml format:
⚙️ Configuration options:
{ "AUTH0_KEYWORD_REPLACE_MAPPINGS": { "NOTIFICATION_SECRET": "<your-notification-secret-key>" } }Examples JSON format:
{ "name": "notification-helper", "code": "./action-modules/notification-helper/code.js", "dependencies": [ { "name": "uuid", "version": "9.0.0" } ], "secrets": [ { "name": "NOTIFICATION_SECRET", "value": "##NOTIFICATION_SECRET##" } ] }🔬 Testing
action-modules/*/code.jsandactions[].modulesare correctly persisted.📝 Checklist