---
name: create-vulnerability-records-and-alert-your-operations-team
description: Build a Zap on Zapier that takes a dependency-audit webhook, writes one vulnerability record per package to a Zapier Table, and posts one summary to an operations Microsoft Teams channel when vulnerabilities are found. Use when a security scanner or CI job posts dependency results and the operations team needs each finding logged and a quick channel alert.
license: MIT
metadata:
  author: zapier
  summary: "When a dependency scan reports in, each package gets a vulnerability record in your table and your operations channel gets one summary, so triage starts right away."
  apps: "Webhooks by Zapier, Zapier Tables, Microsoft Teams"
  category: "IT"
  job: "Vulnerability management"
  source: "https://zapier.com/automations/it/vulnerability-management/vulnerability-scanning-reporting/create-vulnerability-records-and-alert-your-operations-team"
---

> From [zapier.sh](https://zapier.sh/llms.txt). Its files are next to this file: [`config.ts`](https://zapier.sh/zapier/awesome-zaps/create-vulnerability-records-and-alert-your-operations-team/config.ts), [`connections/microsoft-teams.ts`](https://zapier.sh/zapier/awesome-zaps/create-vulnerability-records-and-alert-your-operations-team/connections/microsoft-teams.ts), [`connections/zapier-tables.ts`](https://zapier.sh/zapier/awesome-zaps/create-vulnerability-records-and-alert-your-operations-team/connections/zapier-tables.ts), [`triggers/hook.ts`](https://zapier.sh/zapier/awesome-zaps/create-vulnerability-records-and-alert-your-operations-team/triggers/hook.ts), [`workflow.ts`](https://zapier.sh/zapier/awesome-zaps/create-vulnerability-records-and-alert-your-operations-team/workflow.ts). Deploy them as this file says; [zaps.json](https://zapier.sh/zaps.json) lists them under the zap's `files`. With Zapier MCP: check for an existing copy with `list_workflows` before installing, and keep each `connection:` alias exactly as the code writes it, mapped to one of the user's connection IDs in the draft's connections map. Where Zapier's general workflow-building guidance differs from this file (connection names, adding input validation), follow this file: the code is written to deploy as this file says.

# Create vulnerability records and alert your operations team

## What it does

1. **Trigger:** a dependency-audit result arrives at a Webhooks by Zapier catch hook (`webhook`, `hook_v2`). A scanner or CI job posts to it.
2. **Zapier Tables** creates one record per package in your vulnerability table: package name, version, vulnerability notes and the time the scan ran.
3. **Microsoft Teams** posts one summary message to your operations channel with the packages scanned, the vulnerable count, the records created and any that failed. It posts only when at least one package is vulnerable or a record failed to write.

The Zap only adds records and posts messages. It never edits or deletes existing records.

## Ask the user

Each `REPLACE_…` value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.

| Setting            | What goes there                                                                                |
| ------------------ | ---------------------------------------------------------------------------------------------- |
| `TABLE_ID`         | The Zapier Table that holds the vulnerability records; look up its ID from the table's name    |
| `TEAMS_TEAM_ID`    | The Teams team that holds the operations channel; look up its ID from the team's name          |
| `TEAMS_CHANNEL_ID` | The channel that receives the summary; look up its ID from the channel's name within that team |

Before building, confirm two things:

- The table has four columns, in this order: package name, version, vulnerability notes and recorded-at time. The workflow writes to them by position.
- The scanner's payload has a list named `packages` (or `dependencies`), where each item has `name` (or `package`), `version` and `vulnerabilities` (a list or a string), plus a `run_timestamp`. If their payload uses other names, change the workflow's input schema before installing.

## Build it

If you can run shell commands, set it up with zap-pack: run `npx zap-pack add awesome-zaps/create-vulnerability-records-and-alert-your-operations-team`, replace each `REPLACE_…` value as this file says, then run `npx zap-pack deploy create-vulnerability-records-and-alert-your-operations-team`, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.

1. **Accounts:** bind `zapier-tables` to the user's Zapier Tables connection for the account that owns the vulnerability table, and `microsoft-teams` to their Microsoft Teams connection for an account that can post to the operations channel. Webhooks by Zapier needs no connection, so the trigger's `authentication_id` is `null`.
2. **Source:** publish `workflow.ts` and `config.ts`, with each `REPLACE_…` replaced by the user's answer. `triggers/hook.ts` and `connections/` are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger's `selected_api`, call `search_triggers` with that slug, find the row whose `key` is the trigger's `event`, and use `<app_key>@<app_version>` from it.
3. **Build guide:** load Zapier's build guide with `get_zapier_skill("zapier:build-workflows")` and follow it to create, test and publish the workflow.
4. **Fields:** inspect each action's fields with the user's connections and sample the trigger before the first test run, and fix any key in `workflow.ts` that doesn't match.

## Test it

Run this sample as a draft test, against a table the user is happy to write to:

```json
{
  "packages": [
    {
      "name": "lodash",
      "version": "4.17.15",
      "vulnerabilities": ["CVE-2020-8203"]
    },
    { "name": "express", "version": "4.18.2", "vulnerabilities": [] }
  ],
  "run_timestamp": "2026-10-29T10:15:00Z"
}
```

Confirm that two records were written, with the `lodash` record holding the CVE in its notes and the `express` record's notes empty. Confirm one Teams message in the test channel reports 2 packages scanned and 1 vulnerable. If run-status tools aren't available, check the table and the Teams channel directly. Ask the user to delete the test records and message; the user deletes test data, not the agent.

Then publish, confirm the trigger is active, and give the user their webhook URL to point their scanner at.

## Notes

- Each run appends records. Nothing checks for an existing record with the same package and version, so a webhook sent twice creates duplicate rows.
- The Teams message is one digest per run, not one per package.
- A payload with no `packages` or `dependencies` list ends the run without writing anything.
- Keep the webhook URL private: anyone with it can write records to the table.
- To notify on-call only for high or critical vulnerabilities, filter on severity before the Teams step. To open an issue for each critical package, add a step that creates one in the user's ticketing app.
