forked from microsoft/msquic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable GitHub Code Scanning (microsoft#736)
- Loading branch information
1 parent
5316a8b
commit 5d7b6c4
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |