Skip to content

Commit

Permalink
Enable GitHub Code Scanning (microsoft#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert authored Aug 19, 2020
1 parent 5316a8b commit 5d7b6c4
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 17 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 2
submodules: 'recursive'

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Install dependencies and build submodules before starting analysis.
- run: |
sudo apt-get install -y liblttng-ust-dev
sudo sh scripts/install-powershell-docker.sh
mkdir build
cd build
cmake ..
cmake --build . --target OpenSSL
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: cpp, csharp, python

# Analyze this build.
- run: |
cd build
cmake --build .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

0 comments on commit 5d7b6c4

Please sign in to comment.