githubsecuritylab / codeql-community-packs Goto Github PK
View Code? Open in Web Editor NEWCollection of community-driven CodeQL query, library and extension packs
Home Page: https://securitylab.github.com/
License: MIT License
Collection of community-driven CodeQL query, library and extension packs
Home Page: https://securitylab.github.com/
License: MIT License
The languages as automatically filled in by the codeql starter workflow, now uses java-kotlin
and javascript-typescript
instead of java
and javascript
like it used to so
(workflow snippet of a repo that has both java and javascript languages)
strategy:
fail-fast: false
matrix:
language: [ 'java-kotlin', 'javascript-typescript' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
So when adding a pack with
packs: githubsecuritylab/codeql-${{ matrix.language }}-queries
the workflow fails since it can't find the packs
rror: Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.15.2/x64/codeql/codeql database init --db-cluster /home/runner/work/_temp/codeql_databases --source-root=/home/runner/work/tspascoal-repro-pack/tspascoal-repro-pack --extractor-include-aliases --language=javascript --codescanning-config=/home/runner/work/_temp/user-config.yaml --calculate-language-specific-baseline --sublanguage-file-coverage". Exit code was 2 and error was: A fatal error occurred: 'githubsecuritylab/codeql-javascript-typescript-queries' not found in the registry 'https://ghcr.io/v2/'. See the logs for more details.
Can we publish the packs with both the old as well as the new language name so it supports both old and new workflow files?
Haven't checked if c-cpp
also changed or it has been like that all along
CSRF validation missing - enhanced rule forked from main CodeQL queries: advanced-security/codeql-queries#157
I am trying to analyze a database using the codeql-cpp-queries
pack; however, I get the error below.
codeql database analyze db/ \
--download githubsecuritylab/codeql-cpp-queries \
--format=sarif-latest --output=results.sarif
{
"packs" : [
{
"name" : "githubsecuritylab/codeql-cpp-queries",
"version" : "0.0.2",
"library" : false,
"result" : "INSTALLED"
}
],
"packDir" : "/home/user/.codeql/packages"
}
Running queries.
A fatal error occurred: Compiled CodeQL packs cannot reference another pack from one of its query suites. 'githubsecuritylab/[email protected]' references 'github-queries-ruby'.
I have found this issue already, but I think it is only somewhat related, as we have two different packs here, i.e., codeql-cpp-queries
and github-queries-ruby
. How can I fix this error so that I can run the GitHubSecurityLab packs?
CodeQL Version
The CodeQL CLI resides at /opt/codeql/codeql
, and the CodeQL repository was downloaded to /opt/codeql/codeql-repo
as per the advanced setup guide.
codeql --version
CodeQL command-line toolchain release 2.15.1.
Copyright (C) 2019-2023 GitHub, Inc.
Unpacked in: /opt/codeql/codeql
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.