Skip to content

Commit

Permalink
Update codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangxl88 authored Nov 14, 2024
1 parent 04bffd9 commit e1c0029
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: +./.github/workflows/2.ql
precision: low
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand Down Expand Up @@ -93,3 +92,14 @@ jobs:
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
# 拉取Github Codeql编译结果到本地,使用vscode进行分析
# 第一步,将codeql生成数据库相关文件夹打包,/home/runner/work/_temp/codeql_databases 一般情况下为通用路径,有相关保存请查看日志查看数据生成语句存放位置
- name: Tar files
run: tar -cvf my_files.tar /home/runner/work/_temp/codeql_databases
# 第二步,将生成的结果文件,推到Github中
- name: upload result
uses: actions/upload-artifact@v3
with:
name: result
path: my_files.tar

0 comments on commit e1c0029

Please sign in to comment.