{"id":5978,"date":"2024-03-22T09:24:15","date_gmt":"2024-03-22T01:24:15","guid":{"rendered":"https:\/\/www.1ai.net\/?p=5978"},"modified":"2024-03-22T09:24:15","modified_gmt":"2024-03-22T01:24:15","slug":"github-%e6%9c%80%e6%96%b0-ai-%e5%b7%a5%e5%85%b7%e5%8f%af%e5%b8%ae%e5%8a%a9%e7%94%a8%e6%88%b7%e8%87%aa%e5%8a%a8%e4%bf%ae%e5%a4%8d%e4%bb%a3%e7%a0%81%e4%b8%ad%e7%9a%84%e9%94%99%e8%af%af%e5%92%8c%e6%bc%8f","status":"publish","type":"post","link":"http:\/\/www.1ai.net\/en\/5978.html","title":{"rendered":"GitHub&#039;s new AI tool helps users automatically fix bugs and vulnerabilities in their code"},"content":{"rendered":"<p data-vmark=\"d7da\"><a href=\"http:\/\/www.1ai.net\/en\/tag\/github\" title=\"\u3010\u67e5\u770b\u542b\u6709[GitHub]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">GitHub<\/a> \u4eca\u5929\u4e3a\u6240\u6709 Advanced Security\uff08GHAS\uff09\u8bb8\u53ef\u7528\u6237\u63a8\u51fa\u4e86\u5168\u65b0\u7684\u201c<a href=\"http:\/\/www.1ai.net\/en\/tag\/%e4%bb%a3%e7%a0%81\" title=\"\u3010\u67e5\u770b\u542b\u6709[\u4ee3\u7801]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">\u4ee3\u7801<\/a>\u626b\u63cf\u201d\u529f\u80fd\uff08\u9884\u89c8\u7248\uff09\uff0c\u7528\u4e8e\u641c\u7d22 GitHub\u00a0\u4ee3\u7801\u4e2d\u6f5c\u5728\u7684<a href=\"http:\/\/www.1ai.net\/en\/tag\/%e5%ae%89%e5%85%a8%e6%bc%8f%e6%b4%9e\" title=\"\u3010\u67e5\u770b\u542b\u6709[\u5b89\u5168\u6f0f\u6d1e]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">\u5b89\u5168\u6f0f\u6d1e<\/a>\u548c\u7f16\u7801\u9519\u8bef\u3002<\/p>\n<p data-vmark=\"d4c3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5979\" title=\"828938a8-6674-4465-985a-6a26c9d385c2\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2024\/03\/828938a8-6674-4465-985a-6a26c9d385c2.jpg\" alt=\"828938a8-6674-4465-985a-6a26c9d385c2\" width=\"1199\" height=\"864\" \/><\/p>\n<p data-vmark=\"f378\">\u8fd9\u9879\u65b0\u529f\u80fd\u53ef\u5229\u7528 Copilot \u4e0e CodeQL\uff08CodeQL \u662f GitHub \u5f00\u53d1\u7684\u4ee3\u7801\u5206\u6790\u5f15\u64ce\uff0c\u7528\u4e8e\u81ea\u52a8\u6267\u884c\u5b89\u5168\u68c0\u67e5\uff09\u53d1\u73b0\u4f60\u7684\u4ee3\u7801\u4e2d\u53ef\u80fd\u5b58\u5728\u6f0f\u6d1e\u6216\u9519\u8bef\uff0c\u5e76\u4e14\u5bf9\u5176\u8fdb\u884c\u5206\u7c7b\u548c\u786e\u5b9a\u4fee\u590d\u7684\u4f18\u5148\u7ea7\u3002\u503c\u5f97\u4e00\u63d0\u7684\u662f\uff0c\u201c\u4ee3\u7801\u626b\u63cf\u201d\u9700\u8981\u6d88\u8017 GitHub Actions \u7684\u5206\u949f\u6570\u3002<\/p>\n<p data-vmark=\"5505\">\u636e\u4ecb\u7ecd\uff0c\u201c\u4ee3\u7801\u626b\u63cf\u201d\u8fd8\u53ef\u9632\u6b62\u5f00\u53d1\u8005\u5f15\u5165\u65b0\u95ee\u9898\uff0c\u8fd8\u652f\u6301\u5728\u7279\u5b9a\u65e5\u671f\u548c\u65f6\u95f4\u8fdb\u884c\u626b\u63cf\uff0c\u6216\u5728\u5b58\u50a8\u5e93\u4e2d\u53d1\u751f\u7279\u5b9a\u4e8b\u4ef6\uff08\u4f8b\u5982\u63a8\u9001\uff09\u65f6\u89e6\u53d1\u626b\u63cf\u3002<\/p>\n<p data-vmark=\"e4ad\">\u5982\u679c AI \u53d1\u73b0\u4f60\u7684\u4ee3\u7801\u4e2d\u53ef\u80fd\u5b58\u5728\u6f0f\u6d1e\u6216\u9519\u8bef\uff0cGitHub \u5c31\u4f1a\u5728\u4ed3\u5e93\u4e2d\u8fdb\u884c\u544a\u8b66\uff0c\u5e76\u5728\u7528\u6237\u4fee\u590d\u89e6\u53d1\u8b66\u62a5\u7684\u4ee3\u7801\u4e4b\u540e\u53d6\u6d88\u544a\u8b66\u3002<\/p>\n<p data-vmark=\"9a4b\">\u8981\u76d1\u63a7\u4f60\u7684\u4ed3\u5e93\u6216\u7ec4\u7ec7\u7684\u201c\u4ee3\u7801\u626b\u63cf\u201d\u7ed3\u679c\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 web \u6302\u94a9\u548c code scanning API\u3002\u6b64\u5916\uff0c\u201c\u4ee3\u7801\u626b\u63cf\u201d\u4e5f\u53ef\u4e0e\u8f93\u51fa\u9759\u6001\u5206\u6790\u7ed3\u679c\u4ea4\u6362\u683c\u5f0f (SARIF) \u6570\u636e\u7684\u7b2c\u4e09\u65b9\u4ee3\u7801\u626b\u63cf\u5de5\u5177\u4e92\u64cd\u4f5c\u3002<\/p>\n<p data-vmark=\"1bee\">\u76ee\u524d\uff0c\u5bf9\u201c\u4ee3\u7801\u626b\u63cf\u201d\u4f7f\u7528 CodeQL \u5206\u6790\u6709\u4e09\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\n<p data-vmark=\"2cfb\">\u4f7f\u7528\u9ed8\u8ba4\u8bbe\u7f6e\u5728\u5b58\u50a8\u5e93\u4e0a\u5feb\u901f\u914d\u7f6e\u5bf9\u201c\u4ee3\u7801\u626b\u63cf\u201d\u7684 CodeQL \u5206\u6790\u3002\u9ed8\u8ba4\u8bbe\u7f6e\u81ea\u52a8\u9009\u62e9\u8981\u5206\u6790\u7684\u8bed\u8a00\u3001\u8981\u8fd0\u884c\u7684\u67e5\u8be2\u5957\u4ef6\u548c\u89e6\u53d1\u626b\u63cf\u7684\u4e8b\u4ef6\uff0c\u5982\u679c\u9700\u8981\u4e5f\u53ef\u4ee5\u624b\u52a8\u9009\u62e9\u8981\u8fd0\u884c\u7684\u67e5\u8be2\u5957\u4ef6\u4ee5\u53ca\u8981\u5206\u6790\u7684\u8bed\u8a00\u3002\u542f\u7528 CodeQL \u540e\uff0cGitHub Actions \u5c06\u6267\u884c\u5de5\u4f5c\u6d41\u8fd0\u884c\u4ee5\u626b\u63cf\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p data-vmark=\"8f74\">\u4f7f\u7528\u9ad8\u7ea7\u8bbe\u7f6e\u5c06 CodeQL \u5de5\u4f5c\u6d41\u6dfb\u52a0\u5230\u5b58\u50a8\u5e93\u3002\u8fd9\u4f1a\u751f\u6210\u4e00\u4e2a\u53ef\u81ea\u5b9a\u4e49\u7684\u5de5\u4f5c\u6d41\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u4f7f\u7528\u00a0github \/ codeql-action\u00a0\u8fd0\u884c CodeQL CLI\u3002<\/p>\n<\/li>\n<li>\n<p data-vmark=\"cecb\">\u76f4\u63a5\u5728\u5916\u90e8 CI \u7cfb\u7edf\u4e2d\u8fd0\u884c CodeQL CLI \u5e76\u5c06\u7ed3\u679c\u4e0a\u4f20\u5230 GitHub\u3002<\/p>\n<\/li>\n<\/ul>\n<p data-vmark=\"83c9\">GitHub \u627f\u8bfa\uff0c\u8fd9\u4e00 AI \u7cfb\u7edf\u53ef\u4ee5\u4fee\u590d\u5176\u53d1\u73b0\u7684\u4e09\u5206\u4e4b\u4e8c\u4ee5\u4e0a\u7684\u6f0f\u6d1e\uff0c\u6240\u4ee5\u4e00\u822c\u6765\u8bf4\u5f00\u53d1\u4eba\u5458\u65e0\u9700\u4e3b\u52a8\u7f16\u8f91\u4ee3\u7801\u3002\u8be5\u516c\u53f8\u8fd8\u627f\u8bfa\uff0c\u4ee3\u7801\u626b\u63cf\u81ea\u52a8\u4fee\u590d\u5c06\u8986\u76d6\u5176\u652f\u6301\u7684\u8bed\u8a00\u4e2d\u8d85\u8fc7 90% \u7684\u544a\u8b66\u7c7b\u578b\uff0c\u76ee\u524d\u5305\u62ec JavaScript\u3001Typescript\u3001Java \u548c Python\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub today launched a new \"Code Scan\" feature (preview) for all Advanced Security (GHAS) licensees to search for potential security vulnerabilities and coding errors in GitHub code. This new feature leverages Copilot and CodeQL, a code analysis engine developed by GitHub to automate security checks, to find, categorize, and prioritize fixes for potential vulnerabilities or bugs in your code. It's worth noting that Code Scan consumes GitHub Actions minutes. Code Scan is also described as preventing developers from introducing new issues, and supports the use of the code scanner on specific days and times.<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[146],"tags":[385,1809,1100],"collection":[],"class_list":["post-5978","post","type-post","status-publish","format-standard","hentry","category-news","tag-github","tag-1809","tag-1100"],"acf":[],"_links":{"self":[{"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/5978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=5978"}],"version-history":[{"count":0,"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/5978\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=5978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=5978"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=5978"},{"taxonomy":"collection","embeddable":true,"href":"http:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=5978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}