mirror of
https://github.com/github/codeql-action.git
synced 2026-01-01 04:00:24 +08:00
Throw a ConfigurationError if setup-codeql has run before init
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user