Sign inSign up

btnguyen2k/codeql-container

By btnguyen2k

•Updated over 2 years ago

GitHub CodeQL packaged and precompiled in a container.

Image
0

1.3K

btnguyen2k/codeql-container repository overview

⁠Usage

Start running CodeQL queries on your project with a single command:

$ docker run --rm -v "<source-code-directory>:/opt/src" -v "<results-directory>:/opt/results" btnguyen2k/codeql-container <command> [options]

Input/Output directories

  • source-code-directory: The directory containing the source code to scan, must map this directory to the container's /opt/src directory.
  • results-directory: The directory to store the scan results, must map this directory to the container's /opt/results directory.

Commands

CommandDescription
helpPrint the help information and exit
securityRun the security and quality analyzing query pack
security-extendedRun the security analyzing extended query pack
scanRun the standard code scanning query pack

Options

OptionRequiredDefault ValueDescription
-l=language or --language=languagetrueThe programming language of the source code to scan, for example --language=java
-o=format or --output=formatfalsesarif-latestThe output format of the scan results, for example --output=csv
--overridefalseOverride the results directory if it is not empty

Example:

$ docker run -it --rm -v "$(pwd):/opt/src" -v "/tmp:/opt/results" btnguyen2k/codeql-container security --override --language=go --output=csv

⁠License

This project is licensed under the MIT License - see the LICENSE.md⁠ file for details.

⁠Support and Contribution

Project repository: https://github.com/btnguyen2k/codeql-container⁠

Feel free to create pull requests⁠ or issues⁠ to report bugs or suggest new features. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue.

If you find this project useful, please start it.

Tag summary

Content type

Image

Digest

sha256:c9c11b78a…

Size

1.3 GB

Last updated

over 2 years ago

docker pull btnguyen2k/codeql-container