Skip to content

Commit a9057a7

Browse files
authored
Add suite input
1 parent 8e5eeb2 commit a9057a7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.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")}.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)