1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "providers": [
12 "github",
13 "stripe"
14 ],
15 "allowlist": {
16 "github": [
17 "192.30.252.0/22",
18 "185.199.108.0/22",
19 "140.82.112.0/20",
20 "143.55.64.0/20",
21 "2a0a:a440::/29",
22 "2606:50c0::/32"
23 ],
24 "stripe": [
25 "3.18.12.63/32",
26 "3.69.109.8/32",
27 "3.120.168.93/32",
28 "3.130.192.231/32",
29 "13.235.14.237/32",
30 "13.235.122.149/32",
31 "18.211.135.69/32",
32 "35.154.171.200/32",
33 "35.157.207.129/32",
34 "52.15.183.38/32",
35 "54.88.130.119/32",
36 "54.88.130.237/32",
37 "54.187.174.169/32",
38 "54.187.205.235/32",
39 "54.187.216.72/32"
40 ]
41 },
42 "alert_webhook_url": "",
43 "baseline_key": "DEFAULT"
44};
45
46
47const run = await client.actor("kingii98/webhook-sender-ip-range-drift-and-allowlist-gap-report").call(input);
48
49
50console.log('Results from dataset');
51console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
52const { items } = await client.dataset(run.defaultDatasetId).listItems();
53items.forEach((item) => {
54 console.dir(item);
55});
56
57