{"id":13809747,"url":"https://github.com/advanced-security/codeql-container","last_synced_at":"2025-10-04T18:42:38.178Z","repository":{"id":47080629,"uuid":"381113920","full_name":"advanced-security/codeql-container","owner":"advanced-security","description":"CodeQL Docker image","archived":false,"fork":false,"pushed_at":"2022-06-27T13:09:35.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T16:56:46.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/advanced-security.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2021-06-28T17:36:27.000Z","updated_at":"2024-11-27T11:39:28.000Z","dependencies_parsed_at":"2022-09-10T20:21:48.169Z","dependency_job_id":null,"html_url":"https://github.com/advanced-security/codeql-container","commit_stats":null,"previous_names":["advanced-security/codeql-container"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/advanced-security/codeql-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-security%2Fcodeql-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-security%2Fcodeql-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-security%2Fcodeql-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-security%2Fcodeql-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/advanced-security","download_url":"https://codeload.github.com/advanced-security/codeql-container/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/advanced-security%2Fcodeql-container/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268866842,"owners_count":24320281,"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-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-08-04T02:00:35.460Z","updated_at":"2025-10-04T18:42:33.112Z","avatar_url":"https://github.com/advanced-security.png","language":"Shell","readme":"# codeql-docker\n\nCodeQL Docker image build on Ubuntu latest Docker image\n\n## Building Image\n\nThe install script will find and install the latest CodeQL bundle which contains the current version of the CLI and queries.\n\n```bash\ndocker build -t organization/codeql .\n```\n\n## Running\n\n##### Dropping into shell\n\n```bash\ndocker run -it  -v $PWD:/workspace geekmasher/codeql\n```\n\n### Example Analysis\n\n```bash\n# Create database\ncodeql database create database_name --language=javascript\n\n# Run analysis\ncodeql database analyze database_name \\\n    --format \"sarif-latest\" \\\n    --output \"codeql-results.json\" \\\n    javascript-code-scanning.qls\n\n# Upload results to GitHub\ncodeql github upload-results --repository=\u003crepository-name\u003e \\\n      --ref=$GIT_REF \\\n      --commit=$GIT_HASH \\\n      --sarif=\"codeql-results.json\"\n\n```\n\n### Aliases\n\nIn the `~/.bashrc` there is a number of values and functions that hopefully will make it a lot easier to use CodeQL CLI.\nThis isn't required and can be removed in the `Dockerfile`.\n","funding_links":[],"categories":["CodeQL Containers"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvanced-security%2Fcodeql-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadvanced-security%2Fcodeql-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadvanced-security%2Fcodeql-container/lists"}