Skip to content

Commit 0541576

Browse files
committed
Merge remote-tracking branch 'origin/main' into nickrolfe/regexp_g_anchor
2 parents df6ba43 + f10f053 commit 0541576

File tree

586 files changed

+44826
-23014
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

586 files changed

+44826
-23014
lines changed

.codeqlmanifest.json

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
{ "provide": [ "ruby/.codeqlmanifest.json",
2-
"*/ql/src/qlpack.yml",
3-
"*/ql/lib/qlpack.yml",
4-
"*/ql/test/qlpack.yml",
5-
"cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml",
6-
"*/ql/examples/qlpack.yml",
7-
"*/upgrades/qlpack.yml",
8-
"javascript/ql/experimental/adaptivethreatmodeling/lib/qlpack.yml",
9-
"javascript/ql/experimental/adaptivethreatmodeling/src/qlpack.yml",
10-
"misc/legacy-support/*/qlpack.yml",
11-
"misc/suite-helpers/qlpack.yml" ] }
1+
{
2+
"provide": [
3+
"*/ql/src/qlpack.yml",
4+
"*/ql/lib/qlpack.yml",
5+
"*/ql/test/qlpack.yml",
6+
"*/ql/examples/qlpack.yml",
7+
"*/upgrades/qlpack.yml",
8+
"cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml",
9+
"javascript/ql/experimental/adaptivethreatmodeling/lib/qlpack.yml",
10+
"javascript/ql/experimental/adaptivethreatmodeling/src/qlpack.yml",
11+
"misc/legacy-support/*/qlpack.yml",
12+
"misc/suite-helpers/qlpack.yml",
13+
"ruby/ql/consistency-queries/qlpack.yml",
14+
"ruby/extractor-pack/codeql-extractor.yml"
15+
]
16+
}

.github/workflows/ruby-dataset-measure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
repo: [rails/rails, discourse/discourse, spree/spree]
27+
repo: [rails/rails, discourse/discourse, spree/spree, ruby/ruby]
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@v2
@@ -41,7 +41,7 @@ jobs:
4141
- name: Create database
4242
run: |
4343
codeql database create \
44-
--search-path "${{ github.workspace }}/ruby" \
44+
--search-path "${{ github.workspace }}/ruby/extractor-pack" \
4545
--threads 4 \
4646
--language ruby --source-root "${{ github.workspace }}/repo" \
4747
"${{ runner.temp }}/database"

.github/workflows/ruby-qltest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
- uses: ./ruby/actions/create-extractor-pack
3333
- name: Run QL tests
3434
run: |
35-
codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path "${{ github.workspace }}/ruby" --additional-packs "${{ github.workspace }}" --consistency-queries ql/consistency-queries ql/test
35+
codeql test run --search-path "${{ github.workspace }}/ruby/extractor-pack" --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test
3636
env:
3737
GITHUB_TOKEN: ${{ github.token }}
3838
- name: Check QL formatting
3939
run: find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql query format --check-only
4040
- name: Check QL compilation
4141
run: |
42-
codeql query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}/ruby" --additional-packs "${{ github.workspace }}" "ql/src" "ql/examples"
42+
codeql query compile --check-only --threads=4 --warnings=error "ql/src" "ql/examples"
4343
env:
4444
GITHUB_TOKEN: ${{ github.token }}
4545
- name: Check DB upgrade scripts

config/identical-files.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,10 @@
460460
"javascript/ql/lib/semmle/javascript/security/internal/SensitiveDataHeuristics.qll",
461461
"python/ql/lib/semmle/python/security/internal/SensitiveDataHeuristics.qll"
462462
],
463-
"ReDoS Util Python/JS": [
463+
"ReDoS Util Python/JS/Ruby": [
464464
"javascript/ql/lib/semmle/javascript/security/performance/ReDoSUtil.qll",
465-
"python/ql/lib/semmle/python/security/performance/ReDoSUtil.qll"
465+
"python/ql/lib/semmle/python/security/performance/ReDoSUtil.qll",
466+
"ruby/ql/lib/codeql/ruby/security/performance/ReDoSUtil.qll"
466467
],
467468
"ReDoS Exponential Python/JS": [
468469
"javascript/ql/lib/semmle/javascript/security/performance/ExponentialBackTracking.qll",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
* A new query `cpp/certificate-not-checked` has been added for C/C++. The query flags unsafe use of OpenSSL and similar libraries.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lgtm,codescanning
2+
* A new query `cpp/certificate-result-conflation` has been added for C/C++. The query flags unsafe use of OpenSSL and similar libraries.

0 commit comments

Comments
 (0)