Code Monkey home page Code Monkey logo

actions-auth0-deploy-cli's Introduction

GitHub Action for Auth0 Deploy CLI

This action for auth0-deploy-cli enables arbitrary actions with the a0deploy command, including import and export of tenant configuration.

Refer to the Auth0 Extensions Documentation for more information on the extension, installation and configuration.

The underlying container used is maintained at auth0-deploy-cli-container.

Parameters

Argument Description
domain Full domain for the tenant you are configuring. (eg: tenant.eu.auth0.com)
id Auth0 Client ID
secret Auth0 Client Secret

Usage

An example configuration deploying tenant configuration from the project where this workflow is running. The tenant input file is expected to be at ./tenant.yml.

name: Auth0 Deploy Tenant
on: [push]

jobs:
  import:
    name: Import Tenant Configuration
    uses: twyla-ai/action-auth0-deploy-cli@master
    with:
      domain: "<tenant>.auth0.com"
      id: ${{ secrets.AUTH0_CLIENT_ID }}
      secret: ${{ secrets.AUTH0_CLIENT_SECRET }}
      args: "import -i tenant.yml"
    env:
      AUTH0_ALLOW_DELETE: "true"

Example With Keyword Replace Mappings

Consider a scenario where the following config file is normally used.

{
  "AUTH0_DOMAIN": "<tenant>.auth0.com",
  "AUTH0_CLIENT_ID": "<auth0-client-id>",
  "AUTH0_CLIENT_SECRET": "<auth-client-secret>",
  "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
    "CONNECTION_GOOGLE_CLIENT_ID": "<value>",
    "CONNECTION_GOOGLE_CLIENT_SECRET": "<value>",
    "CALLBACK_URL": "http://localhost:8080"
  }
}

This can be configured via the action as follows. Note that additional config file can also be specified by appending -c ./path/to/config.json to args.

name: Import Tenant Configuration
uses: twyla-ai/action-auth0-deploy-cli@master
with:
  domain: "<tenant>.auth0.com"
  id: ${{ secrets.AUTH0_CLIENT_ID }}
  secret: ${{ secrets.AUTH0_CLIENT_SECRET }}
  args: "import"
env:
  AUTH0_INPUT_FILE: ./tenant.yaml
  CONNECTION_GOOGLE_CLIENT_ID: "<value>"
  CONNECTION_GOOGLE_CLIENT_SECRET: "<value>"
  CALLBACK_URL: http://localhost:8080

Environment Variables

Any environment variable respected by the underlying a0deploy command can be passed in via env.

actions-auth0-deploy-cli's People

Contributors

abn avatar natepage avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.