Skip to content

Commit d011269

Browse files
author
Alvaro Muñoz
authored
Merge pull request #32 from GitHubSecurityLab/choose-suite
2 parents 8e5eeb2 + 53209a2 commit d011269

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/action/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28607,7 +28607,7 @@ async function newCodeQL() {
2860728607
language: "yaml",
2860828608
path: await findCodeQL(),
2860928609
pack: "githubsecuritylab/actions-queries",
28610-
suite: "codeql-suites/actions-code-scanning.qls",
28610+
suite: `codeql-suites/${core.getInput("suite") || "actions-code-scanning"}.qls`,
2861128611
source_root: core.getInput("source-root"),
2861228612
output: core.getInput("sarif"),
2861328613
};

.github/action/src/codeql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export async function newCodeQL(): Promise<CodeQLConfig> {
2525
language: "yaml",
2626
path: await findCodeQL(),
2727
pack: "githubsecuritylab/actions-queries",
28-
suite: "codeql-suites/actions-code-scanning.qls",
28+
suite: `codeql-suites/${core.getInput("suite") || "actions-code-scanning"}.qls`,
2929
source_root: core.getInput("source-root"),
3030
output: core.getInput("sarif"),
3131
};

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ inputs:
1414
description: "SARIF File Output"
1515
default: "codeql-actions.sarif"
1616

17+
suite:
18+
description: "CodeQL Suite to run"
19+
default: "actions-code-scanning"
20+
1721
runs:
1822
using: 'composite'
1923
steps:

0 commit comments

Comments
 (0)