codeql cli results multiple languages #14597
Unanswered
sam-cha-tfs
asked this question in
Q&A
Replies: 2 comments 10 replies
-
I note that in https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/analyzing-your-code-with-codeql-queries#running-codeql-database-analyze the blue box recommends using |
Beta Was this translation helpful? Give feedback.
10 replies
-
I know this is pseudo code but you are creating a charp DB and then attempting to analyze with cpp. In practice you likely got an error where you already corrected that but FYI! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a repo that uses JS and C#. Our CI/CD uses the CLI to upload the results to GItHub but I don't see any notification if there were vulnerabilities on GitHub. The CLI outputs the sarif files were uploaded. I also only see the "last scanned" timestamp on GitHub. Below is a picture of the timestamp and commands I used. When I ran codeql locally I got vulnerabilities for one of the sarif files. Am I uploading correctly? What notifications do we receive from GitHub if there are no vulnerabilities?
codeql database create codeql-db --db-cluster --language=javascript,csharp --command=<build.pl>
codeql database analyze codeql-db/cpp cpp-security-extended.qls --format=sarif-latest --output=cpp.sarif --sarif-add-baseline-file-info
codeql database analyze codeql-db/javascript javascript-security-extended.qls --format=sarif-latest --output=js.sarif --sarif-add-baseline-file-info
codeql github upload-results --repository=<org/repo_name> --refs=ref/heads/master --sarif=cpp.sarif --commit=<commit id>
codeql github upload-results --repository=<org/repo_name> --refs=ref/heads/master --sarif=js.sarif --commit=<commit id>
Beta Was this translation helpful? Give feedback.
All reactions