CodeQL #113
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
# Copyright (c) Open Enclave SDK contributors. | |
# Licensed under the MIT License. | |
name: "CodeQL" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-20.04 | |
container: | |
image: openenclavedockerregistry.azurecr.io/oetools-20.04:latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
config-file: .github/codeql/codeql-config.yml | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DBUILD_TESTS=OFF | |
make -j8 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |