mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Merge pull request #36 from github/readme-build-dbs
Add README instructions for building databases
This commit is contained in:
13
README.md
13
README.md
@@ -20,3 +20,16 @@ cargo run --release -p ruby-generator
|
||||
# Then auto-format the QL library
|
||||
codeql query format -i ql/src/codeql_ruby/ast.qll
|
||||
```
|
||||
|
||||
## Building a CodeQL database for a Ruby program
|
||||
|
||||
First, get an extractor pack. There are two options:
|
||||
|
||||
1. Either download the latest `codeql-ruby-pack` from Actions and unzip it twice, or
|
||||
2. Run `./create-extractor-pack.sh` (Linux/Mac) or `.\create-extractor-pack.ps1` (Windows PowerShell) and the pack will be created in the `extractor-pack` directory.
|
||||
|
||||
Then run
|
||||
|
||||
```bash
|
||||
codeql database create <database-path> -l ruby -s <project-source-path> --search-path <extractor-pack-path>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user