You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,23 @@ Use the `config-file` parameter of the `init` action to enable the configuration
98
98
config-file: ./.github/codeql/codeql-config.yml
99
99
```
100
100
101
-
The configuration file must be located within the local repository. For information on how to write a configuration file, see "[Using a custom configuration](https://help.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#using-a-custom-configuration)."
101
+
The configuration file must be located within the local repository. For information on how to write a configuration file, see "[Using a custom configuration file](https://help.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#using-a-custom-configuration-file)."
102
+
103
+
If you only want to customise the queries used, you can specify them in your workflow instead of creating a config file, using the `queries` property of the `init` action:
104
+
105
+
```yaml
106
+
- uses: github/codeql-action/init@v1
107
+
with:
108
+
queries: <local-or-remote-query>,<another-query>
109
+
```
110
+
111
+
By default, this will override any queries specified in a config file. If you wish to use both sets of queries, prefix the list of queries in the workflow with `+`:
Copy file name to clipboardExpand all lines: init/action.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ inputs:
17
17
description: Path of the config file to use
18
18
required: false
19
19
queries:
20
-
description: Comma-separated list of additional queries to run. By default, this overrides the same setting in a configuration file
20
+
description: Comma-separated list of additional queries to run. By default, this overrides the same setting in a configuration file; prefix with "+" to use both sets of queries.
0 commit comments