mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Using ‘github.head_ref || github.run_id’ makes this only cancel in-progress jobs for pull_request events. https://docs.github.com/en/actions/using-jobs/using-concurrency Signed-off-by: Anders Kaseorg <anders@zulip.com>
32 lines
815 B
YAML
32 lines
815 B
YAML
name: "Code scanning"
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- dependabot/** # https://github.com/github/codeql-action/pull/435
|
|
pull_request: {}
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.head_ref || github.run_id }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
CodeQL:
|
|
if: ${{!github.event.repository.private}}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v2
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
|
|
# Override language selection by uncommenting this and choosing your languages
|
|
# with:
|
|
# languages: go, javascript, csharp, python, cpp, java
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1
|