Compare commits

...

6 Commits

Author SHA1 Message Date
Michael B. Gale 6a90bf1f54 Merge pull request #4075 from github/dependabot/npm_and_yarn/brace-expansion-1.1.18
Bump brace-expansion from 1.1.16 to 1.1.18
2026-08-04 14:52:59 +00:00
github-actions[bot] c5995f544d Rebuild 2026-08-04 14:19:52 +00:00
dependabot[bot] 76c44396d3 Bump brace-expansion from 1.1.16 to 1.1.18
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.16 to 1.1.18.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.16...v1.1.18)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.18
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-04 14:18:04 +00:00
Michael B. Gale fad141fa6c Merge pull request #4073 from github/mergeback/v4.37.6-to-main-5595ccaf
Mergeback v4.37.6 refs/heads/releases/v4 into main
2026-08-04 14:03:40 +00:00
github-actions[bot] 7d82f1132f Rebuild 2026-08-04 13:34:54 +00:00
github-actions[bot] 37bdbde050 Update changelog and version after v4.37.6 2026-08-04 13:34:41 +00:00
4 changed files with 429 additions and 221 deletions
+4
View File
@@ -2,6 +2,10 @@
See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs. See the [releases page](https://github.com/github/codeql-action/releases) for the relevant changes to the CodeQL CLI and language packs.
## [UNRELEASED]
No user facing changes.
## 4.37.6 - 04 Aug 2026 ## 4.37.6 - 04 Aug 2026
- Changed the default filepath for the new remote file address format that was introduced in CodeQL Action 4.37.0 / 3.37.0 to `.github/codeql-config.yml` to align it with the suggested path that is used elsewhere. [#4070](https://github.com/github/codeql-action/pull/4070) - Changed the default filepath for the new remote file address format that was introduced in CodeQL Action 4.37.0 / 3.37.0 to `.github/codeql-config.yml` to align it with the suggested path that is used elsewhere. [#4070](https://github.com/github/codeql-action/pull/4070)
+391 -187
View File
@@ -31227,6 +31227,8 @@ var require_brace_expansion = __commonJS({
var escClose2 = "\0CLOSE" + Math.random() + "\0"; var escClose2 = "\0CLOSE" + Math.random() + "\0";
var escComma2 = "\0COMMA" + Math.random() + "\0"; var escComma2 = "\0COMMA" + Math.random() + "\0";
var escPeriod2 = "\0PERIOD" + Math.random() + "\0"; var escPeriod2 = "\0PERIOD" + Math.random() + "\0";
var EXPANSION_MAX2 = 1e5;
var EXPANSION_MAX_LENGTH2 = 4e6;
function numeric2(str) { function numeric2(str) {
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
} }
@@ -31260,11 +31262,12 @@ var require_brace_expansion = __commonJS({
if (!str) if (!str)
return []; return [];
options = options || {}; options = options || {};
var max = options.max == null ? Infinity : options.max; var max = options.max == null ? EXPANSION_MAX2 : options.max;
var maxLength = options.maxLength == null ? EXPANSION_MAX_LENGTH2 : options.maxLength;
if (str.substr(0, 2) === "{}") { if (str.substr(0, 2) === "{}") {
str = "\\{\\}" + str.substr(2); str = "\\{\\}" + str.substr(2);
} }
return expand3(escapeBraces2(str), max, true).map(unescapeBraces2); return expand3(escapeBraces2(str), max, maxLength, true).map(unescapeBraces2);
} }
function embrace2(str) { function embrace2(str) {
return "{" + str + "}"; return "{" + str + "}";
@@ -31278,11 +31281,82 @@ var require_brace_expansion = __commonJS({
function gte7(i, y) { function gte7(i, y) {
return i >= y; return i >= y;
} }
function expand3(str, max, isTop) { function combine2(acc, base, pre, values, max, maxLength, dropEmpties, outBase) {
var expansions = []; var out = [];
var length = 0;
for (var a = 0; a < acc.length; a++) {
for (var v = 0; v < values.length; v++) {
if (out.length >= max) return out;
var expansion = acc[a] + pre + values[v];
if (dropEmpties && expansion.length === base[a]) continue;
if (length + expansion.length > maxLength) return out;
out.push(expansion);
outBase.push(base[a]);
length += expansion.length;
}
}
return out;
}
function expandSequence2(body, isAlphaSequence, max, maxLength) {
var n = body.split(/\.\./);
var N = [];
if (n[0] === void 0 || n[1] === void 0) {
return N;
}
var x = numeric2(n[0]);
var y = numeric2(n[1]);
var width = Math.max(n[0].length, n[1].length);
var incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric2(n[2])), 1) : 1;
var test = lte2;
var reverse = y < x;
if (reverse) {
incr *= -1;
test = gte7;
}
var pad = n.some(isPadded2);
var length = 0;
for (var i = x; test(i, y) && N.length < max; i += incr) {
var c;
if (isAlphaSequence) {
c = String.fromCharCode(i);
if (c === "\\") {
c = "";
}
} else {
c = String(i);
if (pad) {
var need = width - c.length;
if (need > 0) {
var z = new Array(need + 1).join("0");
if (i < 0) {
c = "-" + z + c.slice(1);
} else {
c = z + c;
}
}
}
}
if (length + c.length > maxLength) break;
N.push(c);
length += c.length;
}
return N;
}
function expand3(str, max, maxLength, isTop) {
var acc = [""];
var accBase = [0];
var dropEmpties = false;
var firstGroup = true;
var nextBase;
for (; ; ) { for (; ; ) {
var m = balanced2("{", "}", str); var m = balanced2("{", "}", str);
if (!m || /\$$/.test(m.pre)) return [str]; if (!m) {
return combine2(acc, accBase, str, [""], max, maxLength, dropEmpties, []);
}
var pre = m.pre;
if (/\$$/.test(pre)) {
return combine2(acc, accBase, str, [""], max, maxLength, dropEmpties, []);
}
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
var isSequence = isNumericSequence || isAlphaSequence; var isSequence = isNumericSequence || isAlphaSequence;
@@ -31291,76 +31365,91 @@ var require_brace_expansion = __commonJS({
if (m.post.match(/,(?!,).*\}/)) { if (m.post.match(/,(?!,).*\}/)) {
str = m.pre + "{" + m.body + escClose2 + m.post; str = m.pre + "{" + m.body + escClose2 + m.post;
isTop = true; isTop = true;
firstGroup = true;
dropEmpties = false;
accBase = [];
for (var b = 0; b < acc.length; b++) {
accBase.push(acc[b].length);
}
continue; continue;
} }
return [str]; return combine2(
acc,
accBase,
pre + "{" + m.body + "}" + m.post,
[""],
max,
maxLength,
dropEmpties,
[]
);
} }
var n; if (firstGroup) {
dropEmpties = isTop && !isSequence;
firstGroup = false;
}
var values;
if (isSequence) { if (isSequence) {
n = m.body.split(/\.\./); values = expandSequence2(m.body, isAlphaSequence, max, maxLength);
} else { } else {
n = parseCommaParts2(m.body); var n = parseCommaParts2(m.body);
if (n.length === 1 && n[0] !== void 0) {
n = expand3(n[0], max, maxLength, false).map(embrace2);
if (n.length === 1) { if (n.length === 1) {
n = expand3(n[0], max, false).map(embrace2); nextBase = [];
if (n.length === 1) { acc = combine2(
var post = m.post.length ? expand3(m.post, max, false) : [""]; acc,
return post.map(function(p) { accBase,
return m.pre + n[0] + p; pre + n[0],
}); [""],
max,
maxLength,
dropEmpties && !m.post.length,
nextBase
);
accBase = nextBase;
if (!m.post.length) break;
str = m.post;
continue;
}
}
var dropsEmpties = dropEmpties && !m.post.length && !pre;
for (var d = 0; dropsEmpties && d < acc.length; d++) {
if (acc[d].length !== accBase[d]) {
dropsEmpties = false;
}
}
values = [];
var valuesLength = 0;
outer: for (var j = 0; j < n.length; j++) {
var expanded = expand3(n[j], max, maxLength, false);
for (var k = 0; k < expanded.length; k++) {
var v = expanded[k];
if (dropsEmpties && !v) continue;
if (values.length >= max || valuesLength + v.length > maxLength) {
break outer;
}
values.push(v);
valuesLength += v.length;
} }
} }
} }
var pre = m.pre; nextBase = [];
var post = m.post.length ? expand3(m.post, max, false) : [""]; acc = combine2(
var N; acc,
if (isSequence) { accBase,
var x = numeric2(n[0]); pre,
var y = numeric2(n[1]); values,
var width = Math.max(n[0].length, n[1].length); max,
var incr = n.length == 3 ? Math.max(Math.abs(numeric2(n[2])), 1) : 1; maxLength,
var test = lte2; dropEmpties && !m.post.length,
var reverse = y < x; nextBase
if (reverse) { );
incr *= -1; accBase = nextBase;
test = gte7; if (!m.post.length) break;
} str = m.post;
var pad = n.some(isPadded2);
N = [];
for (var i = x; test(i, y) && N.length < max; i += incr) {
var c;
if (isAlphaSequence) {
c = String.fromCharCode(i);
if (c === "\\")
c = "";
} else {
c = String(i);
if (pad) {
var need = width - c.length;
if (need > 0) {
var z = new Array(need + 1).join("0");
if (i < 0)
c = "-" + z + c.slice(1);
else
c = z + c;
}
}
}
N.push(c);
}
} else {
N = concatMap(n, function(el) {
return expand3(el, max, false);
});
}
for (var j = 0; j < N.length; j++) {
for (var k = 0; k < post.length && expansions.length < max; k++) {
var expansion = pre + N[j] + post[k];
if (!isTop || isSequence || expansion)
expansions.push(expansion);
}
}
return expansions;
} }
return acc;
} }
} }
}); });
@@ -89012,6 +89101,8 @@ var require_brace_expansion2 = __commonJS({
var escClose2 = "\0CLOSE" + Math.random() + "\0"; var escClose2 = "\0CLOSE" + Math.random() + "\0";
var escComma2 = "\0COMMA" + Math.random() + "\0"; var escComma2 = "\0COMMA" + Math.random() + "\0";
var escPeriod2 = "\0PERIOD" + Math.random() + "\0"; var escPeriod2 = "\0PERIOD" + Math.random() + "\0";
var EXPANSION_MAX2 = 1e5;
var EXPANSION_MAX_LENGTH2 = 4e6;
function numeric2(str) { function numeric2(str) {
return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0);
} }
@@ -89045,11 +89136,12 @@ var require_brace_expansion2 = __commonJS({
if (!str) if (!str)
return []; return [];
options = options || {}; options = options || {};
var max = options.max == null ? Infinity : options.max; var max = options.max == null ? EXPANSION_MAX2 : options.max;
var maxLength = options.maxLength == null ? EXPANSION_MAX_LENGTH2 : options.maxLength;
if (str.substr(0, 2) === "{}") { if (str.substr(0, 2) === "{}") {
str = "\\{\\}" + str.substr(2); str = "\\{\\}" + str.substr(2);
} }
return expand3(escapeBraces2(str), max, true).map(unescapeBraces2); return expand3(escapeBraces2(str), max, maxLength, true).map(unescapeBraces2);
} }
function embrace2(str) { function embrace2(str) {
return "{" + str + "}"; return "{" + str + "}";
@@ -89063,19 +89155,89 @@ var require_brace_expansion2 = __commonJS({
function gte7(i, y) { function gte7(i, y) {
return i >= y; return i >= y;
} }
function expand3(str, max, isTop) { function combine2(acc, pre, values, max, maxLength, dropEmpties) {
var expansions = []; var out = [];
var length = 0;
for (var a = 0; a < acc.length; a++) {
for (var v = 0; v < values.length; v++) {
if (out.length >= max) return out;
var expansion = acc[a] + pre + values[v];
if (dropEmpties && !expansion) continue;
if (length + expansion.length > maxLength) return out;
out.push(expansion);
length += expansion.length;
}
}
return out;
}
function expandSequence2(body, isAlphaSequence, max, maxLength) {
var n = body.split(/\.\./);
var N = [];
if (n[0] === void 0 || n[1] === void 0) {
return N;
}
var x = numeric2(n[0]);
var y = numeric2(n[1]);
var width = Math.max(n[0].length, n[1].length);
var incr = n.length === 3 && n[2] !== void 0 ? Math.max(Math.abs(numeric2(n[2])), 1) : 1;
var test = lte2;
var reverse = y < x;
if (reverse) {
incr *= -1;
test = gte7;
}
var pad = n.some(isPadded2);
var length = 0;
for (var i = x; test(i, y) && N.length < max; i += incr) {
var c;
if (isAlphaSequence) {
c = String.fromCharCode(i);
if (c === "\\") {
c = "";
}
} else {
c = String(i);
if (pad) {
var need = width - c.length;
if (need > 0) {
var z = new Array(need + 1).join("0");
if (i < 0) {
c = "-" + z + c.slice(1);
} else {
c = z + c;
}
}
}
}
if (length + c.length > maxLength) break;
N.push(c);
length += c.length;
}
return N;
}
function expand3(str, max, maxLength, isTop) {
var acc = [""];
var dropEmpties = false;
var firstGroup = true;
for (; ; ) { for (; ; ) {
const m = balanced2("{", "}", str); const m = balanced2("{", "}", str);
if (!m) return [str]; if (!m) {
const pre = m.pre; return combine2(acc, str, [""], max, maxLength, dropEmpties);
if (/\$$/.test(m.pre)) {
const post2 = m.post.length ? expand3(m.post, max, false) : [""];
for (let k2 = 0; k2 < post2.length && k2 < max; k2++) {
const expansion2 = pre + "{" + m.body + "}" + post2[k2];
expansions.push(expansion2);
} }
return expansions; const pre = m.pre;
if (/\$$/.test(pre)) {
acc = combine2(
acc,
pre + "{" + m.body + "}",
[""],
max,
maxLength,
dropEmpties && !m.post.length
);
firstGroup = false;
if (!m.post.length) break;
str = m.post;
continue;
} }
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
@@ -89087,73 +89249,66 @@ var require_brace_expansion2 = __commonJS({
isTop = true; isTop = true;
continue; continue;
} }
return [str]; return combine2(
acc,
pre + "{" + m.body + "}" + m.post,
[""],
max,
maxLength,
dropEmpties
);
} }
const post = m.post.length ? expand3(m.post, max, false) : [""]; if (firstGroup) {
var n; dropEmpties = isTop && !isSequence;
firstGroup = false;
}
var values;
if (isSequence) { if (isSequence) {
n = m.body.split(/\.\./); values = expandSequence2(m.body, isAlphaSequence, max, maxLength);
} else { } else {
n = parseCommaParts2(m.body); var n = parseCommaParts2(m.body);
if (n.length === 1 && n[0] !== void 0) {
n = expand3(n[0], max, maxLength, false).map(embrace2);
if (n.length === 1) { if (n.length === 1) {
n = expand3(n[0], max, false).map(embrace2); acc = combine2(
if (n.length === 1) { acc,
return post.map(function(p) { pre + n[0],
return m.pre + n[0] + p; [""],
}); max,
maxLength,
dropEmpties && !m.post.length
);
if (!m.post.length) break;
str = m.post;
continue;
}
}
var dropsEmpties = dropEmpties && !m.post.length && !pre;
for (var d = 0; dropsEmpties && d < acc.length; d++) {
if (acc[d]) {
dropsEmpties = false;
}
}
values = [];
var valuesLength = 0;
outer: for (var j = 0; j < n.length; j++) {
var expanded = expand3(n[j], max, maxLength, false);
for (var k = 0; k < expanded.length; k++) {
var v = expanded[k];
if (dropsEmpties && !v) continue;
if (values.length >= max || valuesLength + v.length > maxLength) {
break outer;
}
values.push(v);
valuesLength += v.length;
} }
} }
} }
var N; acc = combine2(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
if (isSequence) { if (!m.post.length) break;
var x = numeric2(n[0]); str = m.post;
var y = numeric2(n[1]);
var width = Math.max(n[0].length, n[1].length);
var incr = n.length == 3 ? Math.max(Math.abs(numeric2(n[2])), 1) : 1;
var test = lte2;
var reverse = y < x;
if (reverse) {
incr *= -1;
test = gte7;
}
var pad = n.some(isPadded2);
N = [];
for (var i = x; test(i, y) && N.length < max; i += incr) {
var c;
if (isAlphaSequence) {
c = String.fromCharCode(i);
if (c === "\\")
c = "";
} else {
c = String(i);
if (pad) {
var need = width - c.length;
if (need > 0) {
var z = new Array(need + 1).join("0");
if (i < 0)
c = "-" + z + c.slice(1);
else
c = z + c;
}
}
}
N.push(c);
}
} else {
N = [];
for (var j = 0; j < n.length; j++) {
N.push.apply(N, expand3(n[j], max, false));
}
}
for (var j = 0; j < N.length; j++) {
for (var k = 0; k < post.length && expansions.length < max; k++) {
var expansion = pre + N[j] + post[k];
if (!isTop || isSequence || expansion)
expansions.push(expansion);
}
}
return expansions;
} }
return acc;
} }
} }
}); });
@@ -145426,7 +145581,7 @@ function getDiffRangesJsonFilePath(env = getEnv()) {
return path2.join(getTemporaryDirectory(env), PR_DIFF_RANGE_JSON_FILENAME); return path2.join(getTemporaryDirectory(env), PR_DIFF_RANGE_JSON_FILENAME);
} }
function getActionVersion() { function getActionVersion() {
return "4.37.6"; return "4.37.7";
} }
function getWorkflowEventName(env = getEnv()) { function getWorkflowEventName(env = getEnv()) {
return env.getRequired("GITHUB_EVENT_NAME" /* GITHUB_EVENT_NAME */); return env.getRequired("GITHUB_EVENT_NAME" /* GITHUB_EVENT_NAME */);
@@ -155679,6 +155834,7 @@ var closePattern = /\\}/g;
var commaPattern = /\\,/g; var commaPattern = /\\,/g;
var periodPattern = /\\\./g; var periodPattern = /\\\./g;
var EXPANSION_MAX = 1e5; var EXPANSION_MAX = 1e5;
var EXPANSION_MAX_LENGTH = 4e6;
function numeric(str) { function numeric(str) {
return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0); return !isNaN(str) ? parseInt(str, 10) : str.charCodeAt(0);
} }
@@ -155713,11 +155869,11 @@ function expand2(str, options = {}) {
if (!str) { if (!str) {
return []; return [];
} }
const { max = EXPANSION_MAX } = options; const { max = EXPANSION_MAX, maxLength = EXPANSION_MAX_LENGTH } = options;
if (str.slice(0, 2) === "{}") { if (str.slice(0, 2) === "{}") {
str = "\\{\\}" + str.slice(2); str = "\\{\\}" + str.slice(2);
} }
return expand_(escapeBraces(str), max, true).map(unescapeBraces); return expand_(escapeBraces(str), max, maxLength, true).map(unescapeBraces);
} }
function embrace(str) { function embrace(str) {
return "{" + str + "}"; return "{" + str + "}";
@@ -155731,48 +155887,30 @@ function lte(i, y) {
function gte6(i, y) { function gte6(i, y) {
return i >= y; return i >= y;
} }
function expand_(str, max, isTop) { function combine(acc, pre, values, max, maxLength, dropEmpties) {
const expansions = []; const out = [];
for (; ; ) { let length = 0;
const m = balanced("{", "}", str); for (let a = 0; a < acc.length; a++) {
if (!m) for (let v = 0; v < values.length; v++) {
return [str]; if (out.length >= max)
const pre = m.pre; return out;
if (/\$$/.test(m.pre)) { const expansion = acc[a] + pre + values[v];
const post2 = m.post.length ? expand_(m.post, max, false) : [""]; if (dropEmpties && !expansion)
for (let k = 0; k < post2.length && k < max; k++) {
const expansion = pre + "{" + m.body + "}" + post2[k];
expansions.push(expansion);
}
return expansions;
}
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
const isSequence = isNumericSequence || isAlphaSequence;
const isOptions = m.body.indexOf(",") >= 0;
if (!isSequence && !isOptions) {
if (m.post.match(/,(?!,).*\}/)) {
str = m.pre + "{" + m.body + escClose + m.post;
isTop = true;
continue; continue;
} if (length + expansion.length > maxLength)
return [str]; return out;
} out.push(expansion);
const post = m.post.length ? expand_(m.post, max, false) : [""]; length += expansion.length;
let n;
if (isSequence) {
n = m.body.split(/\.\./);
} else {
n = parseCommaParts(m.body);
if (n.length === 1 && n[0] !== void 0) {
n = expand_(n[0], max, false).map(embrace);
if (n.length === 1) {
return post.map((p) => m.pre + n[0] + p);
} }
} }
return out;
}
function expandSequence(body, isAlphaSequence, max, maxLength) {
const n = body.split(/\.\./);
const N = [];
if (n[0] === void 0 || n[1] === void 0) {
return N;
} }
let N;
if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
const x = numeric(n[0]); const x = numeric(n[0]);
const y = numeric(n[1]); const y = numeric(n[1]);
const width = Math.max(n[0].length, n[1].length); const width = Math.max(n[0].length, n[1].length);
@@ -155784,7 +155922,7 @@ function expand_(str, max, isTop) {
test = gte6; test = gte6;
} }
const pad = n.some(isPadded); const pad = n.some(isPadded);
N = []; let length = 0;
for (let i = x; test(i, y) && N.length < max; i += incr) { for (let i = x; test(i, y) && N.length < max; i += incr) {
let c; let c;
if (isAlphaSequence) { if (isAlphaSequence) {
@@ -155806,24 +155944,90 @@ function expand_(str, max, isTop) {
} }
} }
} }
if (length + c.length > maxLength)
break;
N.push(c); N.push(c);
length += c.length;
} }
return N;
}
function expand_(str, max, maxLength, isTop) {
let acc = [""];
let dropEmpties = false;
let firstGroup = true;
for (; ; ) {
const m = balanced("{", "}", str);
if (!m) {
return combine(acc, str, [""], max, maxLength, dropEmpties);
}
const pre = m.pre;
if (/\$$/.test(pre)) {
acc = combine(acc, pre + "{" + m.body + "}", [""], max, maxLength, dropEmpties && !m.post.length);
firstGroup = false;
if (!m.post.length)
break;
str = m.post;
continue;
}
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
const isSequence = isNumericSequence || isAlphaSequence;
const isOptions = m.body.indexOf(",") >= 0;
if (!isSequence && !isOptions) {
if (m.post.match(/,(?!,).*\}/)) {
str = m.pre + "{" + m.body + escClose + m.post;
isTop = true;
continue;
}
return combine(acc, pre + "{" + m.body + "}" + m.post, [""], max, maxLength, dropEmpties);
}
if (firstGroup) {
dropEmpties = isTop && !isSequence;
firstGroup = false;
}
let values;
if (isSequence) {
values = expandSequence(m.body, isAlphaSequence, max, maxLength);
} else { } else {
N = []; let n = parseCommaParts(m.body);
for (let j = 0; j < n.length; j++) { if (n.length === 1 && n[0] !== void 0) {
N.push.apply(N, expand_(n[j], max, false)); n = expand_(n[0], max, maxLength, false).map(embrace);
if (n.length === 1) {
acc = combine(acc, pre + n[0], [""], max, maxLength, dropEmpties && !m.post.length);
if (!m.post.length)
break;
str = m.post;
continue;
} }
} }
for (let j = 0; j < N.length; j++) { let dropsEmpties = dropEmpties && !m.post.length && !pre;
for (let k = 0; k < post.length && expansions.length < max; k++) { for (let d = 0; dropsEmpties && d < acc.length; d++) {
const expansion = pre + N[j] + post[k]; if (acc[d]) {
if (!isTop || isSequence || expansion) { dropsEmpties = false;
expansions.push(expansion); }
}
values = [];
let valuesLength = 0;
outer: for (let j = 0; j < n.length; j++) {
const expanded = expand_(n[j], max, maxLength, false);
for (let k = 0; k < expanded.length; k++) {
const v = expanded[k];
if (dropsEmpties && !v)
continue;
if (values.length >= max || valuesLength + v.length > maxLength) {
break outer;
}
values.push(v);
valuesLength += v.length;
} }
} }
} }
return expansions; acc = combine(acc, pre, values, max, maxLength, dropEmpties && !m.post.length);
if (!m.post.length)
break;
str = m.post;
} }
return acc;
} }
// node_modules/readdir-glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js // node_modules/readdir-glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
+23 -23
View File
@@ -1,12 +1,12 @@
{ {
"name": "codeql", "name": "codeql",
"version": "4.37.6", "version": "4.37.7",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "codeql", "name": "codeql",
"version": "4.37.6", "version": "4.37.7",
"license": "MIT", "license": "MIT",
"workspaces": [ "workspaces": [
"pr-checks" "pr-checks"
@@ -374,9 +374,9 @@
"license": "Apache-2.0" "license": "Apache-2.0"
}, },
"node_modules/@actions/artifact/node_modules/brace-expansion": { "node_modules/@actions/artifact/node_modules/brace-expansion": {
"version": "2.1.2", "version": "2.1.4",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.4.tgz",
"integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", "integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"balanced-match": "^1.0.0" "balanced-match": "^1.0.0"
@@ -2843,9 +2843,9 @@
} }
}, },
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
"version": "5.0.8", "version": "5.0.9",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
"integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==", "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -3864,9 +3864,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/brace-expansion": { "node_modules/brace-expansion": {
"version": "1.1.16", "version": "1.1.18",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz",
"integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
@@ -5115,16 +5115,16 @@
} }
}, },
"node_modules/eslint-plugin-import-x/node_modules/brace-expansion": { "node_modules/eslint-plugin-import-x/node_modules/brace-expansion": {
"version": "5.0.7", "version": "5.0.9",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
"integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"balanced-match": "^4.0.2" "balanced-match": "^4.0.2"
}, },
"engines": { "engines": {
"node": "18 || 20 || >=22" "node": "20 || >=22"
} }
}, },
"node_modules/eslint-plugin-import-x/node_modules/minimatch": { "node_modules/eslint-plugin-import-x/node_modules/minimatch": {
@@ -6111,15 +6111,15 @@
} }
}, },
"node_modules/glob/node_modules/brace-expansion": { "node_modules/glob/node_modules/brace-expansion": {
"version": "5.0.7", "version": "5.0.9",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
"integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"balanced-match": "^4.0.2" "balanced-match": "^4.0.2"
}, },
"engines": { "engines": {
"node": "18 || 20 || >=22" "node": "20 || >=22"
} }
}, },
"node_modules/glob/node_modules/minimatch": { "node_modules/glob/node_modules/minimatch": {
@@ -8090,15 +8090,15 @@
} }
}, },
"node_modules/readdir-glob/node_modules/brace-expansion": { "node_modules/readdir-glob/node_modules/brace-expansion": {
"version": "5.0.7", "version": "5.0.9",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
"integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"balanced-match": "^4.0.2" "balanced-match": "^4.0.2"
}, },
"engines": { "engines": {
"node": "18 || 20 || >=22" "node": "20 || >=22"
} }
}, },
"node_modules/readdir-glob/node_modules/minimatch": { "node_modules/readdir-glob/node_modules/minimatch": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "codeql", "name": "codeql",
"version": "4.37.6", "version": "4.37.7",
"private": true, "private": true,
"description": "CodeQL action", "description": "CodeQL action",
"scripts": { "scripts": {