Skip to content

Commit e5eb856

Browse files
author
Alvaro Muñoz
committed
Update action to use javascript extractor
1 parent e2fb677 commit e5eb856

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/action/dist/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28604,7 +28604,7 @@ const toolcache = __importStar(__nccwpck_require__(7784));
2860428604
const toolrunner = __importStar(__nccwpck_require__(8159));
2860528605
async function newCodeQL() {
2860628606
return {
28607-
language: "yaml",
28607+
language: "javascript",
2860828608
path: await findCodeQL(),
2860928609
pack: "githubsecuritylab/actions-queries",
2861028610
suite: `codeql-suites/${core.getInput("suite") || "actions-code-scanning"}.qls`,
@@ -28771,16 +28771,16 @@ async function run() {
2877128771
var codeql = await cql.newCodeQL();
2877228772
core.debug(`CodeQL CLI found at '${codeql.path}'`);
2877328773
await cql.runCommand(codeql, ["version", "--format", "terse"]);
28774-
// check yaml support
28774+
// check javascript support
2877528775
var languages = await cql.runCommandJson(codeql, [
2877628776
"resolve",
2877728777
"languages",
2877828778
"--format",
2877928779
"json",
2878028780
]);
28781-
if (!languages.hasOwnProperty("yaml")) {
28782-
core.setFailed("CodeQL Yaml extractor not installed");
28783-
throw new Error("CodeQL Yaml extractor not installed");
28781+
if (!languages.hasOwnProperty("javascript")) {
28782+
core.setFailed("CodeQL javascript extractor not installed");
28783+
throw new Error("CodeQL javascript extractor not installed");
2878428784
}
2878528785
// download pack
2878628786
core.info(`Downloading CodeQL Actions pack '${codeql.pack}'`);

.github/action/src/codeql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export interface CodeQLConfig {
2424

2525
export async function newCodeQL(): Promise<CodeQLConfig> {
2626
return {
27-
language: "yaml",
27+
language: "javascript",
2828
path: await findCodeQL(),
2929
pack: "githubsecuritylab/actions-queries",
3030
suite: `codeql-suites/${core.getInput("suite") || "actions-code-scanning"}.qls`,

.github/action/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ export async function run(): Promise<void> {
1515

1616
await cql.runCommand(codeql, ["version", "--format", "terse"]);
1717

18-
// check yaml support
18+
// check javascript support
1919
var languages = await cql.runCommandJson(codeql, [
2020
"resolve",
2121
"languages",
2222
"--format",
2323
"json",
2424
]);
2525

26-
if (!languages.hasOwnProperty("yaml")) {
27-
core.setFailed("CodeQL Yaml extractor not installed");
28-
throw new Error("CodeQL Yaml extractor not installed");
26+
if (!languages.hasOwnProperty("javascript")) {
27+
core.setFailed("CodeQL javascript extractor not installed");
28+
throw new Error("CodeQL javascript extractor not installed");
2929
}
3030

3131
// download pack

0 commit comments

Comments
 (0)