mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 08:48:46 +00:00
Restore condition for enablement
This commit is contained in:
Generated
+1
-1
@@ -90262,7 +90262,7 @@ async function initConfig(features, inputs) {
|
||||
);
|
||||
}
|
||||
const config = await initActionState(inputs, userConfig);
|
||||
if (await features.getValue("ignore_generated_files" /* IgnoreGeneratedFiles */) || isCCR()) {
|
||||
if (await features.getValue("ignore_generated_files" /* IgnoreGeneratedFiles */) && isCCR()) {
|
||||
try {
|
||||
const generatedFiles = await getGeneratedFiles(inputs.sourceRoot);
|
||||
config.computedConfig["paths-ignore"] ??= [];
|
||||
|
||||
+1
-1
@@ -919,7 +919,7 @@ export async function initConfig(
|
||||
// If we are in CCR or the corresponding FF is enabled, try to determine
|
||||
// which files in the repository are marked as generated and add them to
|
||||
// the `paths-ignore` configuration.
|
||||
if ((await features.getValue(Feature.IgnoreGeneratedFiles)) || isCCR()) {
|
||||
if ((await features.getValue(Feature.IgnoreGeneratedFiles)) && isCCR()) {
|
||||
try {
|
||||
const generatedFiles = await getGeneratedFiles(inputs.sourceRoot);
|
||||
config.computedConfig["paths-ignore"] ??= [];
|
||||
|
||||
Reference in New Issue
Block a user