Merge pull request #375 from github/rc/3.3

Merge rc/3.3 into main
This commit is contained in:
Arthur Baars
2021-10-21 18:16:57 +02:00
committed by GitHub
7 changed files with 26 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
{ "provide": [ "*/ql/src/qlpack.yml",
{ "provide": [ "ruby/.codeqlmanifest.json",
"*/ql/src/qlpack.yml",
"*/ql/lib/qlpack.yml",
"*/ql/test/qlpack.yml",
"cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml",

View File

@@ -33,3 +33,4 @@ Note that the CWE coverage includes both "`supported queries <https://github.com
java-cwe
javascript-cwe
python-cwe
ruby-cwe

View File

@@ -9,6 +9,7 @@ View the query help for the queries included in the ``code-scanning``, ``securit
- :doc:`CodeQL query help for Java <java>`
- :doc:`CodeQL query help for JavaScript <javascript>`
- :doc:`CodeQL query help for Python <python>`
- :doc:`CodeQL query help for Ruby <ruby>`
.. pull-quote:: Information
@@ -33,5 +34,6 @@ For a full list of the CWEs covered by these queries, see ":doc:`CodeQL CWE cove
java
javascript
python
ruby
codeql-cwe-coverage

View File

@@ -0,0 +1,8 @@
# CWE coverage for Ruby
An overview of CWE coverage for Ruby in the latest release of CodeQL.
## Overview
<!-- autogenerated CWE coverage table will be added below -->

View File

@@ -0,0 +1,8 @@
CodeQL query help for Ruby
============================
.. include:: ../reusables/query-help-overview.rst
For shorter queries that you can use as building blocks when writing your own queries, see the `example queries in the CodeQL repository <https://github.com/github/codeql/tree/main/ruby/ql/examples>`__.
.. include:: toc-ruby.rst

View File

@@ -79,9 +79,12 @@ fn main() -> std::io::Result<()> {
.with_target(false)
.without_time()
.with_level(true)
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env())
.with_env_filter(
tracing_subscriber::EnvFilter::try_from_default_env()
.unwrap_or(tracing_subscriber::EnvFilter::new("ruby_extractor=warn")),
)
.init();
tracing::warn!("Support for Ruby is currently in Beta: https://git.io/codeql-language-support");
let num_threads = num_codeql_threads();
tracing::info!(
"Using {} {}",