hackerone-client 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/fixtures/vcr_cassettes/traverse_through_3_activities.yml +232 -0
- data/fixtures/vcr_cassettes/traverse_through_all_activities.yml +266 -0
- data/lib/hackerone/client.rb +3 -2
- data/lib/hackerone/client/activity.rb +7 -0
- data/lib/hackerone/client/incremental/activities.rb +67 -0
- data/lib/hackerone/client/program.rb +8 -0
- data/lib/hackerone/client/resource_helper.rb +9 -6
- data/lib/hackerone/client/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20ceb82c10eef16b973775c0f72824dc7f580d4a
|
4
|
+
data.tar.gz: 2376bdfa40c9e3bdc23858d6648dee1351b5879d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c39a1b3caa22f7bbeb431d49cca0f68a378ff2b65c0c3aa270bad9ca984b45158767741276308a876899529eb8cebd054cd63367fbfa8f39ed64eaa4e8ed3c3
|
7
|
+
data.tar.gz: 490a108988775ec10d819f82c177c132f0b6f4c1c05d5e3c0f71f2cdeebf9e046c4929d1ce57fe10679d7812eb74daa88d6b9ca0b11060659a112dec3d07ec0a
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [0.12.0] - 2017-12-07
|
2
|
+
|
3
|
+
- [Incremental activities](https://github.com/oreoshake/hackerone-client/pull/36) - iterate over actions in a program (@esjee)
|
4
|
+
|
1
5
|
## [0.11.0] - 2017-11-03
|
2
6
|
|
3
7
|
- [Add state change hooks](https://github.com/oreoshake/hackerone-client/issues/25) (@esjee)
|
@@ -0,0 +1,232 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.hackerone.com/v1/incremental/activities?first=3&handle=github&updated_at_after=2017-12-04T15:38:00%2B00:00
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic NOPE
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.13.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Tue, 05 Dec 2017 16:24:20 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Set-Cookie:
|
34
|
+
- __cfduid=de6b363b55cc13462b7621c0ce4673ef21512491059; expires=Wed, 05-Dec-18
|
35
|
+
16:24:19 GMT; path=/; Domain=api.hackerone.com; HttpOnly; Secure
|
36
|
+
X-Request-Id:
|
37
|
+
- 9ed7b038-19f4-4c9e-af1f-fadc126d9a97
|
38
|
+
Etag:
|
39
|
+
- W/"c5f96ee108dce6e865d9a927b8eada5a"
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
Strict-Transport-Security:
|
43
|
+
- max-age=31536000; includeSubDomains; preload
|
44
|
+
Expect-Ct:
|
45
|
+
- enforce, max-age=86400
|
46
|
+
Content-Security-Policy:
|
47
|
+
- 'default-src ''none''; base-uri ''self''; block-all-mixed-content; child-src
|
48
|
+
www.youtube-nocookie.com; connect-src ''self'' www.google-analytics.com errors.hackerone.net;
|
49
|
+
font-src ''self''; form-action ''self''; frame-ancestors ''none''; img-src
|
50
|
+
''self'' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com
|
51
|
+
profile-photos.hackerone-user-content.com hackerone-attachments.s3.amazonaws.com;
|
52
|
+
media-src ''self'' hackerone-attachments.s3.amazonaws.com; script-src ''self''
|
53
|
+
www.google-analytics.com; style-src ''self'' ''unsafe-inline''; report-uri
|
54
|
+
https://errors.hackerone.net/api/30/csp-report/?sentry_key=61c1e2f50d21487c97a071737701f598'
|
55
|
+
Referrer-Policy:
|
56
|
+
- strict-origin-when-cross-origin
|
57
|
+
X-Content-Type-Options:
|
58
|
+
- nosniff
|
59
|
+
X-Download-Options:
|
60
|
+
- noopen
|
61
|
+
X-Frame-Options:
|
62
|
+
- DENY
|
63
|
+
X-Permitted-Cross-Domain-Policies:
|
64
|
+
- none
|
65
|
+
X-Xss-Protection:
|
66
|
+
- 1; mode=block
|
67
|
+
Server:
|
68
|
+
- cloudflare-nginx
|
69
|
+
Cf-Ray:
|
70
|
+
- 3c885ae2caba2bfa-AMS
|
71
|
+
body:
|
72
|
+
encoding: ASCII-8BIT
|
73
|
+
string: '{"data":[{"type":"activity-group-assigned-to-bug","id":"2198958","attributes":{"message":"","created_at":"2017-12-04T15:38:00.017Z","updated_at":"2017-12-04T15:38:00.017Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
74
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}},"group":{"data":{"id":"16481","type":"group","attributes":{"name":"Standard","created_at":"2016-09-29T12:52:32.062Z","permissions":["report_management","reward_management"]}}}}},{"type":"activity-comment","id":"2201959","attributes":{"message":"this
|
75
|
+
is a comment","created_at":"2017-12-05T16:16:07.205Z","updated_at":"2017-12-05T16:16:07.205Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
76
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"2201960","attributes":{"message":"Here''s
|
77
|
+
a bounty!","created_at":"2017-12-05T16:16:27.757Z","updated_at":"2017-12-05T16:16:27.757Z","internal":false,"bounty_amount":"250"},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
78
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}}],"meta":{"max_updated_at":"2017-12-05T16:16:27.757Z"}}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Tue, 05 Dec 2017 16:24:20 GMT
|
81
|
+
- request:
|
82
|
+
method: get
|
83
|
+
uri: https://api.hackerone.com/v1/incremental/activities?first=3&handle=github&updated_at_after=2017-12-04T15:38:00%2B00:00
|
84
|
+
body:
|
85
|
+
encoding: US-ASCII
|
86
|
+
string: ''
|
87
|
+
headers:
|
88
|
+
Authorization:
|
89
|
+
- Basic NOPE
|
90
|
+
User-Agent:
|
91
|
+
- Faraday v0.13.1
|
92
|
+
Content-Type:
|
93
|
+
- application/json
|
94
|
+
Accept-Encoding:
|
95
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
96
|
+
Accept:
|
97
|
+
- "*/*"
|
98
|
+
response:
|
99
|
+
status:
|
100
|
+
code: 200
|
101
|
+
message: OK
|
102
|
+
headers:
|
103
|
+
Date:
|
104
|
+
- Tue, 05 Dec 2017 16:24:31 GMT
|
105
|
+
Content-Type:
|
106
|
+
- application/json; charset=utf-8
|
107
|
+
Transfer-Encoding:
|
108
|
+
- chunked
|
109
|
+
Connection:
|
110
|
+
- keep-alive
|
111
|
+
Set-Cookie:
|
112
|
+
- __cfduid=d9b2c3597c39ebf83d782cb04956600fb1512491070; expires=Wed, 05-Dec-18
|
113
|
+
16:24:30 GMT; path=/; Domain=api.hackerone.com; HttpOnly; Secure
|
114
|
+
X-Request-Id:
|
115
|
+
- 9e88cbb0-7040-4b64-9fc5-dc9a78be3a56
|
116
|
+
Etag:
|
117
|
+
- W/"c5f96ee108dce6e865d9a927b8eada5a"
|
118
|
+
Cache-Control:
|
119
|
+
- max-age=0, private, must-revalidate
|
120
|
+
Strict-Transport-Security:
|
121
|
+
- max-age=31536000; includeSubDomains; preload
|
122
|
+
Expect-Ct:
|
123
|
+
- enforce, max-age=86400
|
124
|
+
Content-Security-Policy:
|
125
|
+
- 'default-src ''none''; base-uri ''self''; block-all-mixed-content; child-src
|
126
|
+
www.youtube-nocookie.com; connect-src ''self'' www.google-analytics.com errors.hackerone.net;
|
127
|
+
font-src ''self''; form-action ''self''; frame-ancestors ''none''; img-src
|
128
|
+
''self'' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com
|
129
|
+
profile-photos.hackerone-user-content.com hackerone-attachments.s3.amazonaws.com;
|
130
|
+
media-src ''self'' hackerone-attachments.s3.amazonaws.com; script-src ''self''
|
131
|
+
www.google-analytics.com; style-src ''self'' ''unsafe-inline''; report-uri
|
132
|
+
https://errors.hackerone.net/api/30/csp-report/?sentry_key=61c1e2f50d21487c97a071737701f598'
|
133
|
+
Referrer-Policy:
|
134
|
+
- strict-origin-when-cross-origin
|
135
|
+
X-Content-Type-Options:
|
136
|
+
- nosniff
|
137
|
+
X-Download-Options:
|
138
|
+
- noopen
|
139
|
+
X-Frame-Options:
|
140
|
+
- DENY
|
141
|
+
X-Permitted-Cross-Domain-Policies:
|
142
|
+
- none
|
143
|
+
X-Xss-Protection:
|
144
|
+
- 1; mode=block
|
145
|
+
Server:
|
146
|
+
- cloudflare-nginx
|
147
|
+
Cf-Ray:
|
148
|
+
- 3c885b264b3d72f5-AMS
|
149
|
+
body:
|
150
|
+
encoding: ASCII-8BIT
|
151
|
+
string: '{"data":[{"type":"activity-group-assigned-to-bug","id":"2198958","attributes":{"message":"","created_at":"2017-12-04T15:38:00.017Z","updated_at":"2017-12-04T15:38:00.017Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
152
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}},"group":{"data":{"id":"16481","type":"group","attributes":{"name":"Standard","created_at":"2016-09-29T12:52:32.062Z","permissions":["report_management","reward_management"]}}}}},{"type":"activity-comment","id":"2201959","attributes":{"message":"this
|
153
|
+
is a comment","created_at":"2017-12-05T16:16:07.205Z","updated_at":"2017-12-05T16:16:07.205Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
154
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"2201960","attributes":{"message":"Here''s
|
155
|
+
a bounty!","created_at":"2017-12-05T16:16:27.757Z","updated_at":"2017-12-05T16:16:27.757Z","internal":false,"bounty_amount":"250"},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
156
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}}],"meta":{"max_updated_at":"2017-12-05T16:16:27.757Z"}}'
|
157
|
+
http_version:
|
158
|
+
recorded_at: Tue, 05 Dec 2017 16:24:30 GMT
|
159
|
+
- request:
|
160
|
+
method: get
|
161
|
+
uri: https://api.hackerone.com/v1/incremental/activities?first=3&handle=github&updated_at_after=2017-12-05T16:16:27.757Z
|
162
|
+
body:
|
163
|
+
encoding: US-ASCII
|
164
|
+
string: ''
|
165
|
+
headers:
|
166
|
+
Authorization:
|
167
|
+
- Basic NOPE
|
168
|
+
User-Agent:
|
169
|
+
- Faraday v0.13.1
|
170
|
+
Content-Type:
|
171
|
+
- application/json
|
172
|
+
Accept-Encoding:
|
173
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
174
|
+
Accept:
|
175
|
+
- "*/*"
|
176
|
+
response:
|
177
|
+
status:
|
178
|
+
code: 200
|
179
|
+
message: OK
|
180
|
+
headers:
|
181
|
+
Date:
|
182
|
+
- Tue, 05 Dec 2017 16:24:54 GMT
|
183
|
+
Content-Type:
|
184
|
+
- application/json; charset=utf-8
|
185
|
+
Transfer-Encoding:
|
186
|
+
- chunked
|
187
|
+
Connection:
|
188
|
+
- keep-alive
|
189
|
+
Set-Cookie:
|
190
|
+
- __cfduid=dc43387e7a367ab6fa7b1183b4fba44b91512491093; expires=Wed, 05-Dec-18
|
191
|
+
16:24:53 GMT; path=/; Domain=api.hackerone.com; HttpOnly; Secure
|
192
|
+
X-Request-Id:
|
193
|
+
- 863a8f3a-060e-40ef-831d-9c2ef6d995ce
|
194
|
+
Etag:
|
195
|
+
- W/"79b5a37965df910984602c8925f27ef9"
|
196
|
+
Cache-Control:
|
197
|
+
- max-age=0, private, must-revalidate
|
198
|
+
Strict-Transport-Security:
|
199
|
+
- max-age=31536000; includeSubDomains; preload
|
200
|
+
Expect-Ct:
|
201
|
+
- enforce, max-age=86400
|
202
|
+
Content-Security-Policy:
|
203
|
+
- 'default-src ''none''; base-uri ''self''; block-all-mixed-content; child-src
|
204
|
+
www.youtube-nocookie.com; connect-src ''self'' www.google-analytics.com errors.hackerone.net;
|
205
|
+
font-src ''self''; form-action ''self''; frame-ancestors ''none''; img-src
|
206
|
+
''self'' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com
|
207
|
+
profile-photos.hackerone-user-content.com hackerone-attachments.s3.amazonaws.com;
|
208
|
+
media-src ''self'' hackerone-attachments.s3.amazonaws.com; script-src ''self''
|
209
|
+
www.google-analytics.com; style-src ''self'' ''unsafe-inline''; report-uri
|
210
|
+
https://errors.hackerone.net/api/30/csp-report/?sentry_key=61c1e2f50d21487c97a071737701f598'
|
211
|
+
Referrer-Policy:
|
212
|
+
- strict-origin-when-cross-origin
|
213
|
+
X-Content-Type-Options:
|
214
|
+
- nosniff
|
215
|
+
X-Download-Options:
|
216
|
+
- noopen
|
217
|
+
X-Frame-Options:
|
218
|
+
- DENY
|
219
|
+
X-Permitted-Cross-Domain-Policies:
|
220
|
+
- none
|
221
|
+
X-Xss-Protection:
|
222
|
+
- 1; mode=block
|
223
|
+
Server:
|
224
|
+
- cloudflare-nginx
|
225
|
+
Cf-Ray:
|
226
|
+
- 3c885bb88be672f5-AMS
|
227
|
+
body:
|
228
|
+
encoding: ASCII-8BIT
|
229
|
+
string: '{"data":[],"meta":{"max_updated_at":null}}'
|
230
|
+
http_version:
|
231
|
+
recorded_at: Tue, 05 Dec 2017 16:24:53 GMT
|
232
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,266 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.hackerone.com/v1/incremental/activities?first=25&handle=github&updated_at_after
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Basic NOPE
|
12
|
+
User-Agent:
|
13
|
+
- Faraday v0.13.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
Accept:
|
19
|
+
- "*/*"
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Thu, 07 Dec 2017 11:20:42 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
Set-Cookie:
|
34
|
+
- __cfduid=d1cd9fb34dc4cf47e72804e2f7cadd6b81512645641; expires=Fri, 07-Dec-18
|
35
|
+
11:20:41 GMT; path=/; Domain=api.hackerone.com; HttpOnly; Secure
|
36
|
+
X-Request-Id:
|
37
|
+
- d0445113-cfbb-4907-8e6d-a93922e5c5c3
|
38
|
+
Etag:
|
39
|
+
- W/"dd2824639dd19b9d08e8a1c4692f556e"
|
40
|
+
Cache-Control:
|
41
|
+
- max-age=0, private, must-revalidate
|
42
|
+
Strict-Transport-Security:
|
43
|
+
- max-age=31536000; includeSubDomains; preload
|
44
|
+
Expect-Ct:
|
45
|
+
- enforce, max-age=86400
|
46
|
+
Content-Security-Policy:
|
47
|
+
- 'default-src ''none''; base-uri ''self''; block-all-mixed-content; child-src
|
48
|
+
www.youtube-nocookie.com; connect-src ''self'' www.google-analytics.com errors.hackerone.net;
|
49
|
+
font-src ''self''; form-action ''self''; frame-ancestors ''none''; img-src
|
50
|
+
''self'' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com
|
51
|
+
profile-photos.hackerone-user-content.com hackerone-attachments.s3.amazonaws.com;
|
52
|
+
media-src ''self'' hackerone-attachments.s3.amazonaws.com; script-src ''self''
|
53
|
+
www.google-analytics.com; style-src ''self'' ''unsafe-inline''; report-uri
|
54
|
+
https://errors.hackerone.net/api/30/csp-report/?sentry_key=61c1e2f50d21487c97a071737701f598'
|
55
|
+
Referrer-Policy:
|
56
|
+
- strict-origin-when-cross-origin
|
57
|
+
X-Content-Type-Options:
|
58
|
+
- nosniff
|
59
|
+
X-Download-Options:
|
60
|
+
- noopen
|
61
|
+
X-Frame-Options:
|
62
|
+
- DENY
|
63
|
+
X-Permitted-Cross-Domain-Policies:
|
64
|
+
- none
|
65
|
+
X-Xss-Protection:
|
66
|
+
- 1; mode=block
|
67
|
+
Server:
|
68
|
+
- cloudflare-nginx
|
69
|
+
Cf-Ray:
|
70
|
+
- 3c9718dc4bd50755-AMS
|
71
|
+
body:
|
72
|
+
encoding: ASCII-8BIT
|
73
|
+
string: '{"data":[{"type":"activity-bug-filed","id":"1223485","attributes":{"message":"","created_at":"2016-09-29T12:53:30.516Z","updated_at":"2016-09-29T12:53:30.516Z","internal":false},"relationships":{"actor":{"data":{"type":"user","id":"3683","attributes":{"username":"demo-hacker","name":"Demo
|
74
|
+
Hacker","disabled":false,"created_at":"2014-03-17T20:14:25.383Z","profile_picture":{"62x62":"https://profile-photos.hackerone-user-content.com/production/000/003/683/93c0f225152f8f18a396f325eca530143719a729_small.png?1423472503","82x82":"https://profile-photos.hackerone-user-content.com/production/000/003/683/d38d82a37a6ac1f2df43b0d36ad8ee8d0acd68d1_medium.png?1423472503","110x110":"https://profile-photos.hackerone-user-content.com/production/000/003/683/6793a1566a8c8ec72a179c63bbd92c1af965a162_large.png?1423472503","260x260":"https://profile-photos.hackerone-user-content.com/production/000/003/683/0201a343075ea8f7feb7aff975c6a48cc53536c7_xtralarge.png?1423472503"}}}}}},{"type":"activity-comment","id":"1223486","attributes":{"message":"As
|
75
|
+
a team manager you can [edit your program](https://hackerone.com/github/edit)
|
76
|
+
and [invite other team members](https://hackerone.com/github/team_members).\n","created_at":"2016-09-29T12:53:30.638Z","updated_at":"2016-09-29T12:53:30.638Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"4954","attributes":{"username":"demo-member","name":"Demo
|
77
|
+
Member","disabled":false,"created_at":"2014-04-14T11:45:00.949Z","profile_picture":{"62x62":"https://profile-photos.hackerone-user-content.com/production/000/004/954/76e628d12eaacde79878b890df02c065f740b1a4_small.png?1423472456","82x82":"https://profile-photos.hackerone-user-content.com/production/000/004/954/75e4cf2599f591e618646429db57d986e496ccee_medium.png?1423472456","110x110":"https://profile-photos.hackerone-user-content.com/production/000/004/954/25f5c8af70323cacb2c2ffa17d68cac2500dc410_large.png?1423472456","260x260":"https://profile-photos.hackerone-user-content.com/production/000/004/954/d903c042cdc7798ad76684563624ee7ea071aed8_xtralarge.png?1423472456"}}}}}},{"type":"activity-user-assigned-to-bug","id":"1223487","attributes":{"message":"A
|
78
|
+
new report! @kerkkerkkekr, can you take a look at this?\n\n* Need more information?
|
79
|
+
*Change state: Needs more info*\n* Ready to get started on a fix? *Change
|
80
|
+
state: Triaged*\n* Job''s done? *Close report: Resolved*\n\nNeed a hand? Just
|
81
|
+
say the word and a HackerOne engineer will materialize, as if by magic.\n","created_at":"2016-09-29T12:53:30.780Z","updated_at":"2016-09-29T12:53:30.780Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"4954","attributes":{"username":"demo-member","name":"Demo
|
82
|
+
Member","disabled":false,"created_at":"2014-04-14T11:45:00.949Z","profile_picture":{"62x62":"https://profile-photos.hackerone-user-content.com/production/000/004/954/76e628d12eaacde79878b890df02c065f740b1a4_small.png?1423472456","82x82":"https://profile-photos.hackerone-user-content.com/production/000/004/954/75e4cf2599f591e618646429db57d986e496ccee_medium.png?1423472456","110x110":"https://profile-photos.hackerone-user-content.com/production/000/004/954/25f5c8af70323cacb2c2ffa17d68cac2500dc410_large.png?1423472456","260x260":"https://profile-photos.hackerone-user-content.com/production/000/004/954/d903c042cdc7798ad76684563624ee7ea071aed8_xtralarge.png?1423472456"}}}},"assigned_user":{"data":{"id":"114514","type":"user","attributes":{"username":"kerkkerkkekr","name":"kerk
|
83
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-comment","id":"1223489","attributes":{"message":"test\n","created_at":"2016-09-29T12:55:06.095Z","updated_at":"2016-09-29T12:55:06.095Z","internal":false},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
84
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bug-not-applicable","id":"1223490","attributes":{"message":"Automated
|
85
|
+
vulnerability scanners commonly have low priority issues and/or false positives.
|
86
|
+
Before submitting the results from a scanner, please take a moment to confirm
|
87
|
+
that the reported issues are actually valid and exploitable. In this specific
|
88
|
+
case, many cookies intentionally lack the `HttpOnly` flag so that they can
|
89
|
+
be accessed from JavaScript. This only introduces a potential risk if the
|
90
|
+
cookie in question contains session data or other sensitive information.\n","created_at":"2016-09-29T12:55:17.179Z","updated_at":"2016-09-29T12:55:17.179Z","internal":false},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
91
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-comment","id":"1223491","attributes":{"message":"Sorry,
|
92
|
+
I''ll avoid these types of reports in the future.\n","created_at":"2016-09-29T12:55:17.244Z","updated_at":"2016-09-29T12:55:17.244Z","internal":false},"relationships":{"actor":{"data":{"type":"user","id":"3683","attributes":{"username":"demo-hacker","name":"Demo
|
93
|
+
Hacker","disabled":false,"created_at":"2014-03-17T20:14:25.383Z","profile_picture":{"62x62":"https://profile-photos.hackerone-user-content.com/production/000/003/683/93c0f225152f8f18a396f325eca530143719a729_small.png?1423472503","82x82":"https://profile-photos.hackerone-user-content.com/production/000/003/683/d38d82a37a6ac1f2df43b0d36ad8ee8d0acd68d1_medium.png?1423472503","110x110":"https://profile-photos.hackerone-user-content.com/production/000/003/683/6793a1566a8c8ec72a179c63bbd92c1af965a162_large.png?1423472503","260x260":"https://profile-photos.hackerone-user-content.com/production/000/003/683/0201a343075ea8f7feb7aff975c6a48cc53536c7_xtralarge.png?1423472503"}}}}}},{"type":"activity-bug-filed","id":"1223750","attributes":{"message":"","created_at":"2016-09-29T15:21:02.759Z","updated_at":"2016-09-29T15:21:02.759Z","internal":false},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
94
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-reference-id-added","id":"1532364","attributes":{"message":"","created_at":"2017-03-10T14:03:20.780Z","updated_at":"2017-03-10T14:03:20.780Z","internal":true,"reference":"TEST-4","reference_url":"https://h1test.atlassian.net/browse/TEST-4"},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
95
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-comment","id":"1540105","attributes":{"message":"The
|
96
|
+
[JIRA issue](https://h1test.atlassian.net/browse/TEST-4) associated with this
|
97
|
+
report was modified.\n\n- **Status**: changed from *Closed* to *Reopened*.\n-
|
98
|
+
**Resolution**: changed from *Done* to **.","created_at":"2017-03-14T13:42:54.857Z","updated_at":"2017-03-14T13:42:54.857Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"20889","attributes":{"username":"hackbot","name":"","disabled":false,"created_at":"2015-04-21T14:15:00.516Z","profile_picture":{"62x62":"https://profile-photos.hackerone-user-content.com/production/000/020/889/d4e1fd3399b43d7555eba2cc7b21c48fa4ffb4ae_small.png?1429625702","82x82":"https://profile-photos.hackerone-user-content.com/production/000/020/889/dd4834fa15b3684705d2af84f8f3acd23a52cd29_medium.png?1429625702","110x110":"https://profile-photos.hackerone-user-content.com/production/000/020/889/8afcf976d18ed73dc799259ac5f80ab0f81f1f22_large.png?1429625702","260x260":"https://profile-photos.hackerone-user-content.com/production/000/020/889/7df97703a6b5797e4e64373b9ee6b31a04f2e273_xtralarge.png?1429625702"}}}}}},{"type":"activity-nobody-assigned-to-bug","id":"1703337","attributes":{"message":null,"created_at":"2017-05-26T12:50:26.425Z","updated_at":"2017-05-26T12:50:26.425Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"171202","attributes":{"username":"api_v5tad85sqjf06ljgu7vjm","name":"","disabled":true,"created_at":"2017-05-26T12:45:03.089Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-nobody-assigned-to-bug","id":"1703338","attributes":{"message":null,"created_at":"2017-05-26T12:50:28.545Z","updated_at":"2017-05-26T12:50:28.545Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"171202","attributes":{"username":"api_v5tad85sqjf06ljgu7vjm","name":"","disabled":true,"created_at":"2017-05-26T12:45:03.089Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-suggested","id":"1946221","attributes":{"message":"api
|
99
|
+
test!","created_at":"2017-08-22T13:21:57.024Z","updated_at":"2017-08-22T13:21:57.024Z","internal":true,"bounty_amount":"1","bonus_amount":"0"},"relationships":{"actor":{"data":{"type":"user","id":"193855","attributes":{"username":"api_kiqgkxdhsux76a1t2a8k1","name":"","disabled":true,"created_at":"2017-08-22T13:18:29.084Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"1946223","attributes":{"message":"sandbox!","created_at":"2017-08-22T13:22:55.331Z","updated_at":"2017-08-22T13:22:55.331Z","internal":false,"bounty_amount":"50"},"relationships":{"actor":{"data":{"type":"user","id":"193855","attributes":{"username":"api_kiqgkxdhsux76a1t2a8k1","name":"","disabled":true,"created_at":"2017-08-22T13:18:29.084Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"1946450","attributes":{"message":"Thanks
|
100
|
+
for the great report!","created_at":"2017-08-22T15:03:46.193Z","updated_at":"2017-08-22T15:03:46.193Z","internal":false,"bounty_amount":"1,330","bonus_amount":"7"},"relationships":{"actor":{"data":{"type":"user","id":"193855","attributes":{"username":"api_kiqgkxdhsux76a1t2a8k1","name":"","disabled":true,"created_at":"2017-08-22T13:18:29.084Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"1946460","attributes":{"message":"This
|
101
|
+
report is great, I think we should award a high bounty.","created_at":"2017-08-22T15:06:16.585Z","updated_at":"2017-08-22T15:06:16.585Z","internal":false,"bounty_amount":"5,000","bonus_amount":"2,500"},"relationships":{"actor":{"data":{"type":"user","id":"193855","attributes":{"username":"api_kiqgkxdhsux76a1t2a8k1","name":"","disabled":true,"created_at":"2017-08-22T13:18:29.084Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-suggested","id":"1946462","attributes":{"message":"This
|
102
|
+
report is great, I think we should award a high bounty.","created_at":"2017-08-22T15:06:29.310Z","updated_at":"2017-08-22T15:06:29.310Z","internal":true,"bounty_amount":"5,000","bonus_amount":"2,500"},"relationships":{"actor":{"data":{"type":"user","id":"193855","attributes":{"username":"api_kiqgkxdhsux76a1t2a8k1","name":"","disabled":true,"created_at":"2017-08-22T13:18:29.084Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-swag-awarded","id":"1946479","attributes":{"message":"Enjoy
|
103
|
+
this cool swag!","created_at":"2017-08-22T15:09:44.191Z","updated_at":"2017-08-22T15:09:44.191Z","internal":false},"relationships":{"actor":{"data":{"type":"program","id":"15567","attributes":{"handle":"github","created_at":"2016-09-29T12:52:30.755Z","updated_at":"2017-12-07T03:34:15.104Z"}}},"swag":{"data":{"id":"2057","type":"swag","attributes":{"sent":false,"created_at":"2017-08-22T15:09:44.176Z"}}}}},{"type":"activity-bounty-suggested","id":"1946481","attributes":{"message":"This
|
104
|
+
report is great, I think we should award a high bounty.","created_at":"2017-08-22T15:10:02.699Z","updated_at":"2017-08-22T15:10:02.699Z","internal":true,"bounty_amount":"5,000","bonus_amount":"2,500"},"relationships":{"actor":{"data":{"type":"user","id":"193855","attributes":{"username":"api_kiqgkxdhsux76a1t2a8k1","name":"","disabled":true,"created_at":"2017-08-22T13:18:29.084Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"1959177","attributes":{"message":"Thanks
|
105
|
+
for the great report. Here''s your bounty!","created_at":"2017-08-28T09:15:14.581Z","updated_at":"2017-08-28T09:15:14.581Z","internal":false,"bounty_amount":"500","bonus_amount":"250"},"relationships":{"actor":{"data":{"type":"user","id":"195420","attributes":{"username":"api_i9w8kxzbitav5iot5tecd","name":"","disabled":true,"created_at":"2017-08-28T09:13:03.805Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"1959178","attributes":{"message":"Thanks
|
106
|
+
for the great report. Here''s your bounty!","created_at":"2017-08-28T09:15:44.797Z","updated_at":"2017-08-28T09:15:44.797Z","internal":false,"bounty_amount":"500","bonus_amount":"250"},"relationships":{"actor":{"data":{"type":"user","id":"195420","attributes":{"username":"api_i9w8kxzbitav5iot5tecd","name":"","disabled":true,"created_at":"2017-08-28T09:13:03.805Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-suggested","id":"1959180","attributes":{"message":"This
|
107
|
+
report is great, I think we should award a high bounty","created_at":"2017-08-28T09:21:00.321Z","updated_at":"2017-08-28T09:21:00.321Z","internal":true,"bounty_amount":"5,000","bonus_amount":"2,500"},"relationships":{"actor":{"data":{"type":"user","id":"195420","attributes":{"username":"api_i9w8kxzbitav5iot5tecd","name":"","disabled":true,"created_at":"2017-08-28T09:13:03.805Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-swag-awarded","id":"1959183","attributes":{"message":"This
|
108
|
+
is the 5th report we received from you. We''d like to send you a shirt and
|
109
|
+
some stickers as a small thank-you!","created_at":"2017-08-28T09:22:30.759Z","updated_at":"2017-08-28T09:22:30.759Z","internal":false},"relationships":{"actor":{"data":{"type":"program","id":"15567","attributes":{"handle":"github","created_at":"2016-09-29T12:52:30.755Z","updated_at":"2017-12-07T03:34:15.104Z"}}},"swag":{"data":{"id":"2066","type":"swag","attributes":{"sent":false,"created_at":"2017-08-28T09:22:30.752Z"}}}}},{"type":"activity-comment","id":"2013988","attributes":{"message":"attachment
|
110
|
+
test {F223036}","created_at":"2017-09-22T11:16:01.234Z","updated_at":"2017-09-22T11:16:01.234Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
111
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}},"attachments":{"data":[{"id":"223036","type":"attachment","attributes":{"expiring_url":"https://hackerone-attachments.s3.amazonaws.com/production/000/223/036/1de5763ba46272c006e580ed77a54849f00897da/no_fun_allowed.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=ASIAIENMAGUODLNT7Y7A%2F20171207%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20171207T112042Z\u0026X-Amz-Expires=3600\u0026X-Amz-Security-Token=FQoDYXdzEIz%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaDCcD%2BtaI50vSjaM%2B%2FiK3A%2FIQNveLUurXbSCni%2FS0YeW7tgrxeOcF%2FlysL95bxqdhCcRN9l2vXLKassGCpKiAAsPjeoM8FiTVFS5Rm%2FBopuzfQ2aKhRkD0lWne0yHq46RSlvyTpR4Gz3VE%2BPWYIvb2pDo1rv79VGd2GJT2xCKhJHpCmG7OckSsOvbT9tT42zWuzR5qYhQIuQHALH8S1EMDhOgIvLlu2xAfnOPfgxeixt68o0%2BkBb68zfiTT496OPgwxEEDZ%2B5dxHAbaUZs%2F4vUTPdUcmQ%2FHWdG5TeXEsylFylqsEKMKYLVKZh4N60Zn1Nf17MELrRiBYFxq8JvdT6gs4mYpATas9oRlAnXz8Mo02vexBhuV0xeBFMk%2FhUwNNaVyGJLEuyAw1EEtwo82ychlui3wwG5X0%2BFW7pc57mrqVmOGK39mL0H2fK01mhy%2BEWG2L4J5TkZ0B13I6DjaVwVMb0jnwjHTuhgDsS7Kyycxoktz3fMqPUofyIQmkz2FkfbtN5W1tjVFtnlpJAPF87nYRHW2qWoVcSjps9zsuwSXzOZlG7hV5UKw6g3Do9l78Ly36CX6z54KbA%2FylADltWOgao9wesoNAojq2k0QU%3D\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=f45c2af07ffd691285d2eca214172446b0840583637dc5fda48cad1fba5869ee","created_at":"2017-09-22T11:15:45.677Z","file_name":"no_fun_allowed.jpg","content_type":"image/jpeg","file_size":86501}}]}}},{"type":"activity-user-assigned-to-bug","id":"2110465","attributes":{"message":null,"created_at":"2017-10-28T18:15:04.285Z","updated_at":"2017-10-28T18:15:04.285Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"212530","attributes":{"username":"api_givg6fpvnisu7pcxu4snoc9fxc","name":"","disabled":true,"created_at":"2017-10-28T17:46:26.037Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}},"assigned_user":{"data":{"id":"114514","type":"user","attributes":{"username":"kerkkerkkekr","name":"kerk
|
112
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-group-assigned-to-bug","id":"2198958","attributes":{"message":"","created_at":"2017-12-04T15:38:00.017Z","updated_at":"2017-12-04T15:38:00.017Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
113
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}},"group":{"data":{"id":"16481","type":"group","attributes":{"name":"Standard","created_at":"2016-09-29T12:52:32.062Z","permissions":["report_management","reward_management"]}}}}}],"meta":{"max_updated_at":"2017-12-04T15:38:00.017Z"}}'
|
114
|
+
http_version:
|
115
|
+
recorded_at: Thu, 07 Dec 2017 11:20:42 GMT
|
116
|
+
- request:
|
117
|
+
method: get
|
118
|
+
uri: https://api.hackerone.com/v1/incremental/activities?first=25&handle=github&updated_at_after=2017-12-04T15:38:00.017Z
|
119
|
+
body:
|
120
|
+
encoding: US-ASCII
|
121
|
+
string: ''
|
122
|
+
headers:
|
123
|
+
Authorization:
|
124
|
+
- Basic NOPE
|
125
|
+
User-Agent:
|
126
|
+
- Faraday v0.13.1
|
127
|
+
Content-Type:
|
128
|
+
- application/json
|
129
|
+
Accept-Encoding:
|
130
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
131
|
+
Accept:
|
132
|
+
- "*/*"
|
133
|
+
response:
|
134
|
+
status:
|
135
|
+
code: 200
|
136
|
+
message: OK
|
137
|
+
headers:
|
138
|
+
Date:
|
139
|
+
- Thu, 07 Dec 2017 11:20:43 GMT
|
140
|
+
Content-Type:
|
141
|
+
- application/json; charset=utf-8
|
142
|
+
Transfer-Encoding:
|
143
|
+
- chunked
|
144
|
+
Connection:
|
145
|
+
- keep-alive
|
146
|
+
Set-Cookie:
|
147
|
+
- __cfduid=d7f2e9e687c54598f2e5daa3699e6a3181512645642; expires=Fri, 07-Dec-18
|
148
|
+
11:20:42 GMT; path=/; Domain=api.hackerone.com; HttpOnly; Secure
|
149
|
+
X-Request-Id:
|
150
|
+
- bf815a7b-35a6-438d-8198-618dd9f163c3
|
151
|
+
Etag:
|
152
|
+
- W/"f057e5758c4dd46ef847c8a49303a160"
|
153
|
+
Cache-Control:
|
154
|
+
- max-age=0, private, must-revalidate
|
155
|
+
Strict-Transport-Security:
|
156
|
+
- max-age=31536000; includeSubDomains; preload
|
157
|
+
Expect-Ct:
|
158
|
+
- enforce, max-age=86400
|
159
|
+
Content-Security-Policy:
|
160
|
+
- 'default-src ''none''; base-uri ''self''; block-all-mixed-content; child-src
|
161
|
+
www.youtube-nocookie.com; connect-src ''self'' www.google-analytics.com errors.hackerone.net;
|
162
|
+
font-src ''self''; form-action ''self''; frame-ancestors ''none''; img-src
|
163
|
+
''self'' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com
|
164
|
+
profile-photos.hackerone-user-content.com hackerone-attachments.s3.amazonaws.com;
|
165
|
+
media-src ''self'' hackerone-attachments.s3.amazonaws.com; script-src ''self''
|
166
|
+
www.google-analytics.com; style-src ''self'' ''unsafe-inline''; report-uri
|
167
|
+
https://errors.hackerone.net/api/30/csp-report/?sentry_key=61c1e2f50d21487c97a071737701f598'
|
168
|
+
Referrer-Policy:
|
169
|
+
- strict-origin-when-cross-origin
|
170
|
+
X-Content-Type-Options:
|
171
|
+
- nosniff
|
172
|
+
X-Download-Options:
|
173
|
+
- noopen
|
174
|
+
X-Frame-Options:
|
175
|
+
- DENY
|
176
|
+
X-Permitted-Cross-Domain-Policies:
|
177
|
+
- none
|
178
|
+
X-Xss-Protection:
|
179
|
+
- 1; mode=block
|
180
|
+
Server:
|
181
|
+
- cloudflare-nginx
|
182
|
+
Cf-Ray:
|
183
|
+
- 3c9718e47b549d0e-AMS
|
184
|
+
body:
|
185
|
+
encoding: ASCII-8BIT
|
186
|
+
string: '{"data":[{"type":"activity-comment","id":"2201959","attributes":{"message":"this
|
187
|
+
is a comment","created_at":"2017-12-05T16:16:07.205Z","updated_at":"2017-12-05T16:16:07.205Z","internal":true},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
188
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}},{"type":"activity-bounty-awarded","id":"2201960","attributes":{"message":"Here''s
|
189
|
+
a bounty!","created_at":"2017-12-05T16:16:27.757Z","updated_at":"2017-12-05T16:16:27.757Z","internal":false,"bounty_amount":"250"},"relationships":{"actor":{"data":{"type":"user","id":"114514","attributes":{"username":"kerkkerkkekr","name":"kerk
|
190
|
+
kerk","disabled":false,"created_at":"2016-09-29T12:52:29.551Z","profile_picture":{"62x62":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","82x82":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","110x110":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png","260x260":"/assets/avatars/default-71a302d706457f3d3a31eb30fa3e73e6cf0b1d677b8fa218eaeaffd67ae97918.png"}}}}}}],"meta":{"max_updated_at":"2017-12-05T16:16:27.757Z"}}'
|
191
|
+
http_version:
|
192
|
+
recorded_at: Thu, 07 Dec 2017 11:20:43 GMT
|
193
|
+
- request:
|
194
|
+
method: get
|
195
|
+
uri: https://api.hackerone.com/v1/incremental/activities?first=25&handle=github&updated_at_after=2017-12-05T16:16:27.757Z
|
196
|
+
body:
|
197
|
+
encoding: US-ASCII
|
198
|
+
string: ''
|
199
|
+
headers:
|
200
|
+
Authorization:
|
201
|
+
- Basic NOPE
|
202
|
+
User-Agent:
|
203
|
+
- Faraday v0.13.1
|
204
|
+
Content-Type:
|
205
|
+
- application/json
|
206
|
+
Accept-Encoding:
|
207
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
208
|
+
Accept:
|
209
|
+
- "*/*"
|
210
|
+
response:
|
211
|
+
status:
|
212
|
+
code: 200
|
213
|
+
message: OK
|
214
|
+
headers:
|
215
|
+
Date:
|
216
|
+
- Thu, 07 Dec 2017 11:20:44 GMT
|
217
|
+
Content-Type:
|
218
|
+
- application/json; charset=utf-8
|
219
|
+
Transfer-Encoding:
|
220
|
+
- chunked
|
221
|
+
Connection:
|
222
|
+
- keep-alive
|
223
|
+
Set-Cookie:
|
224
|
+
- __cfduid=d59112f789e4ddbe951f904df9b223f041512645643; expires=Fri, 07-Dec-18
|
225
|
+
11:20:43 GMT; path=/; Domain=api.hackerone.com; HttpOnly; Secure
|
226
|
+
X-Request-Id:
|
227
|
+
- '09aee1e6-00a2-4be0-8c7a-eac354c05341'
|
228
|
+
Etag:
|
229
|
+
- W/"79b5a37965df910984602c8925f27ef9"
|
230
|
+
Cache-Control:
|
231
|
+
- max-age=0, private, must-revalidate
|
232
|
+
Strict-Transport-Security:
|
233
|
+
- max-age=31536000; includeSubDomains; preload
|
234
|
+
Expect-Ct:
|
235
|
+
- enforce, max-age=86400
|
236
|
+
Content-Security-Policy:
|
237
|
+
- 'default-src ''none''; base-uri ''self''; block-all-mixed-content; child-src
|
238
|
+
www.youtube-nocookie.com; connect-src ''self'' www.google-analytics.com errors.hackerone.net;
|
239
|
+
font-src ''self''; form-action ''self''; frame-ancestors ''none''; img-src
|
240
|
+
''self'' data: cover-photos.hackerone-user-content.com hackathon-photos.hackerone-user-content.com
|
241
|
+
profile-photos.hackerone-user-content.com hackerone-attachments.s3.amazonaws.com;
|
242
|
+
media-src ''self'' hackerone-attachments.s3.amazonaws.com; script-src ''self''
|
243
|
+
www.google-analytics.com; style-src ''self'' ''unsafe-inline''; report-uri
|
244
|
+
https://errors.hackerone.net/api/30/csp-report/?sentry_key=61c1e2f50d21487c97a071737701f598'
|
245
|
+
Referrer-Policy:
|
246
|
+
- strict-origin-when-cross-origin
|
247
|
+
X-Content-Type-Options:
|
248
|
+
- nosniff
|
249
|
+
X-Download-Options:
|
250
|
+
- noopen
|
251
|
+
X-Frame-Options:
|
252
|
+
- DENY
|
253
|
+
X-Permitted-Cross-Domain-Policies:
|
254
|
+
- none
|
255
|
+
X-Xss-Protection:
|
256
|
+
- 1; mode=block
|
257
|
+
Server:
|
258
|
+
- cloudflare-nginx
|
259
|
+
Cf-Ray:
|
260
|
+
- 3c9718e9ac932bc4-AMS
|
261
|
+
body:
|
262
|
+
encoding: ASCII-8BIT
|
263
|
+
string: '{"data":[],"meta":{"max_updated_at":null}}'
|
264
|
+
http_version:
|
265
|
+
recorded_at: Thu, 07 Dec 2017 11:20:44 GMT
|
266
|
+
recorded_with: VCR 3.0.3
|
data/lib/hackerone/client.rb
CHANGED
@@ -12,6 +12,7 @@ require_relative "client/group"
|
|
12
12
|
require_relative "client/structured_scope"
|
13
13
|
require_relative "client/swag"
|
14
14
|
require_relative "client/bounty"
|
15
|
+
require_relative "client/incremental/activities"
|
15
16
|
|
16
17
|
module HackerOne
|
17
18
|
module Client
|
@@ -119,14 +120,14 @@ module HackerOne
|
|
119
120
|
self.class.parse_response(response)
|
120
121
|
end
|
121
122
|
|
122
|
-
def self.parse_response(response)
|
123
|
+
def self.parse_response(response, extract_data: true)
|
123
124
|
if response.status.to_s.start_with?("4")
|
124
125
|
raise ArgumentError, "API called failed, probably your fault: #{response.body}"
|
125
126
|
elsif response.status.to_s.start_with?("5")
|
126
127
|
raise RuntimeError, "API called failed, probably their fault: #{response.body}"
|
127
128
|
elsif response.success?
|
128
129
|
response_body_json = JSON.parse(response.body, :symbolize_names => true)
|
129
|
-
if response_body_json.key?(:data)
|
130
|
+
if extract_data && response_body_json.key?(:data)
|
130
131
|
response_body_json[:data]
|
131
132
|
else
|
132
133
|
response_body_json
|
@@ -46,6 +46,12 @@ module HackerOne
|
|
46
46
|
delegate :assigned_user, to: :relationships
|
47
47
|
end
|
48
48
|
|
49
|
+
class GroupAssignedToBug < Activity
|
50
|
+
def group
|
51
|
+
HackerOne::Client::Group.new(relationships.group[:data])
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
49
55
|
class BugTriaged < Activity
|
50
56
|
end
|
51
57
|
|
@@ -65,6 +71,7 @@ module HackerOne
|
|
65
71
|
'activity-bounty-awarded' => BountyAwarded,
|
66
72
|
'activity-swag-awarded' => SwagAwarded,
|
67
73
|
'activity-user-assigned-to-bug' => UserAssignedToBug,
|
74
|
+
'activity-group-assigned-to-bug' => GroupAssignedToBug,
|
68
75
|
'activity-bug-triaged' => BugTriaged,
|
69
76
|
'activity-reference-id-added' => ReferenceIdAdded,
|
70
77
|
'activity-comment' => CommentAdded,
|
@@ -0,0 +1,67 @@
|
|
1
|
+
module HackerOne
|
2
|
+
module Client
|
3
|
+
module Incremental
|
4
|
+
class Activities
|
5
|
+
include ResourceHelper
|
6
|
+
|
7
|
+
attr_reader :program, :updated_at_after, :page_size
|
8
|
+
|
9
|
+
def initialize(program, updated_at_after: nil, page_size: 25)
|
10
|
+
@program = program
|
11
|
+
@updated_at_after = updated_at_after
|
12
|
+
@page_size = page_size
|
13
|
+
end
|
14
|
+
|
15
|
+
def traverse
|
16
|
+
loop do
|
17
|
+
activities.each do |activity|
|
18
|
+
yield activity
|
19
|
+
end
|
20
|
+
|
21
|
+
break if next_page.nil?
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def activities
|
26
|
+
@activities ||= current_page[:data].map do |activity_json|
|
27
|
+
HackerOne::Client::Activities.build activity_json
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def next_page
|
32
|
+
return nil unless next_cursor.present?
|
33
|
+
|
34
|
+
# Set cursor to next page
|
35
|
+
@updated_at_after = next_cursor
|
36
|
+
|
37
|
+
# Remove memoization
|
38
|
+
@current_page = nil
|
39
|
+
@activities = nil
|
40
|
+
|
41
|
+
# Fetch new page
|
42
|
+
current_page
|
43
|
+
|
44
|
+
activities
|
45
|
+
end
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
def current_page
|
50
|
+
@current_page ||= make_get_request(
|
51
|
+
'incremental/activities',
|
52
|
+
extract_data: false,
|
53
|
+
params: {
|
54
|
+
handle: program.handle,
|
55
|
+
first: page_size,
|
56
|
+
updated_at_after: updated_at_after
|
57
|
+
}
|
58
|
+
)
|
59
|
+
end
|
60
|
+
|
61
|
+
def next_cursor
|
62
|
+
current_page[:meta][:max_updated_at]
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -21,6 +21,14 @@ module HackerOne
|
|
21
21
|
@program[:id]
|
22
22
|
end
|
23
23
|
|
24
|
+
def incremental_activities(updated_at_after: nil, page_size: 25)
|
25
|
+
HackerOne::Client::Incremental::Activities.new(
|
26
|
+
self,
|
27
|
+
updated_at_after: updated_at_after,
|
28
|
+
page_size: page_size
|
29
|
+
)
|
30
|
+
end
|
31
|
+
|
24
32
|
def attributes
|
25
33
|
OpenStruct.new(@program[:attributes])
|
26
34
|
end
|
@@ -5,28 +5,31 @@ module HackerOne
|
|
5
5
|
base.extend(self)
|
6
6
|
end
|
7
7
|
|
8
|
-
def parse_response(response)
|
9
|
-
HackerOne::Client::Api.parse_response(
|
8
|
+
def parse_response(response, extract_data: true)
|
9
|
+
HackerOne::Client::Api.parse_response(
|
10
|
+
response,
|
11
|
+
extract_data: extract_data
|
12
|
+
)
|
10
13
|
end
|
11
14
|
|
12
|
-
def make_post_request(url, request_body:)
|
15
|
+
def make_post_request(url, request_body:, extract_data: true)
|
13
16
|
response = HackerOne::Client::Api.hackerone_api_connection.post do |req|
|
14
17
|
req.headers['Content-Type'] = 'application/json'
|
15
18
|
req.url url
|
16
19
|
req.body = { data: request_body }.to_json
|
17
20
|
end
|
18
21
|
|
19
|
-
parse_response(response)
|
22
|
+
parse_response(response, extract_data: extract_data)
|
20
23
|
end
|
21
24
|
|
22
|
-
def make_get_request(url, params: {})
|
25
|
+
def make_get_request(url, params: {}, extract_data: true)
|
23
26
|
response = HackerOne::Client::Api.hackerone_api_connection.get do |req|
|
24
27
|
req.headers['Content-Type'] = 'application/json'
|
25
28
|
req.url url
|
26
29
|
req.params = params
|
27
30
|
end
|
28
31
|
|
29
|
-
parse_response(response)
|
32
|
+
parse_response(response, extract_data: extract_data)
|
30
33
|
end
|
31
34
|
|
32
35
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hackerone-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Matatall
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -151,6 +151,8 @@ files:
|
|
151
151
|
- fixtures/vcr_cassettes/server_error_when_assigning_report_to_user.yml
|
152
152
|
- fixtures/vcr_cassettes/stage_change.yml
|
153
153
|
- fixtures/vcr_cassettes/suggest_a_bounty.yml
|
154
|
+
- fixtures/vcr_cassettes/traverse_through_3_activities.yml
|
155
|
+
- fixtures/vcr_cassettes/traverse_through_all_activities.yml
|
154
156
|
- fixtures/vcr_cassettes/triage_and_hook_assign_report_to_user.yml
|
155
157
|
- fixtures/vcr_cassettes/user_find_fransrosen.yml
|
156
158
|
- hackerone-client.gemspec
|
@@ -158,6 +160,7 @@ files:
|
|
158
160
|
- lib/hackerone/client/activity.rb
|
159
161
|
- lib/hackerone/client/bounty.rb
|
160
162
|
- lib/hackerone/client/group.rb
|
163
|
+
- lib/hackerone/client/incremental/activities.rb
|
161
164
|
- lib/hackerone/client/member.rb
|
162
165
|
- lib/hackerone/client/program.rb
|
163
166
|
- lib/hackerone/client/report.rb
|
@@ -188,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
191
|
version: '0'
|
189
192
|
requirements: []
|
190
193
|
rubyforge_project:
|
191
|
-
rubygems_version: 2.
|
194
|
+
rubygems_version: 2.2.0
|
192
195
|
signing_key:
|
193
196
|
specification_version: 4
|
194
197
|
summary: A limited client for the HackerOne API
|