Do not fail check if no critical vulnerabilities were found when executed for a fork repository (closes #104)

This commit is contained in:
svartalf
2020-05-06 23:42:53 +03:00
parent 5a5aec182f
commit a409407cff
5 changed files with 20 additions and 2 deletions
+10
View File
@@ -153,6 +153,11 @@ See https://github.com/actions-rs/clippy-check/issues/2 for details.`);
throw new Error(
'Critical vulnerabilities were found, marking check as failed',
);
} else {
core.info(
'No critical vulnerabilities were found, not marking check as failed',
);
return;
}
}
@@ -177,6 +182,11 @@ See https://github.com/actions-rs/clippy-check/issues/2 for details.`);
throw new Error(
'Critical vulnerabilities were found, marking check as failed',
);
} else {
core.info(
'No critical vulnerabilities were found, not marking check as failed',
);
return;
}
}