Skip to content

fix: DAST report artifact filenames don't match ZAP output #1098

@Aureliolo

Description

@Aureliolo

Summary

The DAST workflow's upload-artifact step finds no files because ZAP writes reports with different filenames than what -J/-r flags produce.

From the run log:

Failed to locate the json report generated by ZAP Scan!
err: ENOENT: no such file or directory, open '.../report_json.json'

The -J report.json flag likely produces report_json.json (or similar convention), not report.json. Same for -r report.html.

Fix

Check ZAP's actual output filenames (run locally or inspect a workflow run's workspace) and update either the -J/-r arguments or the upload-artifact path glob to match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:smallLess than 1 day of worktype:fixBug fixes and correctionsv0.6Minor version v0.6

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions