Socket
Book a DemoInstallSign in
Socket

@netcentric/cm-notify

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netcentric/cm-notify

Adobe Cloud Manager Pipeline Notifications to Slack, Teams and Email

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
4
Weekly downloads
 
Created
Source

cm-notify

Version Release Status CodeQL Analysis semver: semantic-release License

Cloud Manager Notify is a Node.js application that listens for Cloud Manager events and sends notifications to Slack and Microsoft Teams.

Installation

  • Global installation:
npm i -g @netcentric/cm-notify
  • Local installation:
npm i @netcentric/cm-notify

Usage

  • If installed globally:
cm-notify [COMMAND]
  • If installed locally:
./node_modules/.bin/cm-notify [COMMAND]
  • Usage as a library:
const {
  startApp,
  startNgrok,
  setupGoogle,
  setupAdobe
} = require('@netcentric/cm-notify');

startApp();

Commands

  • start:app - Start the application server to listen for Cloud Manager events
  • start:ngrok - Start ngrok
  • setup:adobe - Setup Adobe Cloud Manager pipelines data
  • setup:google - Setup Google Auth Token
  • test - Post test event to the local webhook

Setup

Environment Variables

  • Create a .env file in the root folder with the following variables:

Minimal required envs:

# Cloud Manager envs
ORGANIZATION_NAME=orgname# used to build the URL for the Pipeline
# Messanger apps env
SLACK_WEBHOOK=webhook_url

All envs:

# Cloud Manager envs
ORGANIZATION_NAME=orgname# used to build the URL for the Pipeline
CLIENT_ID=e231#used to validate CM event
# Messanger apps env
SLACK_WEBHOOK=https://hooks.slack.com/services/123
# Teams webhook URL
TEAMS_WEBHOOK=https://prod-123.westus.logic.azure.com:443/workflows/123
# Teams email, alternative approach, if Webhook is disabled
TEAMS_EMAIL=email.onmicrosoft.com@amer.teams.ms
# Email sender env
# Only needed if Teams email approach is used
EMAIL_FROM=gmailuser@googleworkspacedomain.com
# App env (optional)
PORT=4000# port to run the application, default is 4000
DATA_PATH=./.data# path to the data folder wher tokens are stored, default is ./.data
# Ngrok env (optional)
# Only needed if ngrok is used for local testing
NGROK_AUTHTOKEN=123
NGROK_DOMAIN=domain-name.ngrok-free.app

Cloud Manager Webhook

  • Optional: For local testing, you can use ngrok to expose your local server to the internet.
  • Optional: For exploring the events in developer console, you need to add OAuth credentials and I/O Management API

Cloud Manager pipelines data (optional)

  • Only needed for more details about the pipeline.
  • Get a Cloud Manager list of pipelines
  • Generate valid Cloud Manager list of pipelines

Google Auth Token (optional)

  • Only needed if you want to send notifications via email.
  • Get Google Auth Credentials
  • Generate Google Auth Token

Testing

  • Setup testing slack/teams channel
  • Configure .env file
  • Add .data files
  • Setup Google and Adobe files
  • Start the application:
cm-notify start:app
  • Post a test event to the local webhook
cm-notify test

Keywords

Cloud Manager

FAQs

Package last updated on 27 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.