Throw a ConfigurationError if setup-codeql has run before init

This commit is contained in:
Michael B. Gale
2025-10-16 20:03:26 +01:00
parent 000295122d
commit c0e8887d5a
5 changed files with 20 additions and 0 deletions

View File

@@ -152,6 +152,8 @@ async function run(): Promise<void> {
core.setOutput("codeql-path", codeql.getPath());
core.setOutput("codeql-version", (await codeql.getVersion()).version);
core.exportVariable(EnvVar.SETUP_CODEQL_ACTION_HAS_RUN, "true");
} catch (unwrappedError) {
const error = wrapError(unwrappedError);
core.setFailed(error.message);