Skip to content

Commit c725c44

Browse files
authored
Merge branch 'main' into jcogs33/update-paramsString
2 parents faae811 + 9ebe59d commit c725c44

File tree

307 files changed

+2488
-632
lines changed

Some content is hidden

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

307 files changed

+2488
-632
lines changed

.github/workflows/mad_modelDiff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
branches:
1212
- main
1313
paths:
14-
- "java/ql/src/utils/model-generator/**/*.*"
14+
- "java/ql/src/utils/modelgenerator/**/*.*"
1515
- ".github/workflows/mad_modelDiff.yml"
1616

1717
permissions:
@@ -61,7 +61,7 @@ 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 ${SHORTNAME}.temp.model.yml
64+
python java/ql/src/utils/modelgenerator/GenerateFlowModel.py --with-summaries --with-sinks $DATABASE ${SHORTNAME}.temp.model.yml
6565
mv java/ql/lib/ext/generated/${SHORTNAME}.temp.model.yml $MODELS/${SHORTNAME}Generated_${QL_VARIANT}.model.yml
6666
cd ..
6767
}

.github/workflows/mad_regenerate-models.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
SLUG: ${{ matrix.slug }}
5151
run: |
5252
SHORTNAME=${SLUG//[^a-zA-Z0-9_]/}
53-
java/ql/src/utils/model-generator/RegenerateModels.py "${SLUG}" dbs/${SHORTNAME}
53+
java/ql/src/utils/modelgenerator/RegenerateModels.py "${SLUG}" dbs/${SHORTNAME}
5454
- name: Stage changes
5555
run: |
5656
find java -name "*.model.yml" -print0 | xargs -0 git add

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: ./.github/actions/find-latest-bundle
2828
- name: Find codeql
2929
id: find-codeql
30-
uses: github/codeql-action/init@77a8d2d10c0b403a8b4aadbd223dc489ecd22683
30+
uses: github/codeql-action/init@45955cb1830b640e2c1603ad72ad542a49d47b96
3131
with:
3232
languages: javascript # does not matter
3333
tools: ${{ steps.find-latest-bundle.outputs.url }}
@@ -137,20 +137,20 @@ jobs:
137137
env:
138138
CONF: ./ql-for-ql-config.yml
139139
- name: Initialize CodeQL
140-
uses: github/codeql-action/init@77a8d2d10c0b403a8b4aadbd223dc489ecd22683
140+
uses: github/codeql-action/init@45955cb1830b640e2c1603ad72ad542a49d47b96
141141
with:
142142
languages: ql
143143
db-location: ${{ runner.temp }}/db
144144
config-file: ./ql-for-ql-config.yml
145145
tools: ${{ steps.find-latest-bundle.outputs.url }}
146-
- name: Move pack cache
146+
- name: Move pack queries
147147
run: |
148-
cp -r ${PACK}/.cache ql/ql/src/.cache
148+
cp -r ${PACK}/queries ql/ql/src
149149
env:
150150
PACK: ${{ runner.temp }}/pack
151151

152152
- name: Perform CodeQL Analysis
153-
uses: github/codeql-action/analyze@77a8d2d10c0b403a8b4aadbd223dc489ecd22683
153+
uses: github/codeql-action/analyze@45955cb1830b640e2c1603ad72ad542a49d47b96
154154
with:
155155
category: "ql-for-ql"
156156
- name: Copy sarif file to CWD

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
- name: Find codeql
2727
id: find-codeql
28-
uses: github/codeql-action/init@77a8d2d10c0b403a8b4aadbd223dc489ecd22683
28+
uses: github/codeql-action/init@45955cb1830b640e2c1603ad72ad542a49d47b96
2929
with:
3030
languages: javascript # does not matter
3131
- uses: actions/cache@v3

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/checkout@v3
2323
- name: Find codeql
2424
id: find-codeql
25-
uses: github/codeql-action/init@77a8d2d10c0b403a8b4aadbd223dc489ecd22683
25+
uses: github/codeql-action/init@45955cb1830b640e2c1603ad72ad542a49d47b96
2626
with:
2727
languages: javascript # does not matter
2828
- uses: actions/cache@v3

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
- description: Extended and experimental security queries for C and C++
2+
- queries: .
3+
- apply: security-experimental-selectors.yml
4+
from: codeql/suite-helpers
5+
- apply: codeql-suites/exclude-slow-queries.yml
6+
# Excluding problematically slow experimental queries
7+
- exclude:
8+
query path:
9+
- experimental/Security/CWE/CWE-266/IncorrectPrivilegeAssignment.ql

cpp/ql/src/experimental/Likely Bugs/ArrayAccessProductFlow.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* @id cpp/off-by-one-array-access
77
* @tags reliability
88
* security
9+
* experimental
910
*/
1011

1112
import cpp

cpp/ql/src/experimental/Likely Bugs/OverrunWriteProductFlow.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @id cpp/overrun-write
88
* @tags reliability
99
* security
10+
* experimental
1011
* external/cwe/cwe-119
1112
* external/cwe/cwe-131
1213
*/

cpp/ql/src/experimental/Likely Bugs/RedundantNullCheckParam.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @tags reliability
1010
* security
1111
* external/cwe/cwe-476
12+
* experimental
1213
*/
1314

1415
import cpp

0 commit comments

Comments
 (0)