GH action fails if sarif output file doesn't exist #85

Closed
opened 2024-04-02 09:51:47 -04:00 by Mzack9999 · 0 comments
Mzack9999 commented 2024-04-02 09:51:47 -04:00 (Migrated from github.com)

Description

If the nuclei scan has no results no nuclei.sarif is being created and the GH action fails on the result upload step:

ConfigurationError: Path does not exist: nuclei.sarif
    at run (/home/runner/work/_actions/github/codeql-action/v3/lib/upload-sarif-action.js:65:15)

Details at https://github.com/projectdiscovery/nuclei/discussions/4813#discussioncomment-8975460

## Description If the nuclei scan has no results no `nuclei.sarif` is being created and the GH action fails on the result upload step: ```shell ConfigurationError: Path does not exist: nuclei.sarif at run (/home/runner/work/_actions/github/codeql-action/v3/lib/upload-sarif-action.js:65:15) ``` Details at https://github.com/projectdiscovery/nuclei/discussions/4813#discussioncomment-8975460
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
projectdiscovery/nuclei-action#85
No description provided.