CodeQL #4385
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. | |
# See https://github.com/github/codeql-action/blob/main/init/action.yml | |
# for the full set of input arguments | |
name: "CodeQL" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
paths-ignore: | |
- '**/*.md' | |
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@v3 | |
with: | |
languages: ${{ matrix.language }} | |
config-file: .github/codeql/codeql-config.yml | |
# Hardcode the CodeQL bundle version to 2.15.0, as 2.15.1 contains a breaking change that will need to be addressed before updating. | |
tools: https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.15.0/codeql-bundle-linux64.tar.gz | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DBUILD_TESTS=OFF | |
make -j8 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |