mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
2d391e62bd
keep the push triggers for all repos, but run the scheduled ones only on redis/redis
35 lines
718 B
YAML
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
|