mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 22:30:44 +00:00
Catch auto_install_packages errors
This commit is contained in:
Generated
+7
-1
@@ -148,7 +148,13 @@ async function installPythonDeps(codeql) {
|
||||
return;
|
||||
}
|
||||
// Install dependencies
|
||||
await exec.exec(path.join(scriptsFolder, 'auto_install_packages.py'), [codeql.getDir()]);
|
||||
try {
|
||||
await exec.exec(path.join(scriptsFolder, 'auto_install_packages.py'), [codeql.getDir()]);
|
||||
}
|
||||
catch (e) {
|
||||
core.endGroup();
|
||||
throw new Error('We were unable to install your python dependencies. You can call this action with "setup-python-dependencies: false" to disable this process');
|
||||
}
|
||||
core.endGroup();
|
||||
}
|
||||
async function run() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
+6
-2
@@ -158,8 +158,12 @@ async function installPythonDeps(codeql: CodeQL) {
|
||||
return;
|
||||
}
|
||||
// Install dependencies
|
||||
await exec.exec(path.join(scriptsFolder, 'auto_install_packages.py'), [codeql.getDir()]);
|
||||
|
||||
try {
|
||||
await exec.exec(path.join(scriptsFolder, 'auto_install_packages.py'), [codeql.getDir()]);
|
||||
} catch (e) {
|
||||
core.endGroup();
|
||||
throw new Error('We were unable to install your python dependencies. You can call this action with "setup-python-dependencies: false" to disable this process');
|
||||
}
|
||||
core.endGroup();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user