Fix hasActionsWorkflows throwing an exception if the workflows folder doesn't exist by mbg · Pull Request #3084 · github/codeql-action (original) (raw)

This problem was introduced in #3009 since lstatSync throws an exception by default if the filesystem object doesn't exist.

We likely didn't come across this because it requires both of the following conditions to hold:

Risk assessment

For internal use only. Please select the risk level of this change:

Merge / deployment checklist