mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Throw a ConfigurationError if setup-codeql has run before init
This commit is contained in:
Generated
+5
@@ -90784,6 +90784,11 @@ async function run() {
|
||||
if (statusReportBase !== void 0) {
|
||||
await sendStatusReport(statusReportBase);
|
||||
}
|
||||
if (process.env["CODEQL_ACTION_SETUP_CODEQL_HAS_RUN" /* SETUP_CODEQL_ACTION_HAS_RUN */] === "true") {
|
||||
throw new ConfigurationError(
|
||||
`The 'init' action should not be run in the same workflow as 'setup-codeql'.`
|
||||
);
|
||||
}
|
||||
const codeQLDefaultVersionInfo = await features.getDefaultCliVersion(
|
||||
gitHubVersion.type
|
||||
);
|
||||
|
||||
Generated
+1
@@ -87583,6 +87583,7 @@ async function run() {
|
||||
toolsSource = initCodeQLResult.toolsSource;
|
||||
core12.setOutput("codeql-path", codeql.getPath());
|
||||
core12.setOutput("codeql-version", (await codeql.getVersion()).version);
|
||||
core12.exportVariable("CODEQL_ACTION_SETUP_CODEQL_HAS_RUN" /* SETUP_CODEQL_ACTION_HAS_RUN */, "true");
|
||||
} catch (unwrappedError) {
|
||||
const error2 = wrapError(unwrappedError);
|
||||
core12.setFailed(error2.message);
|
||||
|
||||
Reference in New Issue
Block a user