1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-06 05:29:00 +01:00

Don’t exit with 1 when running security analysis in GitHub Actions and generating a file

This commit is contained in:
Matt Brown 2020-11-17 22:49:25 -05:00
parent 1708bae984
commit 6e39c24a17

View File

@ -680,7 +680,11 @@ class IssueBuffer
}
}
if ($error_count) {
if ($error_count
&& !($codebase->taint_flow_graph
&& $project_analyzer->generated_report_options
&& isset($_SERVER['GITHUB_WORKFLOW']))
) {
exit(1);
}
}