* Rebased to latest 7.0 * Check 7.0 branch and tags only * Ignore text files * Drop Python checks * Remove .lgtm.yml file, adjust skips
63 lines
1.3 KiB
YAML
63 lines
1.3 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: 7.0
|
|
tags: 'R7.0.*'
|
|
pull_request:
|
|
branches: 7.0
|
|
paths-ignore:
|
|
- '.appveyor/*'
|
|
- '.tools/*'
|
|
- 'documentation/*'
|
|
- 'startup/*'
|
|
- '**/*.md'
|
|
- '**/*.html'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on:
|
|
- ubuntu-latest
|
|
# - windows-latest
|
|
# Supported by CodeQL which would check the Windows
|
|
# port, but needs more work here to set it up
|
|
|
|
permissions:
|
|
# Required for all workflows:
|
|
security-events: write
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [ cpp ]
|
|
|
|
steps:
|
|
- name: Checkout Repositories
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Install Packages
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install --yes libreadline-dev
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v2
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: +security-and-quality
|
|
|
|
- name: Build C/C++
|
|
run: |
|
|
g++ --version
|
|
make --version
|
|
perl --version
|
|
make -sj2 || echo '*** Ignoring build failure for CodeQL ***'
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|
|
with:
|
|
category: "/language:${{ matrix.language }}"
|