Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
7e6ef7a
Ruby: ApiGraphs: use private imports
aibaars Feb 24, 2022
980f822
Post-release preparation for codeql-cli-2.8.2
invalid-email-address Mar 1, 2022
be11e4f
Apply suggestions from code review
ihsinme Mar 1, 2022
853857b
Apply suggestions from code review
yoff Mar 1, 2022
1f01d80
Merge pull request #8225 from jketema/ir-structured-bindings-translation
MathiasVP Mar 1, 2022
f3f2c31
Docs: Apply suggestions from code review
RasmusWL Mar 1, 2022
ce3ee65
python: remove getTree for now
yoff Mar 1, 2022
7522a2d
Merge pull request #7832 from aschackmull/java/modelgen
michaelnebel Mar 1, 2022
51482e4
Merge pull request #8295 from erik-krogh/ts46
erik-krogh Mar 1, 2022
bdd07de
improve performance of `getTestFile` by finding possible test files f…
erik-krogh Mar 1, 2022
1b5c739
restrict the size of the `getASubexpressionWithinQuery` predicate, an…
erik-krogh Mar 1, 2022
dfc74d7
fix duplicate words in qldoc
erik-krogh Mar 1, 2022
eece222
Merge pull request #8252 from github/RasmusWL/debugging-dataflow-impr…
RasmusWL Mar 1, 2022
94cb5c2
Merge pull request #8296 from github/post-release-prep/codeql-cli-2.8.2
tamasvajk Mar 1, 2022
8312fc6
C#: Use groups and rename to trap.compression instead. Various change…
michaelnebel Mar 1, 2022
6b324fb
C++: Filter out InheritanceConversionInstructions with multiple base …
MathiasVP Mar 1, 2022
93bd380
C#/C++: Sync identical files.
MathiasVP Mar 1, 2022
b6faa20
C++: Remove redundant cast.
MathiasVP Mar 1, 2022
52dbf2c
C#/C++: Sync identical files.
MathiasVP Mar 1, 2022
5402b02
Merge branch 'main' into cwe497
geoffw0 Mar 1, 2022
1240c11
Ruby: parse some string literals as regex
aibaars Feb 28, 2022
a51f17e
Ruby: introduce RegExpPatternSource
aibaars Feb 28, 2022
61fa3ba
Add change note
aibaars Feb 28, 2022
b2745d4
Ruby: update ReDoS.expected
aibaars Mar 1, 2022
ea8187c
Ruby: .github/workflows/ruby-qltest.yml: turn off fail-fast
aibaars Mar 1, 2022
92fa007
Update python/ql/lib/semmle/python/pointsto/MRO.qll
hvitved Mar 1, 2022
3bb17be
python: add concept and library tests
yoff Mar 1, 2022
f55d7d6
python: model XPathEvaluator
yoff Mar 1, 2022
ef4d1de
check-qhelp: call super init in IncludeHandler
redsun82 Mar 1, 2022
c81f266
Merge pull request #8300 from redsun82/check-qhelp
redsun82 Mar 1, 2022
2962b12
Merge branch 'main' into cwe497
geoffw0 Mar 1, 2022
4acae4a
C++: Remove redundant conjunct.
MathiasVP Mar 1, 2022
155502c
C#/C++: Sync identical files.
MathiasVP Mar 1, 2022
8460ab4
Merge pull request #7549 from hvitved/python/points-to-perf
tausbn Mar 1, 2022
169f655
Merge pull request #8292 from aibaars/api-graphs-private
aibaars Mar 1, 2022
37dac18
Ruby: String.try_convert isn't value-preserving
hmac Mar 2, 2022
f5267ba
Update DangerousUseOfTransformationAfterOperation.qhelp
ihsinme Mar 2, 2022
9e76260
Update DangerousUseOfTransformationAfterOperation.ql
ihsinme Mar 2, 2022
8179e24
C#: Delete the existing structural comparison implementation.
michaelnebel Feb 15, 2022
cc5d565
C#: Add type Global value number kinds for control flow elements.
michaelnebel Feb 15, 2022
8bd12b2
C#: Add type(s) for representing global value numbers.
michaelnebel Feb 15, 2022
87cb92a
C#: Add predicates for restricting the Gvn type and the relation betw…
michaelnebel Feb 15, 2022
16270cf
C#: Add configuration class to allow defining a candidate pairs of co…
michaelnebel Feb 15, 2022
4499551
C#: Add a verbatim copy of the structural comparison for internal use…
michaelnebel Feb 15, 2022
52952e9
C#: Example source code with structurally same expressions and statem…
michaelnebel Feb 15, 2022
7e25b14
C#: Add test cases for finding structurally equivalent control flow e…
michaelnebel Feb 15, 2022
796a180
C#: Add testcase for GVN printing.
michaelnebel Feb 15, 2022
6b4dea7
C#: Introduce caching of the Gvn related types and the toGvn predicate.
michaelnebel Feb 17, 2022
38f04e5
C#: Flatten the the Gvn type.
michaelnebel Feb 25, 2022
53b2eac
C#: Remove (symmetric) duplicates from the test output.
michaelnebel Feb 25, 2022
71cd507
Merge pull request #8298 from MathiasVP/filter-bad-conversions-in-cpp…
MathiasVP Mar 2, 2022
3681a1b
Merge pull request #7933 from geoffw0/cwe497
MathiasVP Mar 2, 2022
06e0f14
python: add tests for stdlib xpath
yoff Mar 2, 2022
80be767
python: implement stdlib xpath support
yoff Mar 2, 2022
ee45e79
python: Create XML modulein Concepts
yoff Mar 2, 2022
143e9ee
Merge branch 'main' of github.com:github/codeql into python/promote-x…
yoff Mar 2, 2022
a0a2cde
C#: Update relase note to include example fragment on, how to invoke …
michaelnebel Mar 2, 2022
23fbfbc
C#: Performance optimization of the GVN implementation.
michaelnebel Mar 2, 2022
fff4250
Merge pull request #8167 from michaelnebel/csharp/extractor-option-co…
michaelnebel Mar 2, 2022
c973693
C#: Introduce buildless extractor option.
michaelnebel Feb 24, 2022
3859b62
C#: Autobuilder should use standalone in case buildless options is pr…
michaelnebel Feb 24, 2022
8d9999a
C#: Change note describing the buildless extractor option.
michaelnebel Feb 24, 2022
c5ddf61
C#: Address review comments (change description to use true/false ins…
michaelnebel Mar 1, 2022
fc89888
C#: Add pattern that only accepts 'true' and 'false' as the buildless…
michaelnebel Mar 2, 2022
938902d
C#: Include example fragment in the release note on, how to invoke th…
michaelnebel Mar 2, 2022
b39f383
Merge pull request #8230 from michaelnebel/csharp/autobuilder-buildless
michaelnebel Mar 2, 2022
6946ae9
python: missed a spot..
yoff Mar 2, 2022
692fc4c
Update ruby/ql/lib/change-notes/2022-02-28-regex-string-literals.md
aibaars Mar 2, 2022
9fb94d8
C++: performance tweaks for InsufficientKeySize
Mar 2, 2022
4a43731
Ruby: Use SimpleSummarizedCallable
hmac Mar 2, 2022
2fd950c
C++: Fix join order in the IR dataflow library
jketema Mar 2, 2022
3fc2f2f
Merge pull request #8309 from jketema/taint-join-order
jketema Mar 3, 2022
f80372b
C++: Update the DB scheme stats file
jketema Mar 2, 2022
b23ab80
Ruby: Clear call contexts after jump steps in type tracking
hvitved Mar 3, 2022
ba6ff88
Sync files
hvitved Mar 3, 2022
9d6d479
Add missing QL doc
hvitved Mar 3, 2022
0c25510
C#: Add change note about recursive `codeql test run` extraction
hvitved Mar 3, 2022
9df923a
C++: Catch more true positives by stepping into calls in the 'cpp/usi…
MathiasVP Mar 3, 2022
bf10456
C++: Add a path explanation to the 'cpp/using-expired-stack-address' …
MathiasVP Mar 3, 2022
f1f1526
add query-sink mapping query
TomBolton Mar 3, 2022
bd9e845
update column names and remove encoding value
TomBolton Mar 3, 2022
22b0697
Update ruby/ql/lib/codeql/ruby/security/performance/ParseRegExp.qll
aibaars Mar 3, 2022
b79d085
Merge pull request #8293 from aibaars/regex-pattern-source
aibaars Mar 3, 2022
b32be69
Update DangerousUseOfTransformationAfterOperation.expected
ihsinme Mar 3, 2022
e1c1f80
Rename cpp/ql/test/experimental/query-tests/Security/CWE/CWE-200/semm…
ihsinme Mar 3, 2022
9c04bd1
Update and rename cpp/ql/test/experimental/query-tests/Security/CWE/C…
ihsinme Mar 3, 2022
6e951f7
Rename cpp/ql/test/experimental/query-tests/Security/CWE/CWE-200/semm…
ihsinme Mar 3, 2022
8eec206
Rename cpp/ql/test/experimental/query-tests/Security/CWE/CWE-200/semm…
ihsinme Mar 3, 2022
625f74e
Rename cpp/ql/test/experimental/query-tests/Security/CWE/CWE-200/semm…
ihsinme Mar 3, 2022
7b3546e
Create ExposureSensitiveInformationUnauthorizedActor.qlref
ihsinme Mar 3, 2022
5d1dee2
Create ExposureSensitiveInformationUnauthorizedActor.qlref
ihsinme Mar 3, 2022
60532e6
C++: fix missing paren
Mar 3, 2022
1181779
Merge pull request #7920 from github/hmac/string-flow-summaries
hmac Mar 3, 2022
77bc266
Create ExposureSensitiveInformationUnauthorizedActor.expected
ihsinme Mar 3, 2022
467136c
Create ExposureSensitiveInformationUnauthorizedActor.expected
ihsinme Mar 3, 2022
04cd0db
[Java] Add CharacterLiteral to CompileTimeConstantExpr.getStringValue
JLLeitschuh Mar 3, 2022
cd5c71e
Ruby: cache regExpSource/1 instead of isInterpretedAsRegExp
aibaars Mar 4, 2022
c49ed55
Update csharp/ql/lib/change-notes/2022-03-03-recursive-qltest-extract…
hvitved Mar 4, 2022
c514282
Merge pull request #8255 from tausbn/python-nomagic-pattern-getcase
yoff Mar 4, 2022
d0a393e
Update python/ql/test/library-tests/frameworks/stdlib/XPathExecution.py
yoff Mar 4, 2022
40feb1f
Python: SPURIOUS results for httpx
RasmusWL Mar 4, 2022
56901ea
Python: Make new SSRF sink modules private
RasmusWL Mar 4, 2022
7d6d8be
Python: Fix httpx modeling
RasmusWL Mar 4, 2022
c65839b
Python: improve urllib3 modeling
RasmusWL Mar 4, 2022
02a97b0
Python: Move `urllib` and `urllib2` to be part of stdlib modeling
RasmusWL Mar 4, 2022
866e615
Python: Add PyPI links in qldocs
RasmusWL Mar 4, 2022
75bc532
Python: Avoid `toString` usage :O
RasmusWL Mar 4, 2022
d86284b
Python: Update frameworks.rst
RasmusWL Mar 4, 2022
e47f726
Python: Add change-note
RasmusWL Mar 4, 2022
f620e25
Merge branch 'main' into py/add-ssrf-sinks
RasmusWL Mar 4, 2022
3f48916
Merge pull request #7915 from yoff/python/promote-xpath-injection
RasmusWL Mar 4, 2022
2ffa677
replace endpoint type name with encoding in mapping query
TomBolton Mar 4, 2022
9a91e66
Merge pull request #8321 from MathiasVP/improve-using-expired-address…
MathiasVP Mar 4, 2022
74f0bdf
Python: Fix "unused disjunct" warnings
tausbn Mar 4, 2022
821de63
Python: Remove redundant inline casts
tausbn Mar 4, 2022
a34a61c
Update ExposureSensitiveInformationUnauthorizedActor.expected
geoffw0 Mar 4, 2022
1cb1044
Update ExposureSensitiveInformationUnauthorizedActor.expected
geoffw0 Mar 4, 2022
2071061
Python: Fix "use set literal" warnings
tausbn Mar 4, 2022
17cd4d8
Fix tests.
geoffw0 Mar 4, 2022
095f27f
Python: Remove deprecated annotations
tausbn Mar 4, 2022
71e393c
Merge pull request #8330 from aibaars/cache-regExpSource
aibaars Mar 4, 2022
5c80139
Merge pull request #2 from geoffw0/fix_tests
ihsinme Mar 4, 2022
17b6e66
Apply suggestions from code review
JLLeitschuh Mar 4, 2022
38897f2
Fixup tests from code review changes
JLLeitschuh Mar 4, 2022
b35718e
Python: Remove uses of `getAQlClass`
tausbn Mar 4, 2022
280fdbf
C++: accept test output from perf improvement
Mar 4, 2022
624795c
Merge pull request #8059 from rdmarsh2/rdmarsh2/cpp/insufficient-key-…
MathiasVP Mar 4, 2022
8fed9f9
Ruby: ActiveRecord - match OrmWriteAccesses for assignements to the a…
alexrford Mar 4, 2022
bbc712f
Merge pull request #8297 from erik-krogh/atmPerf
tiferet Mar 4, 2022
98dbe3a
Ruby: make ActiveRecord Persistence::ModifyAndSaveCall private
alexrford Mar 5, 2022
9c759a9
QL: add query detecting ordering by a constant
erik-krogh Mar 6, 2022
7e6666b
Merge branch 'main' into py/add-ssrf-sinks
haby0 Mar 7, 2022
08ce128
Merge pull request #8325 from JLLeitschuh/feat/JLL/improve_compile_ti…
atorralba Mar 7, 2022
027c824
Merge pull request #8310 from jketema/update-stats
MathiasVP Mar 7, 2022
173f45f
Merge pull request #8334 from github/tombolton/add-mapping-query
TomBolton Mar 7, 2022
c1db0a9
Merge pull request #8317 from hvitved/typetracker/jump-step
hvitved Mar 7, 2022
64b458b
Merge pull request #8319 from hvitved/csharp/recursive-qltest-extract…
hvitved Mar 7, 2022
9c4c351
Ruby: Update type tracker test
hvitved Mar 3, 2022
95027e7
Ruby: TypeTracker: add smallstep for functions that return their argu…
aibaars Mar 1, 2022
200a965
Update expected output
aibaars Mar 3, 2022
e7dca43
Merge pull request #6950 from ihsinme/ihsinme-patch-078
geoffw0 Mar 7, 2022
c7d624d
Merge pull request #8247 from ihsinme/ihsinme-patch-80
MathiasVP Mar 7, 2022
6aad8d6
Merge pull request #8302 from aibaars/type-tracking-smallstep
hvitved Mar 7, 2022
fc6f422
C++: Upgrade cpp/system-data-exposure.
geoffw0 Mar 7, 2022
c793699
C++: Change note.
geoffw0 Mar 7, 2022
af7f532
Python: Fix up a bunch of function QLDoc
tausbn Mar 4, 2022
d260388
Python: Fix a bunch of class QLDoc
tausbn Mar 4, 2022
5a8ba6a
Python: Fix use of singleton set
tausbn Mar 7, 2022
a7442b7
Ruby: Add regex test case for `/[|]/`
hvitved Mar 8, 2022
6d4eecf
Ruby: Fix regex parsing of `/[|]/`
hvitved Mar 8, 2022
3bc8d08
Ruby: Add regex consistency queries
hvitved Mar 8, 2022
cbe3964
Merge pull request #8275 from haby0/py/add-ssrf-sinks
RasmusWL Mar 8, 2022
4734f19
Merge pull request #7598 from erik-krogh/fieldOnlyUsedInCharPred
erik-krogh Mar 8, 2022
81783e8
C++: Mark everything in CodeDuplication.qll as deprecated
jketema Mar 8, 2022
2e73e35
Update cpp/ql/src/external/CodeDuplication.qll
jketema Mar 8, 2022
55351ce
Update cpp/ql/src/external/CodeDuplication.qll
jketema Mar 8, 2022
d2e2866
C++: Also deprecate `TDuplicationOrSimilarity`
jketema Mar 8, 2022
df1e810
C++: Remove duplicate code queries that were deprecated over a year ago
jketema Mar 8, 2022
b039b91
C++: Add change note
jketema Mar 8, 2022
ee9c0dc
C++: Add library for must-flow.
MathiasVP Mar 8, 2022
8c5b336
C++: Make the two must-flow queries use the new must-flow library
MathiasVP Mar 8, 2022
7106fe3
C++: Accept test changes. This is just a change in the names of the p…
MathiasVP Mar 8, 2022
3877598
C++: Remove `cpp/duplicated-lines-in-files` which was deprecated over…
jketema Mar 8, 2022
9e7b092
Merge pull request #8366 from jketema/code-duplication-deprecated
MathiasVP Mar 8, 2022
bfa0714
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/MustFlow.qll
MathiasVP Mar 8, 2022
edf629f
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/MustFlow.qll
MathiasVP Mar 8, 2022
1bf4305
Update cpp/ql/lib/semmle/code/cpp/ir/dataflow/MustFlow.qll
MathiasVP Mar 8, 2022
69417e1
C++: Address review comments.
MathiasVP Mar 8, 2022
ec75bbc
Merge pull request #8203 from michaelnebel/csharp/extractor-option-bu…
michaelnebel Mar 8, 2022
063a8bb
Python: Apply suggestions from code review
tausbn Mar 8, 2022
8612116
Merge pull request #8364 from hvitved/ruby/fix-regex-parse
hvitved Mar 8, 2022
d8bad77
C++: Fix QLDoc
MathiasVP Mar 8, 2022
6dd126b
Ruby: Add regex group tests
hvitved Mar 8, 2022
5f48cc0
Ruby: Fix off-by-one error in `getGroupName`
hvitved Mar 8, 2022
a70ed71
Merge pull request #8370 from hvitved/ruby/regex-group-name-off-by-one
hvitved Mar 8, 2022
073302f
Ruby: Add another regex consistency test
hvitved Mar 8, 2022
89c3d05
Ruby: Add regex test that outputs all `RegExpTerm`s
hvitved Mar 8, 2022
f5fbf50
Ruby: Fix incorrect parsing of ranges
hvitved Mar 8, 2022
c463dc9
C#: Remove legacy `odasa` support
hvitved Mar 3, 2022
e4247e4
C#: Add change note
hvitved Mar 7, 2022
7f0fa15
Address review comment
hvitved Mar 9, 2022
275902d
Merge pull request #8373 from hvitved/ruby/regex-multiples-parse-fix
hvitved Mar 9, 2022
c51ddd0
C#: Code review suggestions
hvitved Mar 9, 2022
cebd241
support that the base is not a method-call in getAChainedMethodCall
erik-krogh Mar 9, 2022
d0cb984
Merge pull request #6 from hvitved/csharp/gvn-cfecomparison
michaelnebel Mar 9, 2022
1e1b2e2
Ruby: Cleanup flow through `self`
hvitved Nov 9, 2021
aa1284a
Ruby: Cache two more data flow predicates
hvitved Feb 9, 2022
fbe8f75
Merge pull request #8038 from michaelnebel/csharp/gvn-cfecomparison
michaelnebel Mar 9, 2022
17cec52
Merge pull request #8385 from erik-krogh/orderByConst
MathiasVP Mar 9, 2022
7b877fb
Merge pull request #8336 from tausbn/python-fix-a-bunch-of-ql-warnings
tausbn Mar 9, 2022
dfb20f7
Merge pull request #8368 from MathiasVP/add-must-flow-lib
MathiasVP Mar 9, 2022
ef07aaa
add script for detecting deprecations that are over a year old
erik-krogh Mar 5, 2022
a86f0af
delete all deprecations that are over 14 months old
erik-krogh Mar 9, 2022
1e44585
CPP: remove leftover line comment
erik-krogh Mar 5, 2022
6dd3f7f
CPP: remove old deprecated predicate that was recently updated by an …
erik-krogh Mar 5, 2022
f924d69
Java: remove deprecations that were recently updated from an automate…
erik-krogh Mar 7, 2022
5312e4a
add change note that all old deprecations were deleted
erik-krogh Mar 7, 2022
b8d6328
Python: remove deprecation that were recently updated from an automat…
erik-krogh Mar 7, 2022
e721094
Python: remove old deprecation that was recently updated by an automa…
erik-krogh Mar 7, 2022
a1769f8
Python: add default implementation of getName() and deprecate it
erik-krogh Mar 7, 2022
91af2f1
CPP: update expected output after deleting deprecated things
erik-krogh Mar 7, 2022
d5a76e8
Python: delete test that only used deprecated classes
erik-krogh Mar 7, 2022
417def8
only mark deprecations as old after 14 months
erik-krogh Mar 7, 2022
9e46239
CPP: remove 13 month old deprecation that override an even older depr…
erik-krogh Mar 7, 2022
c48a5a1
JS: update tests to not use deleted deprecations
erik-krogh Mar 7, 2022
59db0e7
JS: delete unused predicate
erik-krogh Mar 7, 2022
309e376
PY: convert test to not use deleted deprecations
erik-krogh Mar 7, 2022
e140548
C++: reintroduce deprecated predicates that affect an internal test
erik-krogh Mar 7, 2022
6a28ddd
JS: un-deprecate deleted deprecated class that defined taint-steps
erik-krogh Mar 7, 2022
61e282d
PY: delete test that mostly used deleted deprecated features
erik-krogh Mar 7, 2022
755b0bb
PY: update tests to not use deleted deprecations
erik-krogh Mar 7, 2022
b45d06d
PY: remove leftover comment
erik-krogh Mar 8, 2022
9c4fcf4
fix typo in change-note
erik-krogh Mar 8, 2022
34c7bca
CPP: delete LocalScopeVariableReachability.qll
erik-krogh Mar 8, 2022
ee43363
Ruby: replace OrmWriteAccess with PersistentWriteAccess concept
alexrford Mar 9, 2022
19c413d
Ruby: Drop setsKeyValuePair/2 predicate from ActiveRecord::Persistenc…
alexrford Mar 9, 2022
d85424d
Ruby: Drop ActiveRecord::Persistence.ModifyAndSaveCall
alexrford Mar 9, 2022
a040b67
Ruby: drop some redundant extends classes
alexrford Mar 9, 2022
8abee16
Ruby: test cases for PersistentWriteAccess in rails model class
alexrford Mar 9, 2022
ace60df
Ruby: add missing qldoc
alexrford Mar 10, 2022
edf8a3f
Ruby: update test output
alexrford Mar 10, 2022
b9b6500
C#: delete leftover comment
erik-krogh Mar 10, 2022
9e3156d
Merge branch 'main' into cwe497c
geoffw0 Mar 10, 2022
37f5db5
Ruby: Reduce `captureFlow(In|Out)`
hvitved Feb 10, 2022
53d557c
CPP: delete file that that had been deprecated for over a year
erik-krogh Mar 10, 2022
e6b0552
JS: delete leftover comment
erik-krogh Mar 10, 2022
a96223c
PY: remove leftover comments
erik-krogh Mar 10, 2022
fa76612
CPP: remove import of deleted deprecation
erik-krogh Mar 10, 2022
0d71f0a
Ruby: Add regex unicode test
hvitved Mar 10, 2022
76663f8
Ruby: Avoid multiple `RegExpEscape::getValue` results
hvitved Mar 10, 2022
5b97458
Merge pull request #8322 from hvitved/csharp/remove-odasa-legacy
hvitved Mar 10, 2022
208851c
Merge pull request #7084 from hvitved/ruby/self-flow
hvitved Mar 10, 2022
c274317
JS: delete the TrackedNodes.qll, it had no public interface left
erik-krogh Mar 10, 2022
5de2e24
Merge pull request #8358 from geoffw0/cwe497c
MathiasVP Mar 10, 2022
4177832
Update javascript/ql/lib/semmle/javascript/dataflow/Sources.qll
erik-krogh Mar 10, 2022
d4808a7
Merge pull request #8389 from hvitved/ruby/regex-unique-get-value
hvitved Mar 10, 2022
19c7f7b
Merge pull request #8271 from github/alexrford/ruby/orm-write-access
alexrford Mar 10, 2022
9466043
CPP: remove remaining ObjectiveC references
erik-krogh Mar 10, 2022
d316ad1
Merge pull request #8380 from erik-krogh/chainedCalls
erik-krogh Mar 10, 2022
df9533f
Merge pull request #8347 from erik-krogh/depBeGone
erik-krogh Mar 11, 2022
764d275
Remove 2020 sinks from TaintedPath.ql
esbena Oct 6, 2020
1c7383b
Remove 2020 sinks from Xss.ql
esbena Oct 6, 2020
95beff6
Remove 2020 sinks from SqlInjection.ql
esbena Oct 6, 2020
3fcb247
Remove pseudo-properties
esbena Oct 6, 2020
b8cff66
Add benjamin-button.md
esbena Oct 6, 2020
59c21d7
Remove additional path-injection sinks
esbena Oct 12, 2020
1ba9e65
Remove additional SQL sinks
esbena Oct 20, 2020
6127f60
Remove additional Xss sinks
esbena Oct 27, 2020
f4b929a
Remove NoSQL sinks since September 2018
henrymercer Dec 18, 2020
02ba195
Revert "JS: Recognize DomSanitizer from @angular/core"
Apr 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
33 changes: 27 additions & 6 deletions .codeqlmanifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
{ "provide": [ "*/ql/src/qlpack.yml",
"*/ql/test/qlpack.yml",
"*/ql/examples/qlpack.yml",
"*/upgrades/qlpack.yml",
"misc/legacy-support/*/qlpack.yml",
"misc/suite-helpers/qlpack.yml" ] }
{
"provide": [
"*/ql/src/qlpack.yml",
"*/ql/lib/qlpack.yml",
"*/ql/test/qlpack.yml",
"*/ql/examples/qlpack.yml",
"*/ql/consistency-queries/qlpack.yml",
"cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/tainted/qlpack.yml",
"javascript/ql/experimental/adaptivethreatmodeling/lib/qlpack.yml",
"javascript/ql/experimental/adaptivethreatmodeling/modelbuilding/qlpack.yml",
"javascript/ql/experimental/adaptivethreatmodeling/src/qlpack.yml",
"csharp/ql/campaigns/Solorigate/lib/qlpack.yml",
"csharp/ql/campaigns/Solorigate/src/qlpack.yml",
"csharp/ql/campaigns/Solorigate/test/qlpack.yml",
"misc/legacy-support/*/qlpack.yml",
"misc/suite-helpers/qlpack.yml",
"ruby/extractor-pack/codeql-extractor.yml",
"ql/extractor-pack/codeql-extractor.yml"
],
"versionPolicies": {
"default": {
"requireChangeNotes": true,
"committedPrereleaseSuffix": "dev",
"committedVersion": "nextPatchRelease"
}
}
}
7 changes: 6 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
{
"extensions": [
"rust-lang.rust",
"bungcip.better-toml",
"github.vscode-codeql",
"slevesque.vscode-zipexplorer"
],
"settings": {
"codeQL.experimentalBqrsParsing": true
"files.watcherExclude": {
"**/target/**": true
},
"codeQL.runningQueries.memory": 2048
}
}
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,17 @@
*.gif -text
*.dll -text
*.pdb -text

