You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scan uses upload-sarif step with a directory called reports. If this directory happens to be empty (no results produced), then the upload step is failing as below:
Error: No SARIF files found to upload in "reports".
Error: No SARIF files found to upload in "reports".
at Object.upload (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-lib.js:82:19)
at run (/home/runner/work/_actions/github/codeql-action/v1/lib/upload-sarif-action.js:29:46)
This is breaking quite a large number of builds. Is it possible to detect empty directories and prevent this step from failing with error? It is going to take some effort to make scan produce empty sarif file for various cases so would appreciate this workaround from you.
The text was updated successfully, but these errors were encountered:
prabhu commentedOct 29, 2020
Scan uses upload-sarif step with a directory called reports. If this directory happens to be empty (no results produced), then the upload step is failing as below:
This is breaking quite a large number of builds. Is it possible to detect empty directories and prevent this step from failing with error? It is going to take some effort to make scan produce empty sarif file for various cases so would appreciate this workaround from you.
The text was updated successfully, but these errors were encountered: