Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions .github/workflows/conf/af-check-errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,25 @@ jobs:
inline: |
const ArrayList = Java.type("java.util.ArrayList")
const Collections = Java.type("java.util.Collections")
const Constant = Java.type("org.parosproxy.paros.Constant")
const DelegatorPrintStream = Java.extend(Java.type("org.zaproxy.zap.ZAP$DelegatorPrintStream"))
const ScriptVars = Java.type("org.zaproxy.zap.extension.script.ScriptVars")
const System = Java.type("java.lang.System")

const errors = Collections.synchronizedList(new ArrayList())
ScriptVars.setGlobalCustomVar("errors", errors)

if (Constant.isDailyBuild() || Constant.isDevBuild()) {
const DelegatorPrintStream = Java.extend(Java.type("org.zaproxy.zap.ZAP$DelegatorPrintStream"))
const previousSysErr = System.err
const ps = new DelegatorPrintStream(previousSysErr) {
println: function(x) {
previousSysErr.println(x)

const previousSysErr = System.err
const ps = new DelegatorPrintStream(previousSysErr) {
println: function(x) {
previousSysErr.println(x)

// Strings are split as scripts are shown in the log file
if (x && (x.startsWith("SLF" + "4J") || x.startsWith("log" + "4j:"))) {
errors.add(x)
}
// Strings are split as scripts are shown in the log file
if (x && (x.startsWith("SLF" + "4J") || x.startsWith("log" + "4j:"))) {
errors.add(x)
}
}
System.setErr(ps)
}
System.setErr(ps)
- type: script
parameters:
action: "run"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-live-docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Release Live Docker
on:
repository_dispatch:
types: 'release-nightly-docker'
workflow_dispatch:
schedule:
# Every day at the start of the day
Expand Down
Loading