Create codeql.yml

This commit is contained in:
jeefo 2020-11-16 14:42:37 +03:00 committed by GitHub
commit 11d3f96061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

40
.github/workflows/codeql.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: "CodeQL"
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 19 * * 0'
jobs:
analyze:
name: Analyze
runs-on: self-hosted
strategy:
fail-fast: false
matrix:
language: ['cpp']
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- run: |
meson setup codeql
ninja -C codeql -v
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1