Merge pull request #10500 from github/aeisenberg/query-spec-path

Update section on query specifiers
This commit is contained in:
Andrew Eisenberg
2022-09-21 13:02:30 -07:00
committed by GitHub

View File

@@ -214,6 +214,11 @@ To analyze your database using the `cpp-security-and-quality.qls` query suite fr
codeql database analyze --format=sarif-latest --output=results <db> \
'codeql/cpp-queries@~0.0.3:codeql-suites/cpp-security-and-quality.qls'
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::
codeql database analyze --format=sarif-latest --output=results <db> \
path:C:/Users/ci/workspace@2/security/query.ql
For more information about CodeQL packs, see :doc:`About CodeQL Packs <about-codeql-packs>`.
Running query suites