Skip to content

Commit 02b10b2

Browse files
authored
fix: fixed throwing errors when codeql is turned off (#29)
1 parent 8ab54ec commit 02b10b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/security-checker.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class SecurityChecker {
4949
return data;
5050
}
5151
catch (e) {
52-
if (e.message.includes('no analysis found'))
52+
if (e.message.includes('no analysis found') || e.message.includes('Advanced Security must be enabled for this repository to use code scanning'))
5353
return [];
5454

5555
throw e;

0 commit comments

Comments
 (0)