mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Avoid requesting features in CCR
This commit is contained in:
9
lib/analyze-action.js
generated
9
lib/analyze-action.js
generated
@@ -108012,7 +108012,14 @@ var GitHubFeatureFlags = class {
|
||||
async loadApiResponse() {
|
||||
if (!supportsFeatureFlags(this.gitHubVersion.type)) {
|
||||
this.logger.debug(
|
||||
"Not running against github.com. Disabling all toggleable features."
|
||||
"Not running against github.com. Using default values for all features."
|
||||
);
|
||||
this.hasAccessedRemoteFeatureFlags = false;
|
||||
return {};
|
||||
}
|
||||
if (isCCR()) {
|
||||
this.logger.debug(
|
||||
"Feature flags are not supported in Copilot Code Review. Using default values for all features."
|
||||
);
|
||||
this.hasAccessedRemoteFeatureFlags = false;
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user