CodeCommitsIssuesPull requestsActionsInsightsSecurity
4364bff3bc805ef630b8cd0bc0c8e55b27cba032

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/codeql-analysis.yml

33lines · modecode

1name: "CodeQL Scanning"
2
3on:
4 schedule:
5 - cron: '0 19 * * *'
6jobs:
7 CodeQL-Build:
8
9 runs-on: self-hosted
10 timeout-minutes: 1440
11
12 steps:
13 - name: Checkout repository
14 uses: actions/checkout@v2
15 with:
16 fetch-depth: 2
17 submodules: 'recursive'
18
19 - run: git checkout HEAD^2
20 if: ${{ github.event_name == 'pull_request' }}
21
22 - name: Initialize CodeQL
23 uses: github/codeql-action/init@v1
24
25 with:
26 languages: cpp
27
28 - run: sudo apt-get update && sudo apt-get install -y git cmake python ninja-build gcc-9 g++-9 && mkdir build
29 - run: cd build && CC=gcc-9 CXX=g++-9 cmake ..
30 - run: cd build && ninja
31
32 - name: Perform CodeQL Analysis
33 uses: github/codeql-action/analyze@v1