redict/.github/workflows/codeql-analysis.yml
Ozan Tezcan 2d391e62bd
Skip external server and codeql cron tests on forks (#10204)
keep the push triggers for all repos, but run the scheduled ones only on redis/redis
2022-01-29 19:02:35 +02:00

35 lines
718 B
YAML

name: "CodeQL"
on:
push:
pull_request:
schedule:
# run weekly new vulnerability was added to the the database
- cron: '0 0 * * 0'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.event_name != 'schedule' || github.repository == 'redis/redis'
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1