Auth0-deploy-cli directory configuration: Add secrets to action

Hi @kamal.nellipudi,

Welcome to the Auth0 Community!

Yes, it is possible! To do so, you will need to use the tenant.yaml approach and specify the key-value pairs in the secrets object. See below:

actions:
  - name: action-example
    code: ./actions/action-example/code.js
    dependencies:
      - name: lodash
        version: 4.17.21
    deployed: true
    secrets:
      - name: MY_SECRET
        value: _VALUE_NOT_SHOWN_
    status: built
    supported_triggers:
      - id: post-login
        version: v1

You may also find the Auth0 Deploy CLI Github example useful.

Please let me know if you have any further questions.

Thank you.

1 Like