Skip to content

CodeQL

CodeQL #31

Workflow file for this run

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ "master" ]
paths:
- '**'
- '!**/doc/*'
- '!**.md'
- '!**/obs/*'
- '!**/libqmail-obs.yml'
- '!**/libqmail-freebsd.yml'
- '!**/libqmail-c-cpp.yml'
pull_request:
branches: [ "master" ]
schedule:
- cron: '17 10 * * 0'
jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'c-cpp' ]
host: [ubuntu-latest]
steps:
- name: extra_packages
run: |
sudo apt-get install automake autoconf libtool libssl-dev libmysqlclient-dev
env:
OS: ${{ matrix.host }}
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- run: |
./default.configure
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"