Skip to content

Instantly share code, notes, and snippets.

import { Octokit } from '@octokit/rest'
// Set your token here or set as an environment variable
const token = process.env.GITHUB_TOKEN
const octokit = new Octokit({ auth: token })
// Define Dependabot config.yml content
const dependabotContent = `
version: 2
updates:
"operation": "update",
"body": {
"subnet": "10.5.40.192/27",
"applianceIp": "10.5.40.193",
"fixedIpAssignments": {
"60:c7:98:2d:80:29": {
"ip": "10.5.40.190",
"name": "MX925"
}
"operation": "update",
"operation": "update",
"body": {
"subnet": "10.5.40.192/27",
"applianceIp": "10.5.40.193",
"fixedIpAssignments": {
"60:c7:98:2d:80:29": {
"ip": "10.5.40.190",
"name": "MX925"
}
"operation": "update",
"accessControlLists"
"accessPolicies"
"acls"
"actionBatches"
"adaptivePolicy"
"addresses"
"administered"
"admins"
"aggregateBySensor"
"airMarshal"
// https://www.lucaspaganini.com/academy/20-typescript-compiler-options-for-your-tsconfig-json
{
"include": [
"src/**/*.ts"
],
"exclude": [
"cdk.out",
"node_modules"
"108.128.0.0/13"
"108.128.0.0/13"
"108.128.160.0/23"
"108.128.162.0/24"
"13.248.113.0/24"
"13.248.113.0/24"
"13.248.118.0/24"
"13.248.118.0/24"
"13.248.119.0/24"
"13.248.119.0/24"
<!DOCTYPE html>
<html lang="en" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# schema: http://schema.org/ sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# ">
<head>
<meta charset="utf-8" />
<script>!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init', "829385307400789");fbq('track', "PageView");</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-40993057-1"></script>
<script>window.dataLayer = window.dat
<!DOCTYPE html>
<html lang="en" dir="ltr" prefix="content: http://purl.org/rss/1.0/modules/content/ dc: http://purl.org/dc/terms/ foaf: http://xmlns.com/foaf/0.1/ og: http://ogp.me/ns# rdfs: http://www.w3.org/2000/01/rdf-schema# schema: http://schema.org/ sioc: http://rdfs.org/sioc/ns# sioct: http://rdfs.org/sioc/types# skos: http://www.w3.org/2004/02/skos/core# xsd: http://www.w3.org/2001/XMLSchema# ">
<head>
<meta charset="utf-8" />
<script>!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init', "829385307400789");fbq('track', "PageView");</script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-40993057-1"></script>
<script>window.dataLayer = window.dat
{
"devices": {
"Q2AX-CSJW-JVYH": {
"device": {
"lat": 37.4180951010362,
"lng": -122.098531723022,
"address": "",
"serial": "Q2AX-CSJW-JVYH",
"mac": "0c:8d:db:03:76:dc",
"lanIp": "192.168.23.44",
{
"devices": {
"Q2AX-CSJW-JVYH": {
"device": {
"lat": 37.4180951010362,
"lng": -122.098531723022,
"address": "",
"serial": "Q2AX-CSJW-JVYH",
"mac": "0c:8d:db:03:76:dc",
"lanIp": "192.168.23.44",