Skip to content

Commit 0a2b0d2

Browse files
committed
Moves calls to pack download to the init action
This ensures all steps to gather queries happens in the init action. This is where checking out queries in other repos happens as well.
1 parent a59fbe2 commit 0a2b0d2

9 files changed

+215
-29
lines changed

lib/analyze.js

-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js

+29-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.test.js

+68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze.ts

-15
Original file line numberDiff line numberDiff line change
@@ -280,21 +280,6 @@ export async function runQueries(
280280
logger.endGroup();
281281
logger.info(analysisSummary);
282282
} else {
283-
if (hasPackWithCustomQueries) {
284-
logger.info("Performing analysis with custom CodeQL Packs.");
285-
logger.startGroup(`Downloading custom packs for ${language}`);
286-
287-
const results = await codeql.packDownload(packsWithVersion);
288-
289-
logger.info(
290-
`Downloaded packs: ${results.packs
291-
.map((r) => `${r.name}@${r.version || "latest"}`)
292-
.join(", ")}`
293-
);
294-
295-
logger.endGroup();
296-
}
297-
298283
logger.startGroup(`Running queries for ${language}`);
299284
const querySuitePaths: string[] = [];
300285
if (queries["builtin"].length > 0) {

0 commit comments

Comments
 (0)