{"id":13596037,"url":"https://github.com/github/vscode-codeql-starter","last_synced_at":"2025-05-15T04:05:30.968Z","repository":{"id":36138177,"uuid":"216963994","full_name":"github/vscode-codeql-starter","owner":"github","description":"Starter workspace to use with the CodeQL extension for Visual Studio Code.","archived":false,"fork":false,"pushed_at":"2025-05-01T14:05:17.000Z","size":189,"stargazers_count":522,"open_issues_count":4,"forks_count":263,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-05-10T10:41:35.822Z","etag":null,"topics":["codeql","vscode","vscode-extension","works-with-codespaces"],"latest_commit_sha":null,"homepage":"","language":"CodeQL","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/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-10-23T03:55:31.000Z","updated_at":"2025-05-08T16:30:52.000Z","dependencies_parsed_at":"2023-09-25T03:53:10.461Z","dependency_job_id":"b8506e19-bf2e-4e53-b70f-2ddb5402c188","html_url":"https://github.com/github/vscode-codeql-starter","commit_stats":{"total_commits":168,"total_committers":31,"mean_commits":5.419354838709677,"dds":0.7440476190476191,"last_synced_commit":"e34a84399403dedcb137fd31726f373cd74f5829"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fvscode-codeql-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fvscode-codeql-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fvscode-codeql-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Fvscode-codeql-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/vscode-codeql-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254270643,"owners_count":22042859,"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","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","vscode","vscode-extension","works-with-codespaces"],"created_at":"2024-08-01T16:02:05.374Z","updated_at":"2025-05-15T04:05:25.951Z","avatar_url":"https://github.com/github.png","language":"CodeQL","readme":"# vscode-codeql-starter\n\nA starter workspace to use with the [CodeQL extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=github.vscode-codeql). For more information, see the [`vscode-codeql` repo](https://github.com/github/vscode-codeql/).\n\n## Instructions\n\n1. Install [Visual Studio Code](https://code.visualstudio.com).\n1. Install the [CodeQL extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=github.vscode-codeql).\n1. Clone this repository to your computer.\n    - Make sure to include the submodules, either by `git clone --recursive` or by `git submodule update --init --remote` after clone.\n    - Use `git submodule update --remote` regularly to keep the submodules up to date.\n1. In VS Code, click File \u003e Open Workspace. Select the file `vscode-codeql-starter.code-workspace` in your checkout of this repository.\n1. You will see several folders open in the left sidebar:\n    - The `ql` folder contains the [open-source CodeQL standard libraries](https://github.com/github/codeql/tree/codeql-cli/latest) for C/C++, C#, Go, Java, JavaScript/Typescript, Python, and Ruby. It tracks the branch tagged `codeql-cli/latest` in https://github.com/github/codeql. You can run the standard queries from here, and browse the libraries.\n    - The folders named `codeql-custom-queries-\u003clanguage\u003e` are ready for you to start developing your own custom queries for each language, while using the standard libraries. There are some example queries to get you started.\n1. Follow the [documentation for the CodeQL extension](https://docs.github.com/en/code-security/codeql-for-vs-code/) to learn how to set up the extension, add a database and run queries against it. Have fun!\n\n## Using the `vscode-codeql-starter` in a private repository\n\nIf you want to privately share your CodeQL queries with your teammates using this project as a template:\n\n1. Create an empty, private project in the organization you want.\n1. Clone this project locally: `git clone git@github.com:github/vscode-codeql-starter.git`\n1. Add a remote to the local copy `git remote add my-org git@github.com:\u003cMY-ORG\u003e/vscode-codeql-starter.git`\n1. Push the code to the new remote: `git push my-org main`\n\nGitHub does not allow private forks of public repositories.\n\n## Contributing\n\nThis project welcomes contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.\n\n## Reporting issues\n\nIssues and suggestions should be reported in the [`vscode-codeql` repo](https://github.com/github/vscode-codeql/issues/new/choose).\n\n## License\n\nThis project is [licensed](LICENSE.md) under the MIT License. \n\nThe CodeQL extension for Visual Studio Code is [licensed](https://github.com/github/vscode-codeql/blob/main/extensions/ql-vscode/LICENSE.md) under the MIT License. The version of CodeQL used by the CodeQL extension is subject to the [GitHub CodeQL Terms \u0026 Conditions](https://securitylab.github.com/tools/codeql/license).\n","funding_links":[],"categories":["CodeQL","下一步计划","vscode-extension"],"sub_categories":["下载资源和工具"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fvscode-codeql-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Fvscode-codeql-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Fvscode-codeql-starter/lists"}