java/ql/test/stubs/**/*.java linguist-generated=true
java/ql/test/experimental/stubs/**/*.java linguist-generated=true

# For some languages, upgrade script testing references really old dbscheme
# files from legacy upgrades that have CRLF line endings. Since upgrade
# resolution relies on object hashes, we must suppress line ending conversion
# for those testing dbscheme files.
*/ql/lib/upgrades/initial/*.dbscheme -text

# Generated test files - these are synced from the standard JavaScript libraries using
# `javascript/ql/experimental/adaptivethreatmodeling/test/update_endpoint_test_files.py`.
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.js linguist-generated=true -merge
javascript/ql/experimental/adaptivethreatmodeling/test/endpoint_large_scale/autogenerated/**/*.ts linguist-generated=true -merge
14 changes: 14 additions & 0 deletions .github/actions/fetch-codeql/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Fetch CodeQL
description: Fetches the latest version of CodeQL
runs:
using: composite
steps:
- name: Fetch CodeQL
shell: bash
run: |
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | grep -v beta | sort --version-sort | tail -1)
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
unzip -q -d "${RUNNER_TEMP}" codeql-linux64.zip
echo "${RUNNER_TEMP}/codeql" >> "${GITHUB_PATH}"
env:
GITHUB_TOKEN: ${{ github.token }}
2 changes: 2 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ paths-ignore:
- '/cpp/'
- '/java/'
- '/python/'
- '/javascript/ql/test'
- '/javascript/extractor/tests'
18 changes: 18 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "ruby/node-types"
schedule:
interval: "daily"
- package-ecosystem: "cargo"
directory: "ruby/generator"
schedule:
interval: "daily"
- package-ecosystem: "cargo"
directory: "ruby/extractor"
schedule:
interval: "daily"
- package-ecosystem: "cargo"
directory: "ruby/autobuilder"
schedule:
interval: "daily"
7 changes: 7 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ Python:
- python/**/*
- change-notes/**/*python*

