Skip to content

Commit 48f938e

Browse files
authored
Merge pull request #10500 from github/aeisenberg/query-spec-path
Update section on query specifiers
2 parents 0cae6de + 6fb3574 commit 48f938e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ To analyze your database using the `cpp-security-and-quality.qls` query suite fr
214214
codeql database analyze --format=sarif-latest --output=results <db> \
215215
'codeql/cpp-queries@~0.0.3:codeql-suites/cpp-security-and-quality.qls'
216216

217+
If you need to reference a query file, directory, or suite whose path contains a literal `@` or `:`, you can prefix the query specification with `path:` like so::
218+
219+
codeql database analyze --format=sarif-latest --output=results <db> \
220+
path:C:/Users/ci/workspace@2/security/query.ql
221+
217222
For more information about CodeQL packs, see :doc:`About CodeQL Packs <about-codeql-packs>`.
218223

219224
Running query suites

0 commit comments

Comments
 (0)