Skip to content

CodeQL

CodeQL #1673

Workflow file for this run

name: "CodeQL"
on:
push:
branches:
- master
- dd-appsec-php-**
pull_request:
paths-ignore:
- 'LICENSE**'
- NOTICE
- '**.md'
- tests/integration/**
- .github/workflows/extension.yml
- .github/workflows/helper.yml
- .github/workflows/integration.yml
- .github/workflows/package.yml
- .github/workflows/release.yml
- .github/workflows/system-tests.yml
- .github/workflows/release/**
branches:
- master
- develop**
- dd-appsec-php-**
schedule:
- cron: '29 17 * * 0'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
analyze-helper:
name: Analyze Helper
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Cache hunter packages
uses: actions/cache@v3
with:
path: |
~/.hunter
key: ${{ runner.os }}-helper
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Generate Build Scripts
run: |
mkdir build
cd build
cmake .. -DDD_APPSEC_BUILD_EXTENSION=OFF
- name: Build
run: VERBOSE=1 make -j $(nproc) ddappsec-helper
working-directory: ${{ github.workspace }}/build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2