Skip to content
Merged
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
9 changes: 4 additions & 5 deletions .github/workflows/run-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -621,15 +621,14 @@ jobs:
target: 'https://nest.owasp.dev'
allow_issue_writing: false
fail_action: false
cmd_options: '-a -c .zapconfig -r report.html '
cmd_options: '-a -c .zapconfig -r report_html.html'

- name: Upload report
if: always()
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: zap-baseline-scan-report-${{ github.run_id }}
path: report.html

path: report_html.html
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So your code just renamed the report file. Why do you think it'll work now if it didn't work for the same approach with just a different name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously, I removed the report file generation step because I initially thought that was causing the issue.
This time, I addressed the actual root cause by properly renaming and aligning the report filename, which was mismatched between the ZAP generation step and the artifact upload step and was causing the failure.


build-production-images:
name: Build Production Images
Expand Down Expand Up @@ -965,11 +964,11 @@ jobs:
target: 'https://nest.owasp.org'
allow_issue_writing: false
fail_action: false
cmd_options: '-a -c .zapconfig -r report.html '
cmd_options: '-a -c .zapconfig -r report_html.html'

- name: Upload report
if: always()
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
with:
name: zap-baseline-scan-report-${{ github.run_id }}
path: report.html
path: report_html.html