Skip to content

Commit

Permalink
ci: codeql 支持 v2
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Jun 20, 2022
1 parent de69a47 commit 9446117
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
2 changes: 0 additions & 2 deletions internal/vars/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ const (
MarkdownExt = ".md"
DraftTitleAround = "**" // 草稿文章的标题围绕的字符

// HighlightClassPrefix 默认的高亮主题色
// 值可以从 github.com/alecthomas/chroma/styles 获取
HighlightClassPrefix = "hl-" // 语法高亮的统一类名前缀

// FileHeader 自动生成文件的文件头信息
Expand Down

0 comments on commit 9446117

Please sign in to comment.