https://github.com/DeepakNarayananS/Together_AI_Vulnerability_Tracker

🛡️ CVE Vulnerability Monitor – Full Step-by-Step Code Guide

📘 Overview

This Google Apps Script automatically monitors your software for known security issues (CVE – Common Vulnerabilities and Exposures).

It uses Together AI’s API to find vulnerabilities, stores the results in a Google Sheet, and sends email alerts for High and Critical severity threats.


⚙️ Configuration Section

Step 1: API and Email Setup

const TOGETHER_API_KEY = 'Enter Your API Key Here';
const VULN_SHEET_NAME = 'Vulns';
const EMAIL_ALERT_TO = 'Enter Your E-Mail Address Here';
const EMAIL_ALERT_CC = 'Enter Your E-Mail Address Here';
const STATE_KEY = 'lastTogetherVulnSnapshot';

What this does:

Why it matters:

These constants act as your configuration dashboard — you can easily adjust settings here without modifying the main logic.


🚀 Main Function: fetchAndUpdate()

Step 2: Initialize the Sheet

function fetchAndUpdate() {
  const sheet = getOrCreateSheet(VULN_SHEET_NAME);
  clearAndSetupSheet(sheet);
  const criticalOrHigh = [];