Cross-Provider Workflow

GitHub Code Scanning Alert to Datadog Event to Slack

Version 1.0.0

Pull a GitHub code-scanning alert, post a Datadog event, then notify Slack.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

github datadog slack

Workflows

codescan-to-datadog-event-to-slack
List a code-scanning alert, post a Datadog event, and notify Slack.
Retrieves code-scanning alerts for a repository, records the top finding as a Datadog event, and posts a Slack message about the alert.
3 steps inputs: owner, repo, slackChannel outputs: alertRule, eventId, messageTs
1
list-alerts
$sourceDescriptions.githubCodeScanning.listCodeScanningAlertsForRepository
List code-scanning alerts for the GitHub repository.
2
post-datadog-event
$sourceDescriptions.datadogEvents.createEvent
Record the code-scanning alert as a Datadog event.
3
notify-slack
$sourceDescriptions.slackChat.postChatPostmessage
Notify a Slack channel about the code-scanning alert.

Source API Descriptions

Arazzo Workflow Specification

dev-github-codescan-to-datadog-event-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: GitHub Code Scanning Alert to Datadog Event to Slack
  summary: Pull a GitHub code-scanning alert, post a Datadog event, then notify Slack.
  description: >-
    A DevSecOps correlation workflow that lists code-scanning alerts for a GitHub
    repository, records the top finding as a Datadog event so it appears on the
    observability timeline, and notifies a Slack channel. Demonstrates chaining a
    source-control provider, an observability provider, and a chat provider in a
    single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: githubCodeScanning
    url: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/openapi/_original/github-repo-code-scanning-api-openapi.yml
    type: openapi
  - name: datadogEvents
    url: https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/openapi/_original/datadog-events-openapi.yml
    type: openapi
  - name: slackChat
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-api-openapi.yml
    type: openapi
workflows:
  - workflowId: codescan-to-datadog-event-to-slack
    summary: List a code-scanning alert, post a Datadog event, and notify Slack.
    description: >-
      Retrieves code-scanning alerts for a repository, records the top finding
      as a Datadog event, and posts a Slack message about the alert.
    inputs:
      type: object
      properties:
        owner:
          type: string
        repo:
          type: string
        slackChannel:
          type: string
    steps:
      - stepId: list-alerts
        description: List code-scanning alerts for the GitHub repository.
        operationId: $sourceDescriptions.githubCodeScanning.listCodeScanningAlertsForRepository
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          alertRule: $response.body#/0/rule/description
          alertUrl: $response.body#/0/html_url
      - stepId: post-datadog-event
        description: Record the code-scanning alert as a Datadog event.
        operationId: $sourceDescriptions.datadogEvents.createEvent
        requestBody:
          contentType: application/json
          payload:
            title: $steps.list-alerts.outputs.alertRule
            text: $steps.list-alerts.outputs.alertUrl
            alert_type: warning
            tags:
              - source:github-code-scanning
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          eventId: $response.body#/event/id
      - stepId: notify-slack
        description: Notify a Slack channel about the code-scanning alert.
        operationId: $sourceDescriptions.slackChat.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.slackChannel
            text: $steps.list-alerts.outputs.alertUrl
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
    outputs:
      alertRule: $steps.list-alerts.outputs.alertRule
      eventId: $steps.post-datadog-event.outputs.eventId
      messageTs: $steps.notify-slack.outputs.messageTs

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/dev-github-codescan-to-datadog-event-slack"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.