Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xml placeholder file not created as part of execution causing -x flag #104

Closed
DPleckauskas opened this issue Jul 6, 2023 · 1 comment · Fixed by #124
Closed

xml placeholder file not created as part of execution causing -x flag #104

DPleckauskas opened this issue Jul 6, 2023 · 1 comment · Fixed by #124

Comments

@DPleckauskas
Copy link

The -x flag does not seem to work when used as is.

Here is the basic config I'm using:

- name: OWASP ZAP
         uses: zaproxy/action-baseline@v0.7.0
         with:
           target: "http://localhost:3000"
           fail_action: false
           cmd_options: "-x report_xml.xml"

Here is the error:

Automation plan failures:
	Job report failed to generate report: /zap/wrk/report_xml.xml

Workaround:
Noticed that .json, .html, and .md files are automatically created prior to the scan.

- name: Create XML placeholder file
         run: |
          touch report_xml.xml
          chmod a+w report_xml.xml

This works with the -x flag but it means I have to manually upload the .xml as a separate artifact.

@thc202 thc202 linked a pull request Apr 23, 2024 that will close this issue
@thc202
Copy link
Member

thc202 commented Apr 23, 2024

Closing with the change done in #124.

@thc202 thc202 closed this as completed Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants