Skip to content

Commit 2809bdc

Browse files
committed
ignore-default-queries -> disable-default-queries
1 parent 32ced8c commit 2809bdc

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The CodeQL action should be run on `push` events, and on a `schedule`. `Push` ev
7979
### Configuration
8080
You may optionally specify additional queries for CodeQL to execute by using a config file. The queries must belong to a [QL pack](https://help.semmle.com/codeql/codeql-cli/reference/qlpack-overview.html) and can be in your repository or any public repository. You can choose a single .ql file, a folder containing multiple .ql files, a .qls [query suite](https://help.semmle.com/codeql/codeql-cli/procedures/query-suites.html) file, or any combination of the above. To use queries from other repositories use the same syntax as when [using an action](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses).
8181

82-
You can disable the default queries using `ignore-default-queries: true`.
82+
You can disable the default queries using `disable-default-queries: true`.
8383

8484
You can choose to ignore some files or folders from the analysis, or include additional files/folders for analysis. This *only* works for Javascript and Python analysis.
8585
Identifying potential files for extraction:

lib/config-utils.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/finalize-db.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config-utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class ExternalQuery {
1717

1818
export class Config {
1919
public name = "";
20-
public ignoreDefaultQueries = false;
20+
public disableDefaultQueries = false;
2121
public additionalQueries: string[] = [];
2222
public externalQueries: ExternalQuery[] = [];
2323
public pathsIgnore: string[] = [];
@@ -82,8 +82,8 @@ function initConfig(): Config {
8282
config.name = parsedYAML.name;
8383
}
8484

85-
if (parsedYAML['ignore-default-queries'] && typeof parsedYAML['ignore-default-queries'] === "boolean") {
86-
config.ignoreDefaultQueries = parsedYAML['ignore-default-queries'];
85+
if (parsedYAML['disable-default-queries'] && typeof parsedYAML['disable-default-queries'] === "boolean") {
86+
config.disableDefaultQueries = parsedYAML['disable-default-queries'];
8787
}
8888

8989
const queries = parsedYAML.queries;

src/finalize-db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function runQueries(codeqlCmd: string, databaseFolder: string, sarifFolder
103103
core.startGroup('Analyzing ' + database);
104104

105105
const queries: string[] = [];
106-
if (!config.ignoreDefaultQueries) {
106+
if (!config.disableDefaultQueries) {
107107
queries.push(database + '-code-scanning.qls');
108108
}
109109
queries.push(...queriesPerLanguage[database]);

0 commit comments

Comments
 (0)