Ruby:
- ruby/**/*
- change-notes/**/*ruby*

documentation:
- "**/*.qhelp"
- "**/*.md"
- docs/**/*

"QL-for-QL":
- ql/**/*
27 changes: 27 additions & 0 deletions .github/workflows/check-change-note.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Check change note

on:
pull_request_target:
types: [labeled, unlabeled, opened, synchronize, reopened, ready_for_review]
paths:
- "*/ql/src/**/*.ql"
- "*/ql/src/**/*.qll"
- "*/ql/lib/**/*.ql"
- "*/ql/lib/**/*.qll"
- "!**/experimental/**"
- "!ql/**"
- ".github/workflows/check-change-note.yml"

jobs:
check-change-note:
runs-on: ubuntu-latest
steps:
- name: Fail if no change note found. To fix, either add one, or add the `no-change-note-required` label.
if: |
github.event.pull_request.draft == false &&
!contains(github.event.pull_request.labels.*.name, 'no-change-note-required')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh api 'repos/${{github.repository}}/pulls/${{github.event.number}}/files' --paginate --jq 'any(.[].filename ; test("/change-notes/.*[.]md$"))' |
grep true -c
30 changes: 30 additions & 0 deletions .github/workflows/close-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Mark stale issues

on:
workflow_dispatch:
schedule:
- cron: "30 1 * * *"

