mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 10:38:49 +01:00
Don’t exit with 1 when running security analysis in GitHub Actions and generating a file
This commit is contained in:
parent
1708bae984
commit
6e39c24a17
@ -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);
|
||||
}
|
||||
}
|
||||
@ -758,7 +762,7 @@ class IssueBuffer
|
||||
case Report::TYPE_PHP_STORM:
|
||||
$output = new PhpStormReport($normalized_data, self::$fixable_issue_counts, $report_options);
|
||||
break;
|
||||
|
||||
|
||||
case Report::TYPE_SARIF:
|
||||
$output = new SarifReport($normalized_data, self::$fixable_issue_counts, $report_options);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user