-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use my own modified version of codeql core library #18890
Comments
Have you tried the The easiest way to get things to work would be to put your query in |
Hi, thanks for getting back to me. I also tried system(f"cd ./queries && codeql pack install && cd -")
system(f"codeql database analyze {db} {./queries/FlowState/OldTaintedTrack.ql} --additional-packs={absolute-path-to-modified-codeql} --output={path-to-sarif}) It still runs smoothly. I'm using the bundle. Content of name: placeholder
version: 0.0.0
dependencies:
codeql/javascript-all: "2.0.1"
Content of ---
lockVersion: 1.0.0
dependencies: {}
compiled: false I tried to put my query inside The following is the log for
New Test : Removing Dependencies resolved. Installing packages...
Install location: /root/.codeql/packages
Package install location: /root/.codeql/packages
Already installed codeql/dataflow@1.1.3 (library)
Already installed codeql/javascript-all@2.0.1 (library)
Already installed codeql/mad@1.0.9 (library)
Already installed codeql/regex@1.0.9 (library) |
I'm modifying how tainted label propagate for javascript.
However, running
codeql database analyze
with-search-path
flag couldn't instruct that codeql engine to pick up my version of code.I have a file structure like the following
The modified-codeql is a fork of this github repo https://github.com/yuske/codeql
The
run_codeql_queries.py
invokes following commandsHow does i know the codeql engine didn't use
modified-codeql
?CodeQL starts deprecating old version of tainted tracking API.
NewTaintedTrack.ql
uses theDataFlow::StateConfigSig
which is not defined in the repo. The repo is from 2 years ago. Ideally, commands in my python script should fail as a result.The text was updated successfully, but these errors were encountered: