mirror of
https://github.com/github/codeql-action.git
synced 2026-08-05 04:57:19 -05:00
Update README
This commit is contained in:
@@ -79,6 +79,8 @@ The CodeQL action should be run on `push` events, and on a `schedule`. `Push` ev
|
|||||||
### Configuration
|
### Configuration
|
||||||
You may optionally specify additional queries for CodeQL to execute by using a config file. The queries must belong to a [QL pack](https://help.semmle.com/codeql/codeql-cli/reference/qlpack-overview.html) and can be in your repository or any public repository. You can choose a single .ql file, a folder containing multiple .ql files, a .qls [query suite](https://help.semmle.com/codeql/codeql-cli/procedures/query-suites.html) file, or any combination of the above. To use queries from other repositories use the same syntax as when [using an action](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses).
|
You may optionally specify additional queries for CodeQL to execute by using a config file. The queries must belong to a [QL pack](https://help.semmle.com/codeql/codeql-cli/reference/qlpack-overview.html) and can be in your repository or any public repository. You can choose a single .ql file, a folder containing multiple .ql files, a .qls [query suite](https://help.semmle.com/codeql/codeql-cli/procedures/query-suites.html) file, or any combination of the above. To use queries from other repositories use the same syntax as when [using an action](https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses).
|
||||||
|
|
||||||
|
You can disable the default queries using `ignore-default-queries: true`.
|
||||||
|
|
||||||
You can choose to ignore some files or folders from the analysis, or include additional files/folders for analysis. This *only* works for Javascript and Python analysis.
|
You can choose to ignore some files or folders from the analysis, or include additional files/folders for analysis. This *only* works for Javascript and Python analysis.
|
||||||
Identifying potential files for extraction:
|
Identifying potential files for extraction:
|
||||||
- Scans each folder that's defined as `paths` in turn, traversing subfolders and looking for relevant files.
|
- Scans each folder that's defined as `paths` in turn, traversing subfolders and looking for relevant files.
|
||||||
@@ -98,6 +100,8 @@ A config file looks like this:
|
|||||||
```yaml
|
```yaml
|
||||||
name: "My CodeQL config"
|
name: "My CodeQL config"
|
||||||
|
|
||||||
|
ignore-default-queries: true
|
||||||
|
|
||||||
queries:
|
queries:
|
||||||
- name: In-repo queries (Runs the queries located in the my-queries folder of the repo)
|
- name: In-repo queries (Runs the queries located in the my-queries folder of the repo)
|
||||||
uses: ./my-queries
|
uses: ./my-queries
|
||||||
|
|||||||
Reference in New Issue
Block a user