{"id":17117664,"url":"https://github.com/j3ssie/codeql-docker","last_synced_at":"2025-07-23T18:06:17.395Z","repository":{"id":37699143,"uuid":"343700988","full_name":"j3ssie/codeql-docker","owner":"j3ssie","description":"Ready to use docker image for CodeQL","archived":false,"fork":false,"pushed_at":"2024-01-10T14:20:06.000Z","size":21,"stargazers_count":89,"open_issues_count":1,"forks_count":11,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-02T06:11:18.108Z","etag":null,"topics":["codeql","codeql-cli","codeql-docker","codql-cli","docker","sast","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j3ssie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":null,"patreon":"j3ssie","open_collective":"jaeles-project","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/j3ssiejjj","https://www.buymeacoffee.com/j3ssie"]}},"created_at":"2021-03-02T08:35:22.000Z","updated_at":"2025-03-19T13:16:04.000Z","dependencies_parsed_at":"2024-02-05T22:03:42.468Z","dependency_job_id":"f4860d9e-561f-4d64-8f85-6ee8e14259d3","html_url":"https://github.com/j3ssie/codeql-docker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/j3ssie/codeql-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3ssie%2Fcodeql-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3ssie%2Fcodeql-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3ssie%2Fcodeql-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3ssie%2Fcodeql-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j3ssie","download_url":"https://codeload.github.com/j3ssie/codeql-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j3ssie%2Fcodeql-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266726660,"owners_count":23974928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeql","codeql-cli","codeql-docker","codql-cli","docker","sast","static-analysis"],"created_at":"2024-10-14T17:52:20.247Z","updated_at":"2025-07-23T18:06:17.370Z","avatar_url":"https://github.com/j3ssie.png","language":"Python","readme":"# Docker for CodeQL\n\nBased on [microsoft/codeql-container](https://github.com/microsoft/codeql-container) with Java, Golang installed and .NET removed.\n\n## Build \u0026 Run\n\n```shell\ndocker build -t j3ssie/codeql-docker:latest .\n```\n\nor pull the latest from Docker hub\n\n```shell\ndocker pull j3ssie/codeql-docker:latest\n\n```\n***\n\n## Usage\n\n### Run with helper scripts\n\n```shell\n# usage\n./scripts/run.py -l \u003clanguage-of-source-code\u003e -s \u003csource-code-folder\u003e [--format=csv] [-o ouput]\n\n# simple usage\n./scripts/run.py -l go -s /tmp/insecure-project\n# default output is JSON format so read them with this command\ncat results/issues.sarif-latest| jq '.runs[].results'\n\n# with custom format and output\n./scripts/run.py -l javascript -s /tmp/cc/code-scanning-javascript-demo --format=csv -o sample\n# your output will be store at sample/issues.csv\n\n```\n\n### Run with docker command\n\nWith `/tmp/src` is your source code and `/tmp/results` is where result store.\n\n\u003e NOTE: make sure /tmp/results folder exist otherwise it won't work\n\n```shell\n# run in the current folder\nmkdir -p ${PWD}/codeql-result\ndocker run --rm --name codeql-docker -v ${PWD}:/opt/src -v ${PWD}/codeql-result:/opt/results -e \"LANGUAGE=javascript\" -e \"THREADS=5\" j3ssie/codeql-docker:latest\n\n# simple usage\ndocker run --rm --name codeql-docker -v \"/tmp/src:/opt/src\" -v \"/tmp/local-results:/opt/results\" -e \"LANGUAGE=go\" j3ssie/codeql-docker:latest\n\n# more options\ndocker run --rm --name codeql-docker -v \"/tmp/src:/opt/src\" -v \"/tmp/local-results:/opt/results\" -e \"LANGUAGE=javascript\" -e \"FORMAT=csv\" -e \"QS=javascript-security-and-quality.qls\" j3ssie/codeql-docker:latest\n\n```\n\n### Manual analyze\n\n```shell\n# Directly access container with bash shell\ndocker run -it --entrypoint=/bin/bash -t j3ssie/codeql-docker:latest\n\n# Copy your code to container\ndocker cp \u003cyour-source-cde\u003e \u003cdocker-ID\u003e:/opt/src\n\n# create DB in this folder /opt/src/db\n# This might take a while depend on your code\ncodeql database create --language=\u003clanguage\u003e /opt/src/db -s /opt/src\n\n# run analyze\n# normally query-suites will will be: \u003clanguage\u003e-security-and-quality.qls\ncodeql database analyze --format=sarif-latest --output=/opt/issues.sarif /opt/src/db \u003cquery-suites\u003e\n\n# copy the result back to host machine\ndocker cp \u003cdocker-ID\u003e:/opt/issues.sarif .\n```\n\n### Other commands\n\n```shell\n# List all query suites\ncodeql resolve queries\n\n# Upgrade DB\ncodeql database upgrade \u003cdatabase\u003e\n\n```\n","funding_links":["https://patreon.com/j3ssie","https://opencollective.com/jaeles-project","https://paypal.me/j3ssiejjj","https://www.buymeacoffee.com/j3ssie"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3ssie%2Fcodeql-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj3ssie%2Fcodeql-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj3ssie%2Fcodeql-docker/lists"}