mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
fix(actions): ql pack installation
This commit is contained in:
2
.github/action/dist/index.js
vendored
2
.github/action/dist/index.js
vendored
@@ -28677,9 +28677,7 @@ async function downloadPack(codeql) {
|
||||
exports.downloadPack = downloadPack;
|
||||
async function installPack(codeql, dir) {
|
||||
try {
|
||||
await runCommand(codeql, ["pack", "download", "githubsecuritylab/actions-all"], path.join(dir, "/ql/lib"));
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/lib"));
|
||||
await runCommand(codeql, ["pack", "download", "githubsecuritylab/actions-queries"], path.join(dir, "/ql/src"));
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/src"));
|
||||
return true;
|
||||
}
|
||||
|
||||
10
.github/action/src/codeql.ts
vendored
10
.github/action/src/codeql.ts
vendored
@@ -111,17 +111,7 @@ export async function installPack(
|
||||
dir: string,
|
||||
): Promise<boolean> {
|
||||
try {
|
||||
await runCommand(
|
||||
codeql,
|
||||
["pack", "download", "githubsecuritylab/actions-all"],
|
||||
path.join(dir, "/ql/lib"),
|
||||
);
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/lib"));
|
||||
await runCommand(
|
||||
codeql,
|
||||
["pack", "download", "githubsecuritylab/actions-queries"],
|
||||
path.join(dir, "/ql/src"),
|
||||
);
|
||||
await runCommand(codeql, ["pack", "install"], path.join(dir, "/ql/src"));
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user