Code Scanning #51
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
name: "Code Scanning" | |
on: | |
push: | |
branches: [ master, 1\.1, 1\.2 ] | |
pull_request: | |
branches: [ master, 1\.1, 1\.2 ] | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
schedule: | |
- cron: '30 1 * * 0' | |
jobs: | |
CodeQL-Build: | |
name: Analyze | |
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp', 'python' ] | |
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | |
# Learn more: | |
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | |
steps: | |
- name: Checkout open62541 | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y -qq python3-sphinx graphviz check | |
sudo apt-get install -y -qq tcc clang-14 clang-tools-14 valgrind mosquitto | |
sudo apt-get install -y -qq libmbedtls-dev openssl | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Debug Build | |
run: source tools/ci/ci.sh && unit_tests | |
env: | |
ETHERNET_INTERFACE: eth0 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |