Skip to content

Commit 60a9f7c

Browse files
committed
Update AF templates and help
Signed-off-by: ricekot <[email protected]>
1 parent fd0500c commit 60a9f7c

File tree

13 files changed

+67
-6
lines changed

13 files changed

+67
-6
lines changed

addOns/alertFilters/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ All notable changes to this add-on will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## Unreleased
7-
7+
### Changed
8+
- Update the automation framework template and help to include missing fields (`ruleName` and `methods`).
89

910
## [25] - 2025-11-04
1011
### Changed

addOns/alertFilters/src/main/javahelp/org/zaproxy/zap/extension/alertFilters/resources/help/contents/automation.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ <H2>Job: alertFilter</H2>
1919
parameters:
2020
deleteGlobalAlerts: true # Boolean, if true then will delete all existing global alerts, default false
2121
alertFilters: # A list of alertFilters to be applied
22-
- ruleId: # Int/String: Mandatory, the scan rule ID or the alert reference
22+
- ruleId: # Int: Mandatory, the scan rule ID or the alert reference
23+
ruleName: # String: Optional, the name of the rule
2324
newRisk: # String: Mandatory new risk level, one of 'False Positive', 'Info', 'Low', 'Medium', 'High'
2425
context: # String: Optional context name, if empty then a global alert filter will be created
2526
url: # String: Optional string to match against the alert, supports environment vars
@@ -30,6 +31,7 @@ <H2>Job: alertFilter</H2>
3031
attackRegex: # Boolean: Optional, if true then the attack is a regex
3132
evidence: # String: Optional string to match against the alert evidence field
3233
evidenceRegex: # Boolean: Optional, if true then the evidence is a regex
34+
methods: # List: Optional, the HTTP methods
3335
</pre>
3436

3537
</BODY>

addOns/alertFilters/src/main/resources/org/zaproxy/zap/extension/alertFilters/resources/alertFilter-max.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
deleteGlobalAlerts: true # Boolean, if true then will delete all existing global alerts, default false
44
alertFilters: # A list of alertFilters to be applied
55
- ruleId: # Int: Mandatory, the scan rule ID or the alert reference
6+
ruleName: # String: Optional, the name of the rule
67
newRisk: # String: Mandatory new risk level, one of 'False Positive', 'Info', 'Low', 'Medium', 'High'
78
context: # String: Optional context name, if empty then a global alert filter will be created
89
url: # String: Optional string to match against the alert, supports environment vars

addOns/client/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
## Unreleased
77
### Changed
88
- Updated Chrome and Firefox extensions to v0.1.7.
9+
- Update the automation framework template to include missing field (`scopeCheck`).
910

1011
## [0.18.0] - 2025-11-04
1112
### Added

addOns/client/src/main/resources/org/zaproxy/addon/client/resources/spiderClient-max.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
browserId: # String: Browser ID to use, default: firefox-headless
1111
initialLoadTime: # Int: The time in seconds to wait after the initial URL is loaded, default: 5
1212
pageLoadTime: # Int: The time in seconds to wait after a new URL is loaded, default: 1
13-
shutdownTime: # Int: The time in seconds to wait after no activity before shutting down, default: 5
13+
shutdownTime: # Int: The time in seconds to wait after no activity before shutting down, default: 5
14+
scopeCheck: # String: The scope check, either Flexible or Strict, default: Flexible

addOns/reports/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ All notable changes to this add-on will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## Unreleased
7-
7+
### Changed
8+
- Update the automation framework template and help to include missing `outputSummary` job fields.
89

910
## [0.42.0] - 2025-11-07
1011
### Changed

addOns/reports/src/main/javahelp/org/zaproxy/addon/reports/resources/help/contents/automation.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,19 @@ <H2>Job: report</H2>
3939
the strings in the sites list is included. The sites list also supports
4040
variables.
4141

42+
<H2>Job: outputSummary</H2>
43+
The outputSummary job allows you to generate a summary of the alerts
44+
found.
45+
<pre>
46+
- type: outputSummary # Print summary to stdout, primarily to mimic the behaviour of the packaged scans
47+
parameters:
48+
format: None # String: The format of the output, one of None, Short, Long, default: None
49+
summaryFile: # String: The full path of a file into which will be written a JSON summary of the scan, default empty
50+
rules: # A list of rules for which the actions are to be overriden
51+
- id: # Int: The rule id as per https://www.zaproxy.org/docs/alerts/
52+
action: # String: The action to take for this rule, one of IGNORE, INFO, FAIL, default: WARN
53+
customMessage: # String: A custom message which will be displayed with this rule
54+
</pre>
55+
4256
</BODY>
4357
</HTML>
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
- type: outputSummary # Print summary to stdout, primarily to mimic the behaviour of the packaged scans
22
parameters:
33
format: None # String: The format of the output, one of None, Short, Long, default: None
4-
summaryFile: # String: The full path of a file into which will be written a JSON summary of the scan, default empty
4+
summaryFile: # String: The full path of a file into which will be written a JSON summary of the scan, default empty
5+
rules: # A list of rules for which the actions are to be overridden
6+
- id: # Int: The rule id as per https://www.zaproxy.org/docs/alerts/
7+
action: # String: The action to take for this rule, one of IGNORE, INFO, FAIL, default: WARN
8+
customMessage: # String: A custom message which will be displayed with this rule

addOns/scripts/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
99

1010
### Changed
1111
- Update dependency.
12+
- Update the automation framework template to include missing field (`inline`).
1213

1314
## [45.15.0] - 2025-11-04
1415
### Added

addOns/scripts/src/main/javahelp/org/zaproxy/zap/extension/scripts/resources/help/contents/automation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <H2>YAML definition</H2>
8484
engine: # String: The script engine to use - can be used to override the default engine for the file extension
8585
name: # String: The name of the script, defaults to the file name
8686
source: # String: The full or relative file path, must be readable
87-
inline: # String: The full script (may be multi-line) - supply this or 'file' not both
87+
inline: # String: The full script (may be multi-line) - supply this or 'source' not both
8888
target: # String: The URL to be invoked for "targeted" script type
8989
</pre>
9090

0 commit comments

Comments
 (0)