1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Files
docs/content/code-security/code-scanning/troubleshooting-code-scanning/not-recognized.md
Ben Ahmady a4913b5935 New structure for troubleshooting docs (#37635)
Co-authored-by: Felicity Chapman <felicitymay@github.com>
2023-06-26 17:06:27 +00:00

22 lines
1.3 KiB
Markdown

---
title: 'Error: "is not a .ql file, .qls file, a directory, or a query pack specification"'
shortTitle: 'Not recognized'
intro: '{% data variables.product.prodname_codeql %} was unable to locate one of the queries or sets of queries that are specified for analysis.'
allowTitleToDifferFromFilename: true
product: '{% data reusables.gated-features.code-scanning %}'
versions:
fpt: '*'
ghes: '*'
ghae: '*'
ghec: '*'
---
{% data reusables.code-scanning.beta %}
You will see `Error: "is not a .ql file, .qls file, a directory, or a query pack specification"` if {% data variables.product.prodname_codeql %} is unable to find the named query, query suite, or query pack at the location requested in the workflow. There are two common reasons for this error.
- There is a typo in the workflow.
- A resource the workflow refers to by path was renamed, deleted, or moved to a new location.
After verifying the location of the resource, you can update the workflow to specify the correct location. {% ifversion ghes < 3.6 or ghae < 3.6 %}If you run additional queries in Go analysis, you may have been affected by the relocation of the source files. For more information, see [Relocation announcement: `github/codeql-go` moving into `github/codeql`](https://github.com/github/codeql-go/issues/741) in the github/codeql-go repository.{% endif %}