Set checkPresence in diff-range data extension

This commit updates the diff-range data extension to use the new
checkPresence field being introduced in CodeQL CLI 2.21.0, so that
diff-informed analysis no longer fails when a query pack does not have
the restrictAlertsTo extensible predicate.
This commit is contained in:
Chuan-kai Lin
2025-04-04 08:41:50 -07:00
parent 362ef4ce20
commit 94102d99b0
6 changed files with 6 additions and 6 deletions

View File

@@ -517,6 +517,7 @@ extensions:
- addsTo:
pack: codeql/util
extensible: restrictAlertsTo
checkPresence: false
data:
`;

View File

@@ -112,8 +112,7 @@ export const featureConfig: Record<
[Feature.DiffInformedQueries]: {
defaultValue: false,
envVar: "CODEQL_ACTION_DIFF_INFORMED_QUERIES",
minimumVersion: undefined,
toolsFeature: ToolsFeature.DatabaseInterpretResultsSupportsSarifRunProperty,
minimumVersion: "2.21.0",
},
[Feature.DisableCsharpBuildless]: {
defaultValue: false,