Skip to content

Commit

Permalink
Merge pull request #45 from LingASDJ/dependabot/github_actions/github…
Browse files Browse the repository at this point in the history
…/codeql-action-3

Bump github/codeql-action from 1 to 3
  • Loading branch information
LingASDJ authored May 10, 2024
2 parents 6ea04f2 + 2cdfd39 commit 7a3149e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: Install dependencies
run: npm install # 安装依赖项
- name: Initialize CodeQL
uses: github/codeql-action/init@v1 # 初始化 CodeQL 环境
uses: github/codeql-action/init@v3 # 初始化 CodeQL 环境
with:
languages: javascript
- name: Analyze JavaScript code with CodeQL
uses: github/codeql-action/analyze@v1 # 使用 CodeQL 对 JavaScript 代码进行分析
uses: github/codeql-action/analyze@v3 # 使用 CodeQL 对 JavaScript 代码进行分析

# 这个 workflow 文件使用 `pull_request` 事件来监听新的 PR 提交,并且只有针对主分支的操作才会触发它。code-review job 使用 `actions/checkout` action 将代码库检出到 runner 中,使用 `actions/setup-node` action 安装 Node.js 运行环境和依赖包,接着通过运行 `npm run lint` 进行代码风格检查和运行 `npm test` 命令来运行测试。最后,在 Setup code review 步骤中,我们使用 `reviewdog/action-eslint` action 来进行代码审查,并将输出级别设置为 `error`。
#
Expand Down

0 comments on commit 7a3149e

Please sign in to comment.