浏览代码

Add on: pull_request trigger to CodeQL workflow

From February 2021, in order to provide feedback on pull requests, Code Scanning workflows must be configured with both `push` and `pull_request` triggers. This is because Code Scanning compares the results from a pull request against the results for the base branch to tell you only what has changed between the two.

Early in the beta period we supported displaying results on pull requests for workflows with only `push` triggers, but have discontinued support as this proved to be less robust.

See https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#scanning-pull-requests for more information on how best to configure your Code Scanning workflows.
main
Robin Neatherway 4 年前
committed by Eric Amodio
父节点
当前提交
cd14bb368f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      .github/workflows/codeql.yml

+ 1
- 0
.github/workflows/codeql.yml 查看文件

@ -2,6 +2,7 @@ name: 'Code Scanning'
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'

正在加载...
取消
保存