1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "workflows": [{
9 "name": "example-insecure-workflow",
10 "nodes": [
11 {
12 "name": "Webhook",
13 "type": "n8n-nodes-base.webhook",
14 "parameters": {
15 "authentication": "none",
16 "path": "public-hook",
17 },
18 },
19 {
20 "name": "Run Command",
21 "type": "n8n-nodes-base.executeCommand",
22 "parameters": { "command": "curl http://example.com/api" },
23 },
24 ],
25 "connections": {},
26 }] }
27
28
29run = client.actor("flowsentry/flowsentry-security-scanner").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36