jobs:
stale:
if: github.repository == 'github/codeql'

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open 14 days with no activity. Comment or remove the `Stale` label in order to avoid having this issue closed in 7 days.'
close-issue-message: 'This issue was closed because it has been inactive for 7 days.'
days-before-stale: 14
days-before-close: 7
only-labels: awaiting-response

# do not mark PRs as stale
days-before-pr-stale: -1
days-before-pr-close: -1

# Uncomment for dry-run
# debug-only: true
# operations-per-run: 1000
44 changes: 27 additions & 17 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ name: "Code scanning - action"

on:
push:
branches:
- main
- 'rc/*'
pull_request:
branches:
- main
- 'rc/*'
paths:
- 'csharp/**'
- '.github/codeql/**'
- '.github/workflows/codeql-analysis.yml'
schedule:
- cron: '0 9 * * 1'

Expand All @@ -11,31 +21,32 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: read
security-events: write
pull-requests: read

steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.101

- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}


# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@main
# Override language selection by uncommenting this and choosing your languages
with:
languages: csharp
config-file: ./.github/codeql/codeql-config.yml

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
#- name: Autobuild
# uses: github/codeql-action/autobuild@main

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -44,9 +55,8 @@ jobs:
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
- run: |
dotnet build csharp /p:UseSharedCompilation=false

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@main
43 changes: 43 additions & 0 deletions .github/workflows/csv-coverage-metrics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Publish framework coverage as metrics"

on:
schedule:
- cron: '5 0 * * *'
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
paths:
- ".github/workflows/csv-coverage-metrics.yml"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup CodeQL
uses: ./.github/actions/fetch-codeql
- name: Create empty database
run: |
DATABASE="${{ runner.temp }}/java-database"
PROJECT="${{ runner.temp }}/java-project"
mkdir -p "$PROJECT/src/tmp/empty"
echo "class Empty {}" >> "$PROJECT/src/tmp/empty/Empty.java"
codeql database create "$DATABASE" --language=java --source-root="$PROJECT" --command 'javac src/tmp/empty/Empty.java'
- name: Capture coverage information
run: |
DATABASE="${{ runner.temp }}/java-database"
codeql database analyze --format=sarif-latest --output=metrics.sarif -- "$DATABASE" ./java/ql/src/Metrics/Summaries/FrameworkCoverage.ql
- uses: actions/upload-artifact@v2
with:
name: metrics.sarif
path: metrics.sarif
retention-days: 20
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: metrics.sarif
Loading