Skip to content

Commit 3036b15

Browse files
authored
Merge branch 'main' into henrymercer/check-query-ids
2 parents 5674251 + 280bb68 commit 3036b15

File tree

682 files changed

+14106
-4187
lines changed

Some content is hidden

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

682 files changed

+14106
-4187
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Find Latest CodeQL Bundle
2+
description: Finds the URL of the latest released version of the CodeQL bundle.
3+
outputs:
4+
url:
5+
description: The download URL of the latest CodeQL bundle release
6+
value: ${{ steps.find-latest.outputs.url }}
7+
runs:
8+
using: composite
9+
steps:
10+
- name: Find Latest Release
11+
id: find-latest
12+
shell: pwsh
13+
run: |
14+
$Latest = gh release list --repo github/codeql-action --exclude-drafts --limit 1000 |
15+
ForEach-Object { $C = $_ -split "`t"; return @{ type = $C[1]; tag = $C[2]; } } |
16+
Where-Object { $_.type -eq 'Latest' }
17+
18+
$Tag = $Latest.tag
19+
if ($Tag -eq '') {
20+
throw 'Failed to find latest bundle release.'
21+
}
22+
23+
Write-Output "Latest bundle tag is '${Tag}'."
24+
"url=https://github.com/github/codeql-action/releases/download/${Tag}/codeql-bundle-linux64.tar.gz" >> $env:GITHUB_OUTPUT
25+
env:
26+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/mad_modelDiff.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ jobs:
6161
DATABASE=$2
6262
cd codeql-$QL_VARIANT
6363
SHORTNAME=`basename $DATABASE`
64-
python java/ql/src/utils/model-generator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE $MODELS/${SHORTNAME}.qll
65-
mv $MODELS/${SHORTNAME}.qll $MODELS/${SHORTNAME}Generated_${QL_VARIANT}.qll
64+
python java/ql/src/utils/model-generator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE ${SHORTNAME}.temp.model.yml
65+
mv java/ql/lib/ext/generated/${SHORTNAME}.temp.model.yml $MODELS/${SHORTNAME}Generated_${QL_VARIANT}.model.yml
6666
cd ..
6767
}
6868
@@ -85,16 +85,16 @@ jobs:
8585
set -x
8686
MODELS=`pwd`/tmp-models
8787
ls -1 tmp-models/
88-
for m in $MODELS/*_main.qll ; do
88+
for m in $MODELS/*_main.model.yml ; do
8989
t="${m/main/"pr"}"
9090
basename=`basename $m`
91-
name="diff_${basename/_main.qll/""}"
91+
name="diff_${basename/_main.model.yml/""}"
9292
(diff -w -u $m $t | diff2html -i stdin -F $MODELS/$name.html) || true
9393
done
9494
- uses: actions/upload-artifact@v3
9595
with:
9696
name: models
97-
path: tmp-models/*.qll
97+
path: tmp-models/*.model.yml
9898
retention-days: 20
9999
- uses: actions/upload-artifact@v3
100100
with:

.github/workflows/mad_regenerate-models.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
java/ql/src/utils/model-generator/RegenerateModels.py "${SLUG}" dbs/${SHORTNAME}
5454
- name: Stage changes
5555
run: |
56-
find java -name "*.qll" -print0 | xargs -0 git add
56+
find java -name "*.model.yml" -print0 | xargs -0 git add
5757
git status
5858
git diff --cached > models.patch
5959
- uses: actions/upload-artifact@v3

.github/workflows/ql-for-ql-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ jobs:
2222
steps:
2323
### Build the queries ###
2424
- uses: actions/checkout@v3
25+
- name: Find latest bundle
26+
id: find-latest-bundle
27+
uses: ./.github/actions/find-latest-bundle
2528
- name: Find codeql
2629
id: find-codeql
2730
uses: github/codeql-action/init@77a8d2d10c0b403a8b4aadbd223dc489ecd22683
2831
with:
2932
languages: javascript # does not matter
33+
tools: ${{ steps.find-latest-bundle.outputs.url }}
3034
- name: Get CodeQL version
3135
id: get-codeql-version
3236
run: |
@@ -138,6 +142,7 @@ jobs:
138142
languages: ql
139143
db-location: ${{ runner.temp }}/db
140144
config-file: ./ql-for-ql-config.yml
145+
tools: ${{ steps.find-latest-bundle.outputs.url }}
141146
- name: Move pack cache
142147
run: |
143148
cp -r ${PACK}/.cache ql/ql/src/.cache

config/identical-files.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,10 @@
470470
"javascript/ql/src/Comments/CommentedOutCodeReferences.inc.qhelp",
471471
"python/ql/src/Lexical/CommentedOutCodeReferences.inc.qhelp"
472472
],
473+
"ThreadResourceAbuse qhelp": [
474+
"java/ql/src/experimental/Security/CWE/CWE-400/LocalThreadResourceAbuse.qhelp",
475+
"java/ql/src/experimental/Security/CWE/CWE-400/ThreadResourceAbuse.qhelp"
476+
],
473477
"IDE Contextual Queries": [
474478
"cpp/ql/lib/IDEContextual.qll",
475479
"csharp/ql/lib/IDEContextual.qll",
@@ -581,8 +585,8 @@
581585
"javascript/ql/lib/semmle/javascript/security/IncompleteMultiCharacterSanitizationQuery.qll",
582586
"ruby/ql/lib/codeql/ruby/security/IncompleteMultiCharacterSanitizationQuery.qll"
583587
],
584-
"ThreadResourceAbuse help": [
585-
"java/ql/src/experimental/Security/CWE/CWE-400/LocalThreadResourceAbuse.qhelp",
586-
"java/ql/src/experimental/Security/CWE/CWE-400/ThreadResourceAbuse.qhelp"
588+
"EncryptionKeySizes Python/Java": [
589+
"python/ql/lib/semmle/python/security/internal/EncryptionKeySizes.qll",
590+
"java/ql/lib/semmle/code/java/security/internal/EncryptionKeySizes.qll"
587591
]
588592
}

cpp/ql/lib/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.5
2+
3+
No user-facing changes.
4+
15
## 0.4.4
26

37
No user-facing changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
category: deprecated
3+
---
4+
5+
* Deprecated `semmle.code.cpp.ir.dataflow.DefaultTaintTracking`. Use `semmle.code.cpp.ir.dataflow.TaintTracking`.
6+
* Deprecated `semmle.code.cpp.security.TaintTrackingImpl`. Use `semmle.code.cpp.ir.dataflow.TaintTracking`.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: minorAnalysis
3+
---
4+
* The `secure_getenv` and `_wgetenv` functions are now recognized as local flow sources.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.4.5
2+
3+
No user-facing changes.

cpp/ql/lib/codeql-pack.release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
lastReleaseVersion: 0.4.4
2+
lastReleaseVersion: 0.4.5

0 commit comments

Comments
 (0)