Skip to content

Commit ffb7613

Browse files
committed
Update Emissary and nodejs version
Update Docerfile nodejs version from 14 to 16. Add new Zaproxy report generate endpoint. Update PT report styling for Zap changed report content.
1 parent b7ec1b3 commit ffb7613

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# the Business Source License, use of this software will be governed
88
# by the Apache License, Version 2.0
99

10-
FROM node:14-alpine
10+
FROM node:16-alpine
1111

1212
ARG LOCAL_USER_ID
1313
ARG LOCAL_GROUP_ID

src/emissaries/zAp.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ internals.zApApiRoutes = {
114114
newContext: async (params) => internals.zApApi('JSON/context/action/newContext/', { searchParams: new URLSearchParams(params) })
115115
},
116116
core: {
117-
htmlreport: async (params) => internals.zApApi('OTHER/core/other/htmlreport/', { responseType: 'text' }),
118-
jsonreport: async (params) => internals.zApApi('OTHER/core/other/jsonreport/' ),
119-
mdreport: async (params) => internals.zApApi('OTHER/core/other/mdreport/', { responseType: 'text' }),
117+
htmlreport: async (params) => internals.zApApi('OTHER/core/other/htmlreport/', { responseType: 'text', searchParams: new URLSearchParams(params) }),
118+
jsonreport: async (params) => internals.zApApi('OTHER/core/other/jsonreport/', { searchParams: new URLSearchParams(params) }),
119+
mdreport: async (params) => internals.zApApi('OTHER/core/other/mdreport/', { responseType: 'text', searchParams: new URLSearchParams(params) }),
120120
viewNumberOfAlerts: async (params) => internals.zApApi('JSON/core/view/numberOfAlerts/', { searchParams: new URLSearchParams(params) }),
121121
viewUrls: async (params) => internals.zApApi('JSON/core/view/urls/', { searchParams: new URLSearchParams(params) })
122122
},
@@ -142,6 +142,9 @@ internals.zApApiRoutes = {
142142
importUrl: async (params) => internals.zApApi('JSON/openapi/action/importUrl/', { searchParams: new URLSearchParams(params) }),
143143
importFile: async (params) => internals.zApApi('JSON/openapi/action/importFile/', { searchParams: new URLSearchParams(params) })
144144
},
145+
reports: {
146+
generate: async (params) => internals.zApApi('JSON/reports/action/generate/', { searchParams: new URLSearchParams(params) })
147+
},
145148
script: {
146149
enable: async (params) => internals.zApApi('JSON/script/action/enable/', { searchParams: new URLSearchParams(params) }),
147150
load: async (params) => internals.zApApi('JSON/script/action/load/', { searchParams: new URLSearchParams(params) })

0 commit comments

Comments
 (0)