Skip to content

Commit 43bb439

Browse files
committed
Add version info for running subset of queries
1 parent 1ec838e commit 43bb439

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/codeql/codeql-cli/analyzing-databases-with-the-codeql-cli.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ For further information about default suites, see ":ref:`Publishing and using Co
138138
Running a subset of queries in a CodeQL pack
139139
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140140

141-
Additionally, you can include a path at the end of a pack specification to run a subset of queries inside the pack. This applies to any command that locates or runs queries within a pack.
141+
Additionally, CodeQL CLI v2.10.0 or later, you can include a path at the end of a pack specification to run a subset of queries inside the pack. This applies to any command that locates or runs queries within a pack.
142142

143143
The complete way to specify a set of queries is in the form ``scope/name@range:path``, where:
144144

@@ -174,7 +174,7 @@ To analyze your database using the `cpp-security-and-quality.qls` query suite fr
174174

175175
codeql database analyze --format=sarif-latest --output=results <db> \
176176
'codeql/cpp-queries@~0.0.3:codeql-suites/cpp-security-and-quality.qls'
177-
177+
178178
For more information about CodeQL packs, see :doc:`About CodeQL Packs <about-codeql-packs>`.
179179

180180
Running query suites
@@ -263,7 +263,7 @@ you can include the query help for your custom queries in SARIF files generated
263263
After uploading the SARIF file to GitHub, the query help is shown in the code scanning UI for any
264264
alerts generated by the custom queries.
265265

266-
From CodeQL CLI 2.7.1 onwards, you can include markdown-rendered query help in SARIF files
266+
From CodeQL CLI v2.7.1 onwards, you can include markdown-rendered query help in SARIF files
267267
by providing the ``--sarif-add-query-help`` option when running
268268
``codeql database analyze``.
269269
For more information, see `Configuring CodeQL CLI in your CI system <https://docs.github.com/en/code-security/code-scanning/using-codeql-code-scanning-with-your-existing-ci-system/configuring-codeql-cli-in-your-ci-system#analyzing-a-codeql-database>`__

0 commit comments

Comments
 (0)