2021-04-26 05:55:54 -04:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
2022-03-09 06:55:17 -05:00
|
|
|
# run weekly new vulnerability was added to the database
|
2021-04-26 05:55:54 -04:00
|
|
|
- cron: '0 0 * * 0'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
|
|
|
runs-on: ubuntu-latest
|
2022-01-29 12:02:35 -05:00
|
|
|
if: github.event_name != 'schedule' || github.repository == 'redis/redis'
|
2021-04-26 05:55:54 -04:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'cpp' ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-30 09:18:03 -04:00
|
|
|
uses: actions/checkout@v3
|
2021-04-26 05:55:54 -04:00
|
|
|
|
|
|
|
- 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
|