Skip to content

Fix/reduce max scan duration#2383

Merged
sydseter merged 14 commits intoOWASP:masterfrom
ayman-art:fix/reduce-max-scan-duration
Feb 26, 2026
Merged

Fix/reduce max scan duration#2383
sydseter merged 14 commits intoOWASP:masterfrom
ayman-art:fix/reduce-max-scan-duration

Conversation

@ayman-art
Copy link
Contributor

Description

Fine-tuned ZAP scan configuration to reduce report phase duration while maintaining active scan coverage.

Problem

The Ajax Spider phase had no duration limit, which caused the report generation phase to exceed the GitHub Actions 6-hour limit.

Changes

.github/workflows/zap-nightly-scan.yml

  • Added ajaxSpider.maxDuration=10 to cap the spider phase at 10 minutes
  • scanner.maxScanDurationInMins=180 remains unchanged

How it was tested

Multiple spider and scan duration combinations were tested to find the optimal fit within GitHub Actions time limits. The two best candidates were ajaxSpider.maxDuration=10 with scanner.maxScanDurationInMins=180 (~3h 21m), and ajaxSpider.maxDuration=20 with scanner.maxScanDurationInMins=120 (~3h). The 10/180 configuration was chosen as it dedicates more time to active scanning.

@sydseter sydseter merged commit bfd823b into OWASP:master Feb 26, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Limit the zap nightly security scan

2 participants