-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample-data.js
More file actions
78 lines (77 loc) · 2.17 KB
/
Copy pathexample-data.js
File metadata and controls
78 lines (77 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
export const exampleActions = {
"my-http-request": {
inputs: {
headers: {
"x-cortex-signature": "sha1=abcd1234",
"x-cortex-signature-256": "sha256=abcd1234",
"x-cortex-timestamp": "1748986456903",
"x-cortex-timestamp-only-signature-256": "sha256=abcd1234",
},
httpMethod: "GET",
payload: null,
url: "http://google.com",
},
outputs: {
body: "<html>Google Homepage HTML goes here :)</html>",
headers: {
"Cache-Control": "private, max-age=0",
"Content-Security-Policy-Report-Only":
"object-src 'none';base-uri 'self';script-src 'nonce--u5VdKdJhZUzUHg7FjZ_eg' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp",
"Content-Type": "text/html; charset=ISO-8859-1",
Date: "Tue, 03 Jun 2025 21:34:17 GMT",
Expires: "-1",
P3P: 'CP="This is not a P3P policy! See g.co/p3phelp for more info."',
Server: "gws",
"Set-Cookie":
"abcd1234; expires=Wed, 03-Dec-2025 21:34:17 GMT; path=/; domain=.google.com; HttpOnly",
"Transfer-Encoding": "chunked",
"X-Frame-Options": "SAMEORIGIN",
"X-XSS-Protection": "0",
},
status: 200,
},
status: "COMPLETED",
},
"my-javascript": {
inputs: null,
outputs: null,
status: "IN_PROGRESS",
},
"my-user-input": {
inputs: {},
outputs: {
"my-text-input": "Hello, world!",
},
status: "COMPLETED",
},
};
export const exampleContext = {
initiatedAtIso8601Timestamp: "2025-06-03T21:34:10.555+00:00",
initiatedBy: {
email: "dan@cortex.io",
identityMappings: {
github: "myGithubUsername",
pagerduty: "ABCD1234",
slack: "ABCD1234",
},
identityMappingsByAlias: {
github: {
default: "myGithubUsername",
},
pagerduty: {
default: "ABCD1234",
},
slack: {
default: "ABCD1234",
},
},
name: "Dan",
role: "OWNER",
roles: ["ROLE_OWNER"],
},
secrets: {
pagerduty_secret: "********",
very_secret_value: "********",
},
workflowRunId: "abcd1234-1234abcd",
};