使用说明
py诗歌
一个模板,其中python配置了带有诗歌的vs代码。
运行代理
要运行代理,请使用以下命令:
python src/agent.py <path_to_local_git_repo>
替换 <path_to_local_git_repo> 带有本地git存储库的路径。
在生成的Docker容器中使用CodeQL
要在生成的docker容器中使用CodeQL查询,请执行以下步骤:
- 确保
codeql-config.yml文件在docker容器的根目录中生成。 - 使用提供的Dockerfile和docker-compose.yml文件构建docker容器。
- 运行docker容器。
- 使用CodeQL CLI对容器中的python文件运行查询。
例如,要运行CodeQL查询,请使用以下命令:
codeql database create my-database --language=python --source-root=/workspace
codeql database analyze my-database python-security-extended.qls --format=sarif-latest --output=results.sarif
替换 my-database 为您的CodeQL数据库命